gitlab-org--gitlab-foss/app/views/snippets/show.html.haml

32 lines
739 B
Text
Raw Normal View History

%h3.page-title
= @snippet.title
- if @snippet.private?
%span.label.label-success
%i.icon-lock
private
.pull-right
= link_to new_snippet_path, class: "btn btn-new btn-small", title: "New Snippet" do
Add new snippet
2011-10-16 17:07:10 -04:00
.append-bottom-20
.pull-right
2013-06-05 15:25:27 -04:00
= "##{@snippet.id}"
%span.light
by
2013-07-18 06:33:43 -04:00
= link_to user_snippets_path(@snippet.author) do
2013-10-06 14:13:56 -04:00
= image_tag avatar_icon(@snippet.author_email), class: "avatar avatar-inline s16"
2013-07-18 06:33:43 -04:00
= @snippet.author_name
.back-link
- if @snippet.author == current_user
= link_to user_snippets_path(current_user) do
← my snippets
- else
= link_to snippets_path do
← discover snippets
%div= render 'blob'