summaryrefslogtreecommitdiff
path: root/app/views/admin
diff options
context:
space:
mode:
authorKatarzyna Kobierska <kkobierska@gmail.com>2016-07-05 10:10:34 +0200
committerKatarzyna Kobierska <kkobierska@gmail.com>2016-07-18 10:23:32 +0200
commit5813aec22dac9a896e75a23781934d555aef4269 (patch)
treeae5f48c6ac136facc71fa7c16911e57902776ab6 /app/views/admin
parent31a5a03c6ca9e520694755652e57741765c1e9b0 (diff)
downloadgitlab-ce-5813aec22dac9a896e75a23781934d555aef4269.tar.gz
Add Pending Tab to Admin Builds
Add Pending Tab to Project Builds Update CHANGELOG
Diffstat (limited to 'app/views/admin')
-rw-r--r--app/views/admin/builds/index.html.haml7
1 files changed, 6 insertions, 1 deletions
diff --git a/app/views/admin/builds/index.html.haml b/app/views/admin/builds/index.html.haml
index 9ea3cca0ecb..0fcff566a70 100644
--- a/app/views/admin/builds/index.html.haml
+++ b/app/views/admin/builds/index.html.haml
@@ -10,10 +10,15 @@
All
%span.badge.js-totalbuilds-count= @all_builds.count(:id)
+ %li{class: ('active' if @scope == 'pending')}
+ = link_to admin_builds_path(scope: :pending) do
+ Pending
+ %span.badge.js-running-count= number_with_delimiter(@all_builds.pending.count(:id))
+
%li{class: ('active' if @scope == 'running')}
= link_to admin_builds_path(scope: :running) do
Running
- %span.badge.js-running-count= number_with_delimiter(@all_builds.running_or_pending.count(:id))
+ %span.badge.js-running-count= number_with_delimiter(@all_builds.running.count(:id))
%li{class: ('active' if @scope == 'finished')}
= link_to admin_builds_path(scope: :finished) do