2018-10-15 14:42:47 +05:30
|
|
|
.gitlab-embed-snippets
|
|
|
|
.js-file-title.file-title-flex-parent
|
|
|
|
.file-header-content
|
2018-11-18 11:00:15 +05:30
|
|
|
= external_snippet_icon('doc-text')
|
2018-10-15 14:42:47 +05:30
|
|
|
|
|
|
|
%strong.file-title-name
|
|
|
|
%a.gitlab-embedded-snippets-title{ href: url_for(only_path: false, overwrite_params: nil) }
|
2020-10-24 23:57:45 +05:30
|
|
|
= blob.name
|
2018-10-15 14:42:47 +05:30
|
|
|
|
|
|
|
%small
|
2020-10-24 23:57:45 +05:30
|
|
|
= number_to_human_size(blob.size)
|
2020-03-13 15:44:24 +05:30
|
|
|
%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" }
|
2018-10-15 14:42:47 +05:30
|
|
|
|
2018-11-08 19:23:39 +05:30
|
|
|
.file-actions.d-none.d-sm-block
|
2018-10-15 14:42:47 +05:30
|
|
|
.btn-group{ role: "group" }<
|
2020-10-24 23:57:45 +05:30
|
|
|
= embedded_raw_snippet_button(@snippet, blob)
|
2018-10-15 14:42:47 +05:30
|
|
|
|
2020-10-24 23:57:45 +05:30
|
|
|
= embedded_snippet_download_button(@snippet, blob)
|
2018-10-15 14:42:47 +05:30
|
|
|
%article.file-holder.snippet-file-content
|
2020-10-24 23:57:45 +05:30
|
|
|
= render 'projects/blob/viewer', viewer: blob.simple_viewer, load_async: false, external_embed: true
|