debian-mirror-gitlab/app/views/shared/snippets/_embed.html.haml

22 lines
971 B
Text
Raw Normal View History

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
2021-09-30 23:02:18 +05:30
%a.gitlab-embedded-snippets-title{ href: url_for(only_path: false, overwrite_params: nil), target: '_blank', rel: 'noopener noreferrer' }
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)
2021-09-30 23:02:18 +05:30
%a.gitlab-logo-wrapper{ href: url_for(only_path: false, overwrite_params: nil), title: 'View on GitLab', target: '_blank', rel: 'noopener noreferrer' }
2020-03-13 15:44:24 +05:30
%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