Commit 7f9a6419 authored by Jose Ivan Vargas's avatar Jose Ivan Vargas

Merge branch '230772-migrate-haml-nav-to-gltabs' into 'master'

Convert commit tabs to pajamas

See merge request gitlab-org/gitlab!73970
parents 9c7440cd ce5e44e6
- 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
= gl_tabs_nav({ class: 'commit-ci-menu gl-display-flex gl-flex-grow-1'}) do
= gl_tab_link_to project_commit_path(@project, @commit.id) do
= _('Changes')
%span.badge.badge-pill= @diffs.size
= gl_tab_counter_badge(@diffs.size)
- if any_pipelines
= nav_link(path: 'commit#pipelines') do
= link_to pipelines_project_commit_path(@project, @commit.id) do
= gl_tab_link_to pipelines_project_commit_path(@project, @commit.id) do
= _('Pipelines')
%span.badge.badge-pill.js-pipelines-mr-count= @commit.pipelines.size
= gl_tab_counter_badge(@commit.pipelines.size, { class: 'js-pipelines-mr-count' })
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment