summaryrefslogtreecommitdiff
path: root/app/views/projects/snippets/show.html.haml
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-10-18 12:54:02 +0200
committerDouwe Maan <douwe@gitlab.com>2015-10-18 12:54:02 +0200
commitb371b6d13974fe8db3601e68922db0b735049a17 (patch)
tree245a4752efce600fabe629dd8e0e6d82cdecfdb5 /app/views/projects/snippets/show.html.haml
parent1565a95da17ba8425486839d0712a9141d66b98f (diff)
downloadgitlab-ce-b371b6d13974fe8db3601e68922db0b735049a17.tar.gz
Update style of snippet detail page
Diffstat (limited to 'app/views/projects/snippets/show.html.haml')
-rw-r--r--app/views/projects/snippets/show.html.haml29
1 files changed, 16 insertions, 13 deletions
diff --git a/app/views/projects/snippets/show.html.haml b/app/views/projects/snippets/show.html.haml
index 1aeb0da2016..5d706942f2d 100644
--- a/app/views/projects/snippets/show.html.haml
+++ b/app/views/projects/snippets/show.html.haml
@@ -1,15 +1,18 @@
- page_title @snippet.title, "Snippets"
= render "header_title"
-= render 'shared/snippets/header'
-
-.file-holder
- .file-title
- %i.fa.fa-file
- %strong
- = @snippet.file_name
- .file-actions
- .btn-group
- = link_to 'Raw', raw_namespace_project_snippet_path(@project.namespace, @project, @snippet), class: "btn btn-sm", target: "_blank"
-
- = render 'shared/snippets/blob'
-%div#notes= render "projects/notes/notes_with_form"
+
+.snippet-holder
+ = render 'shared/snippets/header'
+
+ %article.file-holder
+ .file-title
+ = blob_icon 0, @snippet.file_name
+ %strong
+ = @snippet.file_name
+ .file-actions.hidden-xs
+ .btn-group.tree-btn-group
+ = link_to 'Raw', raw_namespace_project_snippet_path(@project.namespace, @project, @snippet), class: "btn btn-sm", target: "_blank"
+
+ = render 'shared/snippets/blob'
+
+ %div#notes= render "projects/notes/notes_with_form"