gitlab-org--gitlab-foss/app/views/shared/snippets/_blob.html.haml

15 lines
502 B
Text
Raw Normal View History

- 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
2016-01-25 05:42:47 -05:00
= render 'shared/file_highlight', blob: @snippet
- else
.file-content.code
.nothing-here-block Empty file