debian-mirror-gitlab/app/views/shared/snippets/_blob.html.haml
2016-11-03 12:29:30 +05:30

14 lines
498 B
Text

- unless @snippet.content.empty?
- if markup?(@snippet.file_name)
%textarea.markdown-snippet-copy.blob-content{data: {blob_id: @snippet.id}}
= @snippet.content
.file-content.wiki
- if gitlab_markdown?(@snippet.file_name)
= preserve(markdown_field(@snippet, :content))
- else
= render_markup(@snippet.file_name, @snippet.content)
- else
= render 'shared/file_highlight', blob: @snippet
- else
.file-content.code
.nothing-here-block Empty file