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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
188e8608
Commit
188e8608
authored
7 years ago
by
Guilherme Vieira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Hides pipeline duration in commit box when it is zero (nil)
parent
e1122c9f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
app/views/projects/commit/_commit_box.html.haml
app/views/projects/commit/_commit_box.html.haml
+3
-2
changelogs/unreleased/hide-pipeline-zero-duration.yml
changelogs/unreleased/hide-pipeline-zero-duration.yml
+5
-0
No files found.
app/views/projects/commit/_commit_box.html.haml
View file @
188e8608
...
...
@@ -77,5 +77,6 @@
#{
n_
(
s_
(
'Pipeline|with stage'
),
s_
(
'Pipeline|with stages'
),
last_pipeline
.
stages_count
)
}
.mr-widget-pipeline-graph
=
render
'shared/mini_pipeline_graph'
,
pipeline:
last_pipeline
,
klass:
'js-commit-pipeline-graph'
in
=
time_interval_in_words
last_pipeline
.
duration
-
if
last_pipeline
.
duration
in
=
time_interval_in_words
last_pipeline
.
duration
This diff is collapsed.
Click to expand it.
changelogs/unreleased/hide-pipeline-zero-duration.yml
0 → 100644
View file @
188e8608
---
title
:
Hides pipeline duration in commit box when it is zero (nil)
merge_request
:
14979
author
:
gvieira37
type
:
fixed
This diff is collapsed.
Click to expand it.
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