%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'