debian-mirror-gitlab/app/views/shared/snippets/_blob.html.haml

15 lines
498 B
Text
Raw Normal View History

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}}
2016-11-03 12:29:30 +05:30
= @snippet.content
2014-09-02 18:07:02 +05:30
.file-content.wiki
2016-11-03 12:29:30 +05:30
- if gitlab_markdown?(@snippet.file_name)
= preserve(markdown_field(@snippet, :content))
- else
= render_markup(@snippet.file_name, @snippet.content)
2014-09-02 18:07:02 +05:30
- 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