BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
20deca7c
Commit
20deca7c
authored
Mar 29, 2017
by
Clement Ho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add download attribute to download links
parent
f7fefe82
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
6 additions
and
5 deletions
+6
-5
pipelines_artifacts.js
...pts/vue_pipelines_index/components/pipelines_artifacts.js
+1
-0
project_was_exported_email.html.haml
app/views/notify/project_was_exported_email.html.haml
+1
-1
browse.html.haml
app/views/projects/artifacts/browse.html.haml
+1
-1
_sidebar.html.haml
app/views/projects/builds/_sidebar.html.haml
+1
-1
_build.html.haml
app/views/projects/ci/builds/_build.html.haml
+1
-1
edit.html.haml
app/views/projects/edit.html.haml
+1
-1
No files found.
app/assets/javascripts/vue_pipelines_index/components/pipelines_artifacts.js
View file @
20deca7c
...
...
@@ -21,6 +21,7 @@ export default {
<li v-for="artifact in artifacts">
<a
rel="nofollow"
download
:href="artifact.path">
<i class="fa fa-download" aria-hidden="true"></i>
<span>Download {{artifact.name}} artifacts</span>
...
...
app/views/notify/project_was_exported_email.html.haml
View file @
20deca7c
...
...
@@ -2,7 +2,7 @@
Project
#{
@project
.
name
}
was exported successfully.
%p
The project export can be downloaded from:
=
link_to
download_export_namespace_project_url
(
@project
.
namespace
,
@project
)
do
=
link_to
download_export_namespace_project_url
(
@project
.
namespace
,
@project
)
,
rel:
'nofollow'
,
download:
''
,
do
=
@project
.
name_with_namespace
+
" export"
%p
The download link will expire in 24 hours.
app/views/projects/artifacts/browse.html.haml
View file @
20deca7c
...
...
@@ -3,7 +3,7 @@
.top-block.row-content-block.clearfix
.pull-right
=
link_to
download_namespace_project_build_artifacts_path
(
@project
.
namespace
,
@project
,
@build
),
class:
'btn btn-default download'
do
rel:
'nofollow'
,
download:
''
,
class:
'btn btn-default download'
do
=
icon
(
'download'
)
Download artifacts archive
...
...
app/views/projects/builds/_sidebar.html.haml
View file @
20deca7c
...
...
@@ -33,7 +33,7 @@
=
link_to
keep_namespace_project_build_artifacts_path
(
@project
.
namespace
,
@project
,
@build
),
class:
'btn btn-sm btn-default'
,
method: :post
do
Keep
=
link_to
download_namespace_project_build_artifacts_path
(
@project
.
namespace
,
@project
,
@build
),
class:
'btn btn-sm btn-default'
do
=
link_to
download_namespace_project_build_artifacts_path
(
@project
.
namespace
,
@project
,
@build
),
rel:
'nofollow'
,
download:
''
,
class:
'btn btn-sm btn-default'
do
Download
-
if
@build
.
artifacts_metadata?
...
...
app/views/projects/ci/builds/_build.html.haml
View file @
20deca7c
...
...
@@ -94,7 +94,7 @@
%td
.pull-right
-
if
can?
(
current_user
,
:read_build
,
build
)
&&
build
.
artifacts?
=
link_to
download_namespace_project_build_artifacts_path
(
build
.
project
.
namespace
,
build
.
project
,
build
),
title:
'Download artifacts'
,
class:
'btn btn-build'
do
=
link_to
download_namespace_project_build_artifacts_path
(
build
.
project
.
namespace
,
build
.
project
,
build
),
rel:
'nofollow'
,
download:
''
,
title:
'Download artifacts'
,
class:
'btn btn-build'
do
=
icon
(
'download'
)
-
if
can?
(
current_user
,
:update_build
,
build
)
-
if
build
.
active?
...
...
app/views/projects/edit.html.haml
View file @
20deca7c
...
...
@@ -163,7 +163,7 @@
-
if
@project
.
export_project_path
=
link_to
'Download export'
,
download_export_namespace_project_path
(
@project
.
namespace
,
@project
),
method: :get
,
class:
"btn btn-default"
rel:
'nofollow'
,
download:
''
,
method: :get
,
class:
"btn btn-default"
=
link_to
'Generate new export'
,
generate_new_export_namespace_project_path
(
@project
.
namespace
,
@project
),
method: :post
,
class:
"btn btn-default"
-
else
...
...
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