2018-02-06 13:33:18 +00:00
|
|
|
- blob = @snippet.blob
|
|
|
|
.gitlab-embed-snippets
|
|
|
|
.js-file-title.file-title-flex-parent
|
|
|
|
.file-header-content
|
2018-07-27 09:27:20 +00:00
|
|
|
= external_snippet_icon('doc-text')
|
2018-02-06 13:33:18 +00:00
|
|
|
|
|
|
|
%strong.file-title-name
|
2018-02-21 14:09:33 +00:00
|
|
|
%a.gitlab-embedded-snippets-title{ href: url_for(only_path: false, overwrite_params: nil) }
|
|
|
|
= blob.name
|
2018-02-06 13:33:18 +00:00
|
|
|
|
|
|
|
%small
|
|
|
|
= number_to_human_size(blob.raw_size)
|
2018-03-03 07:00:32 +00:00
|
|
|
%a.gitlab-logo{ href: url_for(only_path: false, overwrite_params: nil), title: 'view on gitlab' }
|
2018-02-06 13:33:18 +00:00
|
|
|
on
|
|
|
|
%span.logo-text
|
|
|
|
GitLab
|
|
|
|
|
2018-05-09 21:22:22 +00:00
|
|
|
.file-actions.d-none.d-sm-block
|
2018-02-06 13:33:18 +00:00
|
|
|
.btn-group{ role: "group" }<
|
2019-11-08 09:06:07 +00:00
|
|
|
= embedded_raw_snippet_button
|
2018-02-06 13:33:18 +00:00
|
|
|
|
|
|
|
= 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
|