debian-mirror-gitlab/app/views/projects/commit/_ci_menu.html.haml
2018-11-08 19:23:39 +05:30

10 lines
473 B
Text

%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 can?(current_user, :read_pipeline, @project)
= 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