debian-mirror-gitlab/app/views/projects/commit/_ci_menu.html.haml
2019-07-07 11:18:12 +05:30

12 lines
534 B
Text

- any_pipelines = @commit.present(current_user: current_user).any_pipelines?
%ul.nav-links.no-top.no-bottom.commit-ci-menu.nav.nav-tabs
= nav_link(path: 'commit#show') do
= link_to project_commit_path(@project, @commit.id) do
= _('Changes')
%span.badge.badge-pill= @diffs.size
- if any_pipelines
= nav_link(path: 'commit#pipelines') do
= link_to pipelines_project_commit_path(@project, @commit.id) do
= _('Pipelines')
%span.badge.badge-pill.js-pipelines-mr-count= @commit.pipelines.size