diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-05-03 01:46:24 +0300 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2017-05-03 02:55:41 +0300 |
commit | 4f7811b7381f8475aef58101004238870f2fbcb9 (patch) | |
tree | 10640b79dc29b73398cfd6586f0bf4a312e6d538 /app/views/shared | |
parent | 185fd98fd4cb8f920558aea3795c4e1774cd39f5 (diff) |
Extract common parts of snippet and blob pages into partial
Diffstat (limited to 'app/views/shared')
-rw-r--r-- | app/views/shared/snippets/_blob.html.haml | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/app/views/shared/snippets/_blob.html.haml b/app/views/shared/snippets/_blob.html.haml index 9bcb4544b97..11f0fa7c49f 100644 --- a/app/views/shared/snippets/_blob.html.haml +++ b/app/views/shared/snippets/_blob.html.haml @@ -1,15 +1,6 @@ - blob = @snippet.blob .js-file-title.file-title-flex-parent - .file-header-content - = blob_icon blob.mode, blob.path - - %strong.file-title-name - = blob.path - - = copy_file_path_button(blob.path) - - %small - = number_to_human_size(blob.raw_size) + = render 'projects/blob/header_content', blob: blob .file-actions.hidden-xs = render 'projects/blob/viewer_switcher', blob: blob |