2018-10-15 14:42:47 +05:30
|
|
|
- blob = @snippet.blob
|
|
|
|
.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) }
|
|
|
|
= blob.name
|
|
|
|
|
|
|
|
%small
|
|
|
|
= number_to_human_size(blob.raw_size)
|
|
|
|
%a.gitlab-logo{ href: url_for(only_path: false, overwrite_params: nil), title: 'view on gitlab' }
|
|
|
|
on
|
|
|
|
%span.logo-text
|
|
|
|
GitLab
|
|
|
|
|
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" }<
|
|
|
|
= embedded_snippet_raw_button
|
|
|
|
|
|
|
|
= embedded_snippet_download_button
|
|
|
|
%article.file-holder.snippet-file-content
|
|
|
|
= render 'projects/blob/viewer', viewer: @snippet.blob.simple_viewer, load_async: false, external_embed: true
|