%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-small add_new grouped btn-primary", title: "New Snippet" do
      Add new snippet


.append-bottom-20
  .pull-right
    = "##{@snippet.id}"
    %span.light
      by
      = 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'