2014-09-02 18:07:02 +05:30
|
|
|
- unless @snippet.content.empty?
|
2015-09-11 14:41:01 +05:30
|
|
|
- if markup?(@snippet.file_name)
|
2016-06-02 11:05:42 +05:30
|
|
|
%textarea.markdown-snippet-copy.blob-content{data: {blob_id: @snippet.id}}
|
|
|
|
= @snippet.data
|
2014-09-02 18:07:02 +05:30
|
|
|
.file-content.wiki
|
|
|
|
= render_markup(@snippet.file_name, @snippet.data)
|
|
|
|
- else
|
2016-02-05 20:25:01 +05:30
|
|
|
= render 'shared/file_highlight', blob: @snippet
|
2014-09-02 18:07:02 +05:30
|
|
|
- else
|
|
|
|
.file-content.code
|
|
|
|
.nothing-here-block Empty file
|