Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
ce5e44e6
Commit
ce5e44e6
authored
Nov 08, 2021
by
Kushal Pandya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Convert commit tabs to pajamas
Changelog: other
parent
3f9e766e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
9 deletions
+7
-9
app/views/projects/commit/_ci_menu.html.haml
app/views/projects/commit/_ci_menu.html.haml
+7
-9
No files found.
app/views/projects/commit/_ci_menu.html.haml
View file @
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
=
_
(
'Changes'
)
%span
.badge.badge-pill
=
@diffs
.
size
=
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'
)
=
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
=
_
(
'Pipelines'
)
%span
.badge.badge-pill.js-pipelines-mr-count
=
@commit
.
pipelines
.
size
=
gl_tab_link_to
pipelines_project_commit_path
(
@project
,
@commit
.
id
)
do
=
_
(
'Pipelines'
)
=
gl_tab_counter_badge
(
@commit
.
pipelines
.
size
,
{
class:
'js-pipelines-mr-count'
})
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment