summaryrefslogtreecommitdiff
path: root/app/views/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/snippets/show.html.haml
parent36e832cc280115673e96f3adf624b9737d40f7fd (diff)
downloadgitlab-ce-e7bcbb95c88a42fc31bc0ccbdf6a819780a612ec.tar.gz
Restyle snippets
Diffstat (limited to 'app/views/snippets/show.html.haml')
-rw-r--r--app/views/snippets/show.html.haml13
1 files changed, 8 insertions, 5 deletions
diff --git a/app/views/snippets/show.html.haml b/app/views/snippets/show.html.haml
index 18348fb1067..f425c4bd51e 100644
--- a/app/views/snippets/show.html.haml
+++ b/app/views/snippets/show.html.haml
@@ -1,13 +1,16 @@
%h3.page_title
- if @snippet.private?
- %i.icon-lock
+ %i.icon-lock.cgreen
- else
- %i.icon-globe
+ %i.icon-globe.cblue
= @snippet.title
- %small= @snippet.file_name
- - if @snippet.author == current_user
- = link_to "Edit", edit_snippet_path(@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 'blob'