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
561093e7
Commit
561093e7
authored
Aug 19, 2016
by
Annabel Dunstone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix project namespace links
parent
a16ac37e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
app/views/projects/ci/pipelines/_pipeline.html.haml
app/views/projects/ci/pipelines/_pipeline.html.haml
+11
-11
No files found.
app/views/projects/ci/pipelines/_pipeline.html.haml
View file @
561093e7
-
status
=
pipeline
.
status
-
status
=
pipeline
.
status
%tr
.commit
%tr
.commit
%td
.commit-link
%td
.commit-link
=
link_to
namespace_project_pipeline_path
(
@project
.
namespace
,
@
project
,
pipeline
.
id
)
do
=
link_to
namespace_project_pipeline_path
(
pipeline
.
project
.
namespace
,
pipeline
.
project
,
pipeline
.
id
)
do
-
if
defined?
(
status_icon_only
)
&&
status_icon_only
-
if
defined?
(
status_icon_only
)
&&
status_icon_only
=
ci_icon_for_status
(
status
)
=
ci_icon_for_status
(
status
)
-
else
-
else
=
ci_status_with_icon
(
status
)
=
ci_status_with_icon
(
status
)
%td
%td
.branch-commit
.branch-commit
=
link_to
namespace_project_pipeline_path
(
@project
.
namespace
,
@
project
,
pipeline
.
id
)
do
=
link_to
namespace_project_pipeline_path
(
pipeline
.
project
.
namespace
,
pipeline
.
project
,
pipeline
.
id
)
do
%span
##{pipeline.id}
%span
##{pipeline.id}
-
if
pipeline
.
ref
-
if
pipeline
.
ref
-
unless
defined?
(
hide_branch
)
&&
hide_branch
-
unless
defined?
(
hide_branch
)
&&
hide_branch
.icon-container
.icon-container
=
pipeline
.
tag?
?
icon
(
'tag'
)
:
icon
(
'code-fork'
)
=
pipeline
.
tag?
?
icon
(
'tag'
)
:
icon
(
'code-fork'
)
=
link_to
pipeline
.
ref
,
namespace_project_commits_path
(
@project
.
namespace
,
@
project
,
pipeline
.
ref
),
class:
"monospace branch-name"
=
link_to
pipeline
.
ref
,
namespace_project_commits_path
(
pipeline
.
project
.
namespace
,
pipeline
.
project
,
pipeline
.
ref
),
class:
"monospace branch-name"
.icon-container
.icon-container
=
custom_icon
(
"icon_commit"
)
=
custom_icon
(
"icon_commit"
)
=
link_to
pipeline
.
short_sha
,
namespace_project_commit_path
(
@project
.
namespace
,
@
project
,
pipeline
.
sha
),
class:
"commit-id monospace"
=
link_to
pipeline
.
short_sha
,
namespace_project_commit_path
(
pipeline
.
project
.
namespace
,
pipeline
.
project
,
pipeline
.
sha
),
class:
"commit-id monospace"
-
if
pipeline
.
latest?
-
if
pipeline
.
latest?
%span
.label.label-success.has-tooltip
{
title:
'Latest build for this branch'
}
latest
%span
.label.label-success.has-tooltip
{
title:
'Latest build for this branch'
}
latest
-
if
pipeline
.
triggered?
-
if
pipeline
.
triggered?
...
@@ -30,7 +30,7 @@
...
@@ -30,7 +30,7 @@
%p
.commit-title
%p
.commit-title
-
if
commit
=
pipeline
.
commit
-
if
commit
=
pipeline
.
commit
=
author_avatar
(
commit
,
size:
20
)
=
author_avatar
(
commit
,
size:
20
)
=
link_to_gfm
truncate
(
commit
.
title
,
length:
60
),
namespace_project_commit_path
(
@project
.
namespace
,
@
project
,
commit
.
id
),
class:
"commit-row-message"
=
link_to_gfm
truncate
(
commit
.
title
,
length:
60
),
namespace_project_commit_path
(
pipeline
.
project
.
namespace
,
pipeline
.
project
,
commit
.
id
),
class:
"commit-row-message"
-
else
-
else
Cant find HEAD commit for this branch
Cant find HEAD commit for this branch
...
@@ -41,7 +41,7 @@
...
@@ -41,7 +41,7 @@
-
status
=
stages_status
[
stage
]
-
status
=
stages_status
[
stage
]
-
tooltip
=
"
#{
stage
.
titleize
}
:
#{
status
||
'not found'
}
"
-
tooltip
=
"
#{
stage
.
titleize
}
:
#{
status
||
'not found'
}
"
-
if
status
-
if
status
=
link_to
namespace_project_pipeline_path
(
@project
.
namespace
,
@
project
,
pipeline
.
id
,
anchor:
stage
),
class:
"has-tooltip ci-status-icon-
#{
status
}
"
,
title:
tooltip
do
=
link_to
namespace_project_pipeline_path
(
pipeline
.
project
.
namespace
,
pipeline
.
project
,
pipeline
.
id
,
anchor:
stage
),
class:
"has-tooltip ci-status-icon-
#{
status
}
"
,
title:
tooltip
do
=
ci_icon_for_status
(
status
)
=
ci_icon_for_status
(
status
)
-
else
-
else
.light.has-tooltip
{
title:
tooltip
}
.light.has-tooltip
{
title:
tooltip
}
...
@@ -71,7 +71,7 @@
...
@@ -71,7 +71,7 @@
%ul
.dropdown-menu.dropdown-menu-align-right
%ul
.dropdown-menu.dropdown-menu-align-right
-
actions
.
each
do
|
build
|
-
actions
.
each
do
|
build
|
%li
%li
=
link_to
play_namespace_project_build_path
(
@project
.
namespace
,
@
project
,
build
),
method: :post
,
rel:
'nofollow'
do
=
link_to
play_namespace_project_build_path
(
pipeline
.
project
.
namespace
,
pipeline
.
project
,
build
),
method: :post
,
rel:
'nofollow'
do
=
icon
(
"play"
)
=
icon
(
"play"
)
%span
=
build
.
name
.
humanize
%span
=
build
.
name
.
humanize
-
if
artifacts
.
present?
-
if
artifacts
.
present?
...
@@ -82,15 +82,15 @@
...
@@ -82,15 +82,15 @@
%ul
.dropdown-menu.dropdown-menu-align-right
%ul
.dropdown-menu.dropdown-menu-align-right
-
artifacts
.
each
do
|
build
|
-
artifacts
.
each
do
|
build
|
%li
%li
=
link_to
download_namespace_project_build_artifacts_path
(
@project
.
namespace
,
@
project
,
build
),
rel:
'nofollow'
do
=
link_to
download_namespace_project_build_artifacts_path
(
pipeline
.
project
.
namespace
,
pipeline
.
project
,
build
),
rel:
'nofollow'
do
=
icon
(
"download"
)
=
icon
(
"download"
)
%span
Download '
#{
build
.
name
}
' artifacts
%span
Download '
#{
build
.
name
}
' artifacts
-
if
can?
(
current_user
,
:update_pipeline
,
@
project
)
-
if
can?
(
current_user
,
:update_pipeline
,
pipeline
.
project
)
.cancel-retry-btns.inline
.cancel-retry-btns.inline
-
if
pipeline
.
retryable?
-
if
pipeline
.
retryable?
=
link_to
retry_namespace_project_pipeline_path
(
@project
.
namespace
,
@
project
,
pipeline
.
id
),
class:
'btn has-tooltip'
,
title:
"Retry"
,
method: :post
do
=
link_to
retry_namespace_project_pipeline_path
(
pipeline
.
project
.
namespace
,
pipeline
.
project
,
pipeline
.
id
),
class:
'btn has-tooltip'
,
title:
"Retry"
,
method: :post
do
=
icon
(
"repeat"
)
=
icon
(
"repeat"
)
-
if
pipeline
.
cancelable?
-
if
pipeline
.
cancelable?
=
link_to
cancel_namespace_project_pipeline_path
(
@project
.
namespace
,
@
project
,
pipeline
.
id
),
class:
'btn btn-remove has-tooltip'
,
title:
"Cancel"
,
method: :post
do
=
link_to
cancel_namespace_project_pipeline_path
(
pipeline
.
project
.
namespace
,
pipeline
.
project
,
pipeline
.
id
),
class:
'btn btn-remove has-tooltip'
,
title:
"Cancel"
,
method: :post
do
=
icon
(
"remove"
)
=
icon
(
"remove"
)
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