Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2017-05-03 01:46:24 +0300
committerDouwe Maan <douwe@selenight.nl>2017-05-03 02:55:41 +0300
commit4f7811b7381f8475aef58101004238870f2fbcb9 (patch)
tree10640b79dc29b73398cfd6586f0bf4a312e6d538 /app/views/shared/snippets
parent185fd98fd4cb8f920558aea3795c4e1774cd39f5 (diff)
Extract common parts of snippet and blob pages into partial
Diffstat (limited to 'app/views/shared/snippets')
-rw-r--r--app/views/shared/snippets/_blob.html.haml11
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