summaryrefslogtreecommitdiff
path: root/app/views/snippets
diff options
context:
space:
mode:
authorHan Loong Liauw <hanloongliauw@gmail.com>2015-10-14 20:37:36 +1100
committerHan Loong Liauw <hanloongliauw@gmail.com>2015-10-14 20:37:36 +1100
commita60853fda09b37c2990b2437baa7a5d13b54572d (patch)
tree286ea2768e2f3e1939688fe30ff00abdd096e99d /app/views/snippets
parente1d70c4f31936cd73ba25aeff573dedd27b11332 (diff)
downloadgitlab-ce-a60853fda09b37c2990b2437baa7a5d13b54572d.tar.gz
include created_at date in heading
Diffstat (limited to 'app/views/snippets')
-rw-r--r--app/views/snippets/show.html.haml12
1 files changed, 9 insertions, 3 deletions
diff --git a/app/views/snippets/show.html.haml b/app/views/snippets/show.html.haml
index f2519abea6f..9d20b76cbf2 100644
--- a/app/views/snippets/show.html.haml
+++ b/app/views/snippets/show.html.haml
@@ -7,15 +7,21 @@
.snippet-box.snippet-box-locked
%i.fa.fa-lock
Private
+ %span.snippet-id Snippet ##{@snippet.id}
%span.creator
- updated by #{link_to_member(@project, @snippet.author, size: 24)}
+ &middot; created by #{link_to_member(@project, @snippet.author, size: 24)}
&middot;
- = time_ago_with_tooltip(@snippet.updated_at, placement: 'bottom', html_class: 'snippet_updated_ago')
+ = time_ago_with_tooltip(@snippet.created_at, placement: 'bottom', html_class: 'snippet_updated_ago')
+ - if @snippet.updated_at != @snippet.created_at
+ %span
+ &middot;
+ = icon('edit', title: 'edited')
+ = time_ago_with_tooltip(@snippet.updated_at, placement: 'bottom', html_class: 'snippet_edited_ago')
.pull-right
= link_to new_snippet_path, class: 'btn btn-grouped new-snippet-link', title: "New Snippet" do
= icon('plus')
- Add new snippet
+ new snippet
= link_to "remove", snippet_path(@snippet), method: :delete, data: { confirm: "Are you sure?" }, class: "btn btn-grouped btn-remove", title: 'Delete Snippet'
- if can?(current_user, :update_personal_snippet, @snippet)
= link_to edit_snippet_path(@snippet), class: "btn btn-grouped issuabled-edit" do