Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
heptapod
heptapod
Commits
5d2a3948e242
Commit
62d991c8
authored
Aug 11, 2016
by
Lin Jen-Shin
Browse files
Show latest pipeline status if what provided artifacts aren't latest
parent
f1abf4842160
Changes
4
Hide whitespace changes
Inline
Side-by-side
app/views/projects/branches/_branch.html.haml
View file @
5d2a3948
...
...
@@ -40,7 +40,10 @@
%ul
.dropdown-menu.dropdown-menu-align-right
{
role:
'menu'
}
%li
.dropdown-header
Artifacts
-
unless
pipeline
.
latest?
=
" (not latest, but
#{
link_to
(
pipeline
.
short_sha
,
namespace_project_pipeline_path
(
@project
.
namespace
,
@project
,
pipeline
))
}
)"
-
latest_pipeline
=
@project
.
pipeline_for
(
branch
.
name
)
%li
%span
=
latest_pipeline
.
status
.
humanize
%li
.dropdown-header
Previous Artifacts
-
artifacts
.
each
do
|
job
|
%li
=
link_to
search_namespace_project_artifacts_path
(
@project
.
namespace
,
@project
,
branch
.
name
,
'download'
,
job:
job
.
name
),
rel:
'nofollow'
do
...
...
app/views/projects/buttons/_download.html.haml
View file @
5d2a3948
...
...
@@ -20,7 +20,10 @@
-
if
artifacts
.
any?
%li
.dropdown-header
Artifacts
-
unless
pipeline
.
latest?
=
" (not latest, but
#{
link_to
(
pipeline
.
short_sha
,
namespace_project_pipeline_path
(
@project
.
namespace
,
@project
,
pipeline
))
}
)"
-
latest_pipeline
=
@project
.
pipeline_for
(
@ref
)
%li
%span
=
latest_pipeline
.
status
.
humanize
%li
.dropdown-header
Previous Artifacts
-
artifacts
.
each
do
|
job
|
%li
=
link_to
search_namespace_project_artifacts_path
(
@project
.
namespace
,
@project
,
@ref
,
'download'
,
job:
job
.
name
),
rel:
'nofollow'
do
...
...
app/views/projects/repositories/_download_archive.html.haml
View file @
5d2a3948
...
...
@@ -31,7 +31,10 @@
-
if
artifacts
.
any?
%li
.dropdown-header
Artifacts
-
unless
pipeline
.
latest?
=
" (not latest, but
#{
link_to
(
pipeline
.
short_sha
,
namespace_project_pipeline_path
(
@project
.
namespace
,
@project
,
pipeline
))
}
)"
-
latest_pipeline
=
@project
.
pipeline_for
(
ref
)
%li
%span
=
latest_pipeline
.
status
.
humanize
%li
.dropdown-header
Previous Artifacts
-
artifacts
.
each
do
|
job
|
%li
=
link_to
search_namespace_project_artifacts_path
(
@project
.
namespace
,
@project
,
ref
,
'download'
,
job:
job
.
name
),
rel:
'nofollow'
do
...
...
app/views/projects/tags/_download.html.haml
View file @
5d2a3948
...
...
@@ -18,7 +18,10 @@
-
if
artifacts
.
any?
%li
.dropdown-header
Artifacts
-
unless
pipeline
.
latest?
=
" (not latest, but
#{
link_to
(
pipeline
.
short_sha
,
namespace_project_pipeline_path
(
project
.
namespace
,
project
,
pipeline
))
}
)"
-
latest_pipeline
=
@project
.
pipeline_for
(
ref
)
%li
%span
=
latest_pipeline
.
status
.
humanize
%li
.dropdown-header
Previous Artifacts
-
artifacts
.
each
do
|
job
|
%li
=
link_to
search_namespace_project_artifacts_path
(
project
.
namespace
,
project
,
ref
,
'download'
,
job:
job
.
name
),
rel:
'nofollow'
do
...
...
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