BigW Consortium Gitlab

_blob.html.haml 910 Bytes
Newer Older
Douwe Maan committed
1 2 3 4 5 6 7 8 9 10 11
.js-file-title.file-title-flex-parent
  .file-header-content
    = blob_icon @snippet.mode, @snippet.path

    %strong.file-title-name
      = @snippet.path

    = copy_file_path_button(@snippet.path)

  .file-actions.hidden-xs
    .btn-group{ role: "group" }<
Douwe Maan committed
12
      = copy_blob_source_button(@snippet)
Douwe Maan committed
13 14 15 16 17 18 19 20 21
      = open_raw_file_button(raw_path)

      - if defined?(download_path) && download_path
        = link_to icon('download'), download_path, class: "btn btn-sm has-tooltip", title: 'Download', data: { container: 'body' }

- if @snippet.content.empty?
  .file-content.code
    .nothing-here-block Empty file
- else
22
  - if markup?(@snippet.file_name)
23
    .file-content.wiki
24 25 26
      - if gitlab_markdown?(@snippet.file_name)
        = preserve(markdown_field(@snippet, :content))
      - else
Douwe Maan committed
27
        = markup(@snippet.file_name, @snippet.content)
28
  - else
29
    = render 'shared/file_highlight', blob: @snippet