initial import for Open Source 🎉
This commit is contained in:
parent
1898c361f3
commit
9c0dd3b722
2048 changed files with 218743 additions and 0 deletions
|
@ -0,0 +1,4 @@
|
|||
<span class="visibility-indicator-component-element" ng-class="{'public': $ctrl.repository.is_public, 'private': !$ctrl.repository.is_public}">
|
||||
<span class="public" ng-if="$ctrl.repository.is_public">Public</span>
|
||||
<span class="private" ng-if="!$ctrl.repository.is_public">Private</span>
|
||||
</span>
|
|
@ -0,0 +1,15 @@
|
|||
import { Input, Component } from 'ng-metadata/core';
|
||||
|
||||
|
||||
/**
|
||||
* A component that displays a box with "Public" or "Private", depending on the visibility
|
||||
* of the repository.
|
||||
*/
|
||||
@Component({
|
||||
selector: 'visibility-indicator',
|
||||
templateUrl: '/static/js/directives/ui/visibility-indicator/visibility-indicator.component.html'
|
||||
})
|
||||
export class VisibilityIndicatorComponent {
|
||||
|
||||
@Input('<') public repository: any;
|
||||
}
|
Reference in a new issue