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
|
2018-02-21 14:09:33 +00:00
|
|
|
%a.gitlab-embedded-snippets-title{ href: url_for(only_path: false, overwrite_params: nil) }
|
2020-02-25 09:09:10 +00:00
|
|
|
= @blob.name
|
2018-02-06 13:33:18 +00:00
|
|
|
|
|
|
|
%small
|
2020-02-25 09:09:10 +00:00
|
|
|
= number_to_human_size(@blob.raw_size)
|
2020-01-17 18:08:41 +00:00
|
|
|
%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-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" }<
|
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
|
2020-02-25 09:09:10 +00:00
|
|
|
= render 'projects/blob/viewer', viewer: @blob.simple_viewer, load_async: false, external_embed: true
|