hide rebuild button if in Started or Pending state

This commit is contained in:
Eichin David 2014-10-26 01:33:10 +02:00
parent 2d74e4ed04
commit 961c53f6cf

View file

@ -37,7 +37,7 @@
<div id="main" class="output">
<div id="main" class="output" data-result="{{ commit.status }}">
<nav>
<div class="options ng-scope" ng-if="repo.role.admin || repo.role.write">
<div class="options ng-scope" ng-if="(repo.role.admin || repo.role.write) && (commit.status != 'Started' && commit.status != 'Pending')">
<a class="pure-button pure-button-primary" ng-click="rebuildCommit()" href="#">
<i class="fa fa-refresh"></i>
<span>Rebuild</span>