_blob.html.haml 566 Bytes
Newer Older
1 2
.file-holder
  .file-title
3 4 5
    %i.icon-file
    %strong= @snippet.file_name
    %span.options
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
6 7 8
      .btn-group.tree-btn-group.pull-right
        - if @snippet.author == current_user
          = link_to "Edit", edit_snippet_path(@snippet), class: "btn btn-tiny", title: 'Edit Snippet'
9
          = link_to "Delete", snippet_path(@snippet), method: :delete, data: { confirm: "Are you sure?" }, class: "btn btn-tiny", title: 'Delete Snippet'
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
10
        = link_to "Raw", raw_snippet_path(@snippet), class: "btn btn-tiny", target: "_blank"
11
  = render 'snippets/blob_content'