2014-02-03 08:16:59 -05:00
|
|
|
- unless @snippet.content.empty?
|
2015-05-12 19:54:13 -04:00
|
|
|
- if markup?(@snippet.file_name)
|
2016-12-26 05:47:16 -05:00
|
|
|
%textarea.markdown-snippet-copy.blob-content{ data: { blob_id: @snippet.id } }
|
2016-10-06 18:01:42 -04:00
|
|
|
= @snippet.content
|
2014-02-03 08:16:59 -05:00
|
|
|
.file-content.wiki
|
2016-10-06 18:01:42 -04:00
|
|
|
- if gitlab_markdown?(@snippet.file_name)
|
|
|
|
= preserve(markdown_field(@snippet, :content))
|
|
|
|
- else
|
|
|
|
= render_markup(@snippet.file_name, @snippet.content)
|
2014-02-03 08:16:59 -05:00
|
|
|
- else
|
2016-01-25 05:42:47 -05:00
|
|
|
= render 'shared/file_highlight', blob: @snippet
|
2014-02-03 08:16:59 -05:00
|
|
|
- else
|
|
|
|
.file-content.code
|
2014-02-20 06:51:22 -05:00
|
|
|
.nothing-here-block Empty file
|