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
e313fd12
Commit
e313fd12
authored
Jul 16, 2016
by
Annabel Dunstone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add artifacts button
parent
53a9dee6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
4 deletions
+22
-4
app/views/projects/tags/_download.html.haml
app/views/projects/tags/_download.html.haml
+22
-4
No files found.
app/views/projects/tags/_download.html.haml
View file @
e313fd12
%span
.btn-group
=
link_to
archive_namespace_project_repository_path
(
project
.
namespace
,
project
,
ref:
ref
,
format:
'zip'
),
class:
'btn btn-default'
,
rel:
'nofollow'
do
%span
Source code
%a
.btn.btn-default.dropdown-toggle
{
'data-toggle'
=>
'dropdown'
}
.dropdown.inline
%a
.btn.dropdown-toggle
{
'data-toggle'
=>
'dropdown'
}
=
icon
(
'download'
)
%span
.caret
%span
.sr-only
Select Archive Format
%ul
.dropdown-menu.dropdown-menu-align-right
{
role:
'menu'
}
%li
.dropdown-header
Source code
%li
=
link_to
archive_namespace_project_repository_path
(
project
.
namespace
,
project
,
ref:
ref
,
format:
'zip'
),
rel:
'nofollow'
do
%span
Download zip
%li
=
link_to
archive_namespace_project_repository_path
(
project
.
namespace
,
project
,
ref:
ref
,
format:
'tar.gz'
),
rel:
'nofollow'
do
%span
Download tar.gz
-
job_names
=
project
.
latest_success_builds_for
(
'v8.9.6'
).
pluck
(
:name
)
%li
.dropdown-header
Artifacts
-#
-# - artifacts = pipeline.builds.latest.select { |b| b.artifacts? }
-# - if artifacts.present?
-# .dropdown.inline.build-artifacts
-# %button.dropdown-toggle.btn{type: 'button', 'data-toggle' => 'dropdown'}
-# = icon('download')
-# %b.caret
-# %ul.dropdown-menu.dropdown-menu-align-right
-# - artifacts.each do |build|
-# %li
-# = link_to download_namespace_project_build_artifacts_path(@project.namespace, @project, build), rel: 'nofollow' do
-# = icon("download")
-# %span Download '#{build.name}' artifacts
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