2018-02-06 13:33:18 +00:00
|
|
|
.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
|
2021-06-26 00:07:55 +00:00
|
|
|
%a.gitlab-embedded-snippets-title{ href: url_for(only_path: false, overwrite_params: nil), target: '_blank', rel: 'noopener noreferrer' }
|
2020-07-27 12:09:50 +00:00
|
|
|
= blob.name
|
2018-02-06 13:33:18 +00:00
|
|
|
|
|
|
|
%small
|
2020-07-27 12:09:50 +00:00
|
|
|
= number_to_human_size(blob.size)
|
2021-06-26 00:07:55 +00:00
|
|
|
%a.gitlab-logo-wrapper{ href: url_for(only_path: false, overwrite_params: nil), title: 'View on GitLab', target: '_blank', rel: 'noopener noreferrer' }
|
2020-01-17 18:08:41 +00:00
|
|
|
%img.gitlab-logo{ src: image_url('ext_snippet_icons/logo.svg'), alt: "GitLab logo" }
|
2018-02-06 13:33:18 +00:00
|
|
|
|
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" }<
|
2020-07-27 12:09:50 +00:00
|
|
|
= embedded_raw_snippet_button(@snippet, blob)
|
2018-02-06 13:33:18 +00:00
|
|
|
|
2020-07-27 12:09:50 +00:00
|
|
|
= embedded_snippet_download_button(@snippet, blob)
|
2018-02-06 13:33:18 +00:00
|
|
|
%article.file-holder.snippet-file-content
|
2020-07-27 12:09:50 +00:00
|
|
|
= render 'projects/blob/viewer', viewer: blob.simple_viewer, load_async: false, external_embed: true
|