summaryrefslogtreecommitdiff
path: root/app/views/projects/snippets/show.html.haml
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-06-05 22:25:27 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-06-05 22:25:27 +0300
commite7bcbb95c88a42fc31bc0ccbdf6a819780a612ec (patch)
tree3d29ffada6edbd662c692a1bc3adb63696511b84 /app/views/projects/snippets/show.html.haml
parent36e832cc280115673e96f3adf624b9737d40f7fd (diff)
downloadgitlab-ce-e7bcbb95c88a42fc31bc0ccbdf6a819780a612ec.tar.gz
Restyle snippets
Diffstat (limited to 'app/views/projects/snippets/show.html.haml')
-rw-r--r--app/views/projects/snippets/show.html.haml10
1 files changed, 7 insertions, 3 deletions
diff --git a/app/views/projects/snippets/show.html.haml b/app/views/projects/snippets/show.html.haml
index db5a721dc45..da93e4bdbb1 100644
--- a/app/views/projects/snippets/show.html.haml
+++ b/app/views/projects/snippets/show.html.haml
@@ -1,9 +1,13 @@
%h3.page_title
+ %i.icon-lock.cgreen
= @snippet.title
- %small= @snippet.file_name
- - if can?(current_user, :admin_project_snippet, @project) || @snippet.author == current_user
- = link_to "Edit", edit_project_snippet_path(@project, @snippet), class: "btn btn-small pull-right", title: 'Edit Snippet'
+ %small.pull-right
+ = "##{@snippet.id}"
+ %span.light
+ by
+ = image_tag gravatar_icon(@snippet.author_email), class: "avatar avatar-inline s16"
+ = @snippet.author_name
%br
%div= render 'projects/snippets/blob'
%div#notes= render "notes/notes_with_form"