Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_blob.html.haml « snippets « shared « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 30458793fd13e04ec7538cb3ded4ef91cc92dde0 (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_highlight', blob: @snippet
- else
  .file-content.code
    .nothing-here-block Empty file