summaryrefslogtreecommitdiff
path: root/app/views/snippets/show.html.haml
diff options
context:
space:
mode:
authorJustin DiPierro <dipierroj@gmail.com>2016-10-06 12:42:17 -0400
committerJustin DiPierro <dipierroj@gmail.com>2016-10-11 15:36:59 -0400
commit32186b4ab89e751d42590d2cbfbcf0c6a131bdca (patch)
tree8f5aa498ce92995b1686bf3ad52c8bc47bf9082f /app/views/snippets/show.html.haml
parent0e0984952b458a617cf1f95de8b8fb88ed014d6a (diff)
downloadgitlab-ce-32186b4ab89e751d42590d2cbfbcf0c6a131bdca.tar.gz
Added 'Download' button to snippet view
Diffstat (limited to 'app/views/snippets/show.html.haml')
-rw-r--r--app/views/snippets/show.html.haml1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/views/snippets/show.html.haml b/app/views/snippets/show.html.haml
index cd89155c616..27d7a6c5bb6 100644
--- a/app/views/snippets/show.html.haml
+++ b/app/views/snippets/show.html.haml
@@ -9,6 +9,7 @@
.file-actions
= clipboard_button(clipboard_target: ".blob-content[data-blob-id='#{@snippet.id}']")
= link_to 'Raw', raw_snippet_path(@snippet), class: "btn btn-sm", target: "_blank"
+ = link_to 'Download', download_snippet_path(@snippet), class: "btn btn-sm"
= render 'shared/snippets/blob'
= render 'award_emoji/awards_block', awardable: @snippet, inline: true \ No newline at end of file