gitlab-org--gitlab-foss/app/views/snippets/show.html.haml
2013-10-09 09:05:09 +02:00

31 lines
739 B
Text

%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
.append-bottom-20
.pull-right
= "##{@snippet.id}"
%span.light
by
= link_to user_snippets_path(@snippet.author) do
= image_tag avatar_icon(@snippet.author_email), class: "avatar avatar-inline s16"
= @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'