Merge pull request #160 from coreos-inc/plusfix

Only show "New Dockerfile Build" when user has write permission
This commit is contained in:
Jimmy Zelinskie 2015-06-22 12:18:07 -04:00
commit 98340cfb6b

View file

@ -89,12 +89,12 @@
<i class="fa ci-robot"></i> New Robot Account
</a>
</li>
<li role="presentation" class="divider" ng-if="currentPageContext.repository"></li>
<li role="presentation" class="divider" ng-if="currentPageContext.repository && currentPageContext.repository.can_write"></li>
<li role="presentation" class="dropdown-header"
ng-if="currentPageContext.repository">
ng-if="currentPageContext.repository && currentPageContext.repository.can_write">
Repository {{ currentPageContext.repository.namespace }}/{{ currentPageContext.repository.name }}
</li>
<li ng-if="currentPageContext.repository">
<li ng-if="currentPageContext.repository && currentPageContext.repository.can_write">
<a href="javascript:void(0)" ng-click="startBuild()">
<i class="fa fa-tasks"></i> New Dockerfile Build
</a>