Only show "New Dockerfile Build" when user has write permission

Fixes #156
This commit is contained in:
Joseph Schorr 2015-06-22 12:17:14 -04:00
parent d5e4b35a78
commit 744f462b96

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>