diff options
Diffstat (limited to 'app/views/shared/snippets/_header.html.haml')
-rw-r--r-- | app/views/shared/snippets/_header.html.haml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/views/shared/snippets/_header.html.haml b/app/views/shared/snippets/_header.html.haml index 828ec870dc0..f644d4ca871 100644 --- a/app/views/shared/snippets/_header.html.haml +++ b/app/views/shared/snippets/_header.html.haml @@ -26,6 +26,10 @@ %textarea.hidden.js-task-list-field = @snippet.description + .shareable_link + = shareable_snippets_link(@snippet) + = clipboard_button(title: s_('Copy to clipboard'), class: 'js-clipboard-btn snippet-clipboard-btn', target: '#shareable_link_url') + - if @snippet.updated_at != @snippet.created_at = edited_time_ago_with_tooltip(@snippet, placement: 'bottom', html_class: 'snippet-edited-ago', exclude_author: true) |