summaryrefslogtreecommitdiff
path: root/app/views/projects
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/projects
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/projects')
-rw-r--r--app/views/projects/builds/index.html.haml7
1 files changed, 6 insertions, 1 deletions
diff --git a/app/views/projects/builds/index.html.haml b/app/views/projects/builds/index.html.haml
index 85c31dfd918..41f0462e4be 100644
--- a/app/views/projects/builds/index.html.haml
+++ b/app/views/projects/builds/index.html.haml
@@ -11,12 +11,17 @@
%span.badge.js-totalbuilds-count
= number_with_delimiter(@all_builds.count(:id))
+ %li{class: ('active' if @scope == 'pending')}
+ = link_to project_builds_path(@project, 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 project_builds_path(@project, scope: :running) do
Running
%span.badge.js-running-count
- = number_with_delimiter(@all_builds.running_or_pending.count(:id))
+ = number_with_delimiter(@all_builds.running.count(:id))
%li{class: ('active' if @scope == 'finished')}
= link_to project_builds_path(@project, scope: :finished) do