summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2016-06-13 18:18:20 +0000
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2016-06-13 18:18:20 +0000
commit6aefd3c3213277d80e0680809b45643ef19df4d0 (patch)
treebd476e54aee7c7b3953442c5e60de4062e3a06ce
parent1cbd5c66866cbc8221c2ee401fe52633143355ae (diff)
parent0e50fa24a5b4ff7665a68da2a1221b5cae9e5633 (diff)
downloadgitlab-ce-6aefd3c3213277d80e0680809b45643ef19df4d0.tar.gz
Merge branch 'dz-cleanup-counters' into 'master'
Remove counters from Pipeline navigation * counters are heavy from UI perspective * duplicates information from tabs below * shows 0 for less active projects. Jumps from 0 to N constantly. I think we should render counters only when necessary and only for filters ( tabs on white bg ). Exception: issues, merge requests in top navigation as status of project popularity and action required from maintainers cc @grzesiek @ayufan @jschatz1 See merge request !4617
-rw-r--r--app/views/projects/pipelines/_head.html.haml2
1 files changed, 0 insertions, 2 deletions
diff --git a/app/views/projects/pipelines/_head.html.haml b/app/views/projects/pipelines/_head.html.haml
index f278d4e0538..d0ba0d27d7c 100644
--- a/app/views/projects/pipelines/_head.html.haml
+++ b/app/views/projects/pipelines/_head.html.haml
@@ -5,11 +5,9 @@
= link_to project_pipelines_path(@project), title: 'Pipelines', class: 'shortcuts-pipelines' do
%span
Pipelines
- %span.badge.count.ci_counter= number_with_delimiter(@project.pipelines.running_or_pending.count)
- if project_nav_tab? :builds
= nav_link(controller: %w(builds)) do
= link_to project_builds_path(@project), title: 'Builds', class: 'shortcuts-builds' do
%span
Builds
- %span.badge.count.builds_counter= number_with_delimiter(@project.running_or_pending_build_count)