Commit 315d4cc8e86efa1ad5a1e50e55311cb23419e23f

Authored by Dmitriy Zaporozhets
2 parents 9b181dc6 82271e78

Merge pull request #4415 from jackbot/master

Couple of UI additions
app/views/snippets/_blob.html.haml
... ... @@ -6,6 +6,7 @@
6 6 .btn-group.tree-btn-group.pull-right
7 7 - if @snippet.author == current_user
8 8 = link_to "Edit", edit_snippet_path(@snippet), class: "btn btn-tiny", title: 'Edit Snippet'
  9 + = link_to "Delete", snippet_path(@snippet), method: :delete, confirm: "Are you sure?", class: "btn btn-tiny", title: 'Delete Snippet'
9 10 = link_to "Raw", raw_snippet_path(@snippet), class: "btn btn-tiny", target: "_blank"
10 11 .file_content.code
11 12 - unless @snippet.content.empty?
... ...
app/views/snippets/show.html.haml
1 1 %h3.page_title
2 2 - if @snippet.private?
3   - %i.icon-lock.cgreen
  3 + %i{:class => "icon-lock cgreen has_bottom_tooltip", "data-original-title" => "Private snippet"}
4 4 - else
5   - %i.icon-globe.cblue
  5 + %i{:class => "icon-globe cblue has_bottom_tooltip", "data-original-title" => "Public snippet"}
6 6  
7 7 = @snippet.title
8 8  
... ...