Read about our upcoming Code of Conduct on this issue

_embed.html.haml 883 Bytes
Newer Older
haseeb's avatar
haseeb committed
1
2
3
4
- blob = @snippet.blob
.gitlab-embed-snippets
  .js-file-title.file-title-flex-parent
    .file-header-content
5
      = external_snippet_icon('doc-text')
haseeb's avatar
haseeb committed
6
7

      %strong.file-title-name
haseeb's avatar
haseeb committed
8
9
        %a.gitlab-embedded-snippets-title{ href: url_for(only_path: false, overwrite_params: nil) }
          = blob.name
haseeb's avatar
haseeb committed
10
11
12

      %small
        = number_to_human_size(blob.raw_size)
13
14
      %a.gitlab-logo-wrapper{ href: url_for(only_path: false, overwrite_params: nil), title: 'view on gitlab' }
        %img.gitlab-logo{ src: image_url('ext_snippet_icons/logo.svg'), alt: "GitLab logo" }
haseeb's avatar
haseeb committed
15

16
    .file-actions.d-none.d-sm-block
haseeb's avatar
haseeb committed
17
      .btn-group{ role: "group" }<
18
        = embedded_raw_snippet_button
haseeb's avatar
haseeb committed
19
20
21
22

        = embedded_snippet_download_button
  %article.file-holder.snippet-file-content
    = render 'projects/blob/viewer', viewer: @snippet.blob.simple_viewer, load_async: false, external_embed: true