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
1a41cb90
Commit
1a41cb90
authored
Jul 19, 2016
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix links and add not latest notice
parent
5fa6af05
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
app/views/projects/repositories/_download_archive.html.haml
app/views/projects/repositories/_download_archive.html.haml
+11
-7
No files found.
app/views/projects/repositories/_download_archive.html.haml
View file @
1a41cb90
...
...
@@ -25,10 +25,14 @@
=
link_to
archive_namespace_project_repository_path
(
@project
.
namespace
,
@project
,
ref:
ref
,
format:
'tar'
),
rel:
'nofollow'
do
%i
.fa.fa-download
%span
Download tar
-
artifacts
=
@project
.
latest_success_builds_for
(
@ref
)
-
if
artifacts
.
any?
%li
.dropdown-header
Artifacts
-
artifacts
.
each
do
|
job
|
%li
=
link_to
download_namespace_project_build_artifacts_path
(
@project
.
namespace
,
@project
,
job
),
rel:
'nofollow'
do
%span
Download '
#{
job
.
name
}
'
-
pipeline
=
@project
.
latest_success_pipeline_for
(
ref
).
first
-
if
pipeline
-
artifacts
=
pipeline
.
builds
.
latest_success_with_artifacts
-
if
artifacts
.
any?
%li
.dropdown-header
Artifacts
-
unless
pipeline
.
latest?
=
" (not latest, but
#{
link_to
(
pipeline
.
short_sha
,
namespace_project_tree_path
(
@project
.
namespace
,
@project
,
pipeline
.
sha
))
}
)"
-
artifacts
.
each
do
|
job
|
%li
=
link_to
search_namespace_project_artifacts_path
(
@project
.
namespace
,
@project
,
ref
,
'download'
,
job:
job
.
name
),
rel:
'nofollow'
do
%span
Download '
#{
job
.
name
}
'
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