Make org name clickable in the org admin view

This commit is contained in:
Joseph Schorr 2013-12-02 17:19:19 -05:00
parent 6e4d88e4f0
commit 8cc4a5ef90
3 changed files with 5 additions and 4 deletions

View file

@ -1,9 +1,9 @@
<div class="organization-header-element">
<img src="//www.gravatar.com/avatar/{{ organization.gravatar }}?s=24&amp;d=identicon">
<span class="organization-name" ng-show="teamName">
<span class="organization-name" ng-show="teamName || clickable">
<a href="/organization/{{ organization.name }}">{{ organization.name }}</a>
</span>
<span class="organization-name" ng-show="!teamName">
<span class="organization-name" ng-show="!teamName && !clickable">
{{ organization.name }}
</span>

View file

@ -1010,7 +1010,8 @@ quayApp.directive('organizationHeader', function () {
restrict: 'C',
scope: {
'organization': '=organization',
'teamName': '=teamName'
'teamName': '=teamName',
'clickable': '=clickable'
},
controller: function($scope, $element) {
}

View file

@ -7,7 +7,7 @@
</div>
<div class="org-admin container" ng-show="!loading && organization">
<div class="organization-header" organization="organization"></div>
<div class="organization-header" organization="organization" clickable="true"></div>
<div class="row">
<!-- Side tabs -->