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