show.html.haml 739 Bytes
Newer Older
1
%h3.page-title
2 3
  = @snippet.title

4
  - if @snippet.private?
5 6 7
    %span.label.label-success
      %i.icon-lock
      private
8

9
  .pull-right
10
    = link_to new_snippet_path, class: "btn btn-new btn-small", title: "New Snippet" do
11
      Add new snippet
gitlabhq's avatar
gitlabhq committed
12

13 14 15

.append-bottom-20
  .pull-right
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
16 17 18
    = "##{@snippet.id}"
    %span.light
      by
19
      = link_to user_snippets_path(@snippet.author) do
20
        = image_tag avatar_icon(@snippet.author_email), class: "avatar avatar-inline s16"
21
        = @snippet.author_name
22 23 24 25 26 27 28 29 30

  .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

31
%div= render 'blob'