2013-07-13 02:52:47 -04:00
|
|
|
.file-holder
|
|
|
|
.file-title
|
2012-11-25 23:14:05 -05:00
|
|
|
%i.icon-file
|
|
|
|
%strong= @snippet.file_name
|
|
|
|
%span.options
|
2013-06-05 15:25:27 -04:00
|
|
|
.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'
|
2013-06-24 18:55:37 -04:00
|
|
|
= link_to "Delete", snippet_path(@snippet), method: :delete, confirm: "Are you sure?", class: "btn btn-tiny", title: 'Delete Snippet'
|
2013-06-05 15:25:27 -04:00
|
|
|
= link_to "Raw", raw_snippet_path(@snippet), class: "btn btn-tiny", target: "_blank"
|
2013-07-13 02:52:47 -04:00
|
|
|
.file-content.code
|
2012-11-25 23:14:05 -05:00
|
|
|
- unless @snippet.content.empty?
|
2012-11-27 16:49:22 -05:00
|
|
|
%div{class: user_color_scheme_class}
|
|
|
|
= raw @snippet.colorize(formatter: :gitlab)
|
2012-11-25 23:14:05 -05:00
|
|
|
- else
|
|
|
|
%p.nothing_here_message Empty file
|