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
Jérome Perrin
gitlab-ce
Commits
863efcc6
Commit
863efcc6
authored
Jan 23, 2017
by
dimitrieh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve pipeline status icon linking in widgets
parent
0363734c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
4 deletions
+10
-4
app/views/projects/commit/_commit_box.html.haml
app/views/projects/commit/_commit_box.html.haml
+2
-1
app/views/projects/merge_requests/widget/_heading.html.haml
app/views/projects/merge_requests/widget/_heading.html.haml
+2
-1
app/views/projects/pipelines/_info.html.haml
app/views/projects/pipelines/_info.html.haml
+2
-2
changelogs/unreleased/26982-improve-pipeline-status-icon-linking-in-widgets.yml
...26982-improve-pipeline-status-icon-linking-in-widgets.yml
+4
-0
No files found.
app/views/projects/commit/_commit_box.html.haml
View file @
863efcc6
...
...
@@ -64,7 +64,8 @@
-
if
@commit
.
status
.well-segment.pipeline-info
%div
{
class:
"icon-container ci-status-icon-#{@commit.status}"
}
=
ci_icon_for_status
(
@commit
.
status
)
=
link_to
pipelines_namespace_project_commit_path
(
@project
.
namespace
,
@project
,
@commit
.
id
)
do
=
ci_icon_for_status
(
@commit
.
status
)
Pipeline
=
link_to
"#
#{
@commit
.
pipelines
.
last
.
id
}
"
,
pipelines_namespace_project_commit_path
(
@project
.
namespace
,
@project
,
@commit
.
id
),
class:
"monospace"
for
...
...
app/views/projects/merge_requests/widget/_heading.html.haml
View file @
863efcc6
...
...
@@ -2,7 +2,8 @@
.mr-widget-heading
-
%w[success success_with_warnings skipped canceled failed running pending]
.
each
do
|
status
|
.ci_widget
{
class:
"ci-#{status} ci-status-icon-#{status}"
,
style:
(
"display:none"
unless
@pipeline
.
status
==
status
)
}
=
ci_icon_for_status
(
status
)
=
link_to
namespace_project_pipeline_path
(
@pipeline
.
project
.
namespace
,
@pipeline
.
project
,
@pipeline
.
id
)
do
=
ci_icon_for_status
(
status
)
%span
Pipeline
=
link_to
"#
#{
@pipeline
.
id
}
"
,
namespace_project_pipeline_path
(
@pipeline
.
project
.
namespace
,
@pipeline
.
project
,
@pipeline
.
id
),
class:
'pipeline'
...
...
app/views/projects/pipelines/_info.html.haml
View file @
863efcc6
...
...
@@ -23,8 +23,8 @@
.info-well
-
if
@commit
.
status
.well-segment.pipeline-info
%div
{
class:
"icon-container ci-status-icon-#{@commit.status}"
}
=
ci_icon_for_status
(
@commit
.
status
)
.icon-container
=
icon
(
'clock-o'
)
=
pluralize
@pipeline
.
statuses
.
count
(
:id
),
"build"
-
if
@pipeline
.
ref
from
...
...
changelogs/unreleased/26982-improve-pipeline-status-icon-linking-in-widgets.yml
0 → 100644
View file @
863efcc6
---
title
:
Improve pipeline status icon linking in widgets
merge_request
:
author
:
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