diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-04-21 02:50:22 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-04-21 02:50:22 +0300 |
commit | 9dc93a4519d9d5d7be48ff274127136236a3adb3 (patch) | |
tree | 70467ae3692a0e35e5ea56bcb803eb512a10bedb /app/helpers/snippets_helper.rb | |
parent | 4b0f34b6d759d6299322b3a54453e930c6121ff0 (diff) |
Add latest changes from gitlab-org/gitlab@13-11-stable-eev13.11.0-rc43
Diffstat (limited to 'app/helpers/snippets_helper.rb')
-rw-r--r-- | app/helpers/snippets_helper.rb | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/app/helpers/snippets_helper.rb b/app/helpers/snippets_helper.rb index 36f4fced147..f4af7a5a350 100644 --- a/app/helpers/snippets_helper.rb +++ b/app/helpers/snippets_helper.rb @@ -11,16 +11,6 @@ module SnippetsHelper end end - def download_raw_snippet_button(snippet) - link_to(sprite_icon('download'), - gitlab_raw_snippet_path(snippet, inline: false), - target: '_blank', - rel: 'noopener noreferrer', - class: "btn btn-sm has-tooltip", - title: 'Download', - data: { container: 'body' }) - end - # Return the path of a snippets index for a user or for a project # # @returns String, path to snippet index @@ -54,7 +44,7 @@ module SnippetsHelper link_to(external_snippet_icon('doc-code'), gitlab_raw_snippet_blob_url(snippet, blob.path), - class: 'btn', + class: 'gl-button btn btn-default', target: '_blank', rel: 'noopener noreferrer', title: 'Open raw') @@ -63,7 +53,7 @@ module SnippetsHelper def embedded_snippet_download_button(snippet, blob) link_to(external_snippet_icon('download'), gitlab_raw_snippet_blob_url(snippet, blob.path, nil, inline: false), - class: 'btn', + class: 'gl-button btn btn-default', target: '_blank', title: 'Download', rel: 'noopener noreferrer') |