summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorKia Mei Somabes <kssomabes@up.edu.ph>2018-07-09 09:55:36 +0800
committerKia Mei Somabes <kssomabes@up.edu.ph>2018-07-09 10:13:00 +0800
commit50c128944e5e65fb5124aeb790cc0f1ec06049d3 (patch)
treef47b04173ccc93319c5d3307b32bd8c531ffa5e3 /app/views
parent0ed8f3490e037d451841ec0e6fe226b9e62e8466 (diff)
downloadgitlab-ce-50c128944e5e65fb5124aeb790cc0f1ec06049d3.tar.gz
Add single file download in repository
Diffstat (limited to 'app/views')
-rw-r--r--app/views/projects/blob/_header.html.haml5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/views/projects/blob/_header.html.haml b/app/views/projects/blob/_header.html.haml
index 0a0b3ce1d6f..b3ae1734225 100644
--- a/app/views/projects/blob/_header.html.haml
+++ b/app/views/projects/blob/_header.html.haml
@@ -7,9 +7,10 @@
.btn-group{ role: "group" }<
= copy_blob_source_button(blob) unless blame
- = open_raw_blob_button(blob)
+ - if !(blob.raw_binary? || blob.stored_externally?)
+ = open_raw_blob_button(blob)
+ = download_button(blob)
= view_on_environment_button(@commit.sha, @path, @environment) if @environment
-
.btn-group{ role: "group" }<
= render_if_exists 'projects/blob/header_file_locks_link'
= edit_blob_button