summaryrefslogtreecommitdiff
path: root/app/views/shared/snippets/_blob.html.haml
blob: 8cec6168ab83eeb07f6c0f0efa4a56da4641e378 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
- unless @snippet.content.empty?
  - if gitlab_markdown?(@snippet.file_name)
    .file-content.wiki
      = preserve do
        = markdown(@snippet.data)
  - elsif markup?(@snippet.file_name)
    .file-content.wiki
      = render_markup(@snippet.file_name, @snippet.data)
  - else
    .file-content.code
      = render 'shared/file_hljs', blob: @snippet
- else
  .file-content.code
    .nothing-here-block Empty file