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

22 lines
854 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
%a.gitlab-embedded-snippets-title{ href: url_for(only_path: false, overwrite_params: nil) }
2020-04-08 14:13:33 +05:30
= @blob.name
2018-10-15 14:42:47 +05:30
%small
2020-04-08 14:13:33 +05:30
= number_to_human_size(@blob.raw_size)
2020-03-09 13:42:32 +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" }<
2019-12-26 22:10:19 +05:30
= embedded_raw_snippet_button
2018-10-15 14:42:47 +05:30
= embedded_snippet_download_button
%article.file-holder.snippet-file-content
2020-04-08 14:13:33 +05:30
= render 'projects/blob/viewer', viewer: @blob.simple_viewer, load_async: false, external_embed: true