gitlab-org--gitlab-foss/app/views/snippets/show.html.haml
2013-08-01 22:35:40 +03:00

31 lines
741 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 gravatar_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'