summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-08-20 12:56:15 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-08-20 12:56:15 +0200
commit8129e2f33f1b1538f2c984f0c7c58855d32dcd8b (patch)
tree32819c8b24c6f4d016e237f0c985ea836789a850
parent0d8ad2dd6333e4f93b64cc43f3aacfcd89103cbd (diff)
downloadgitlab-ce-8129e2f33f1b1538f2c984f0c7c58855d32dcd8b.tar.gz
Small ui improvements to snippet page
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
-rw-r--r--app/views/snippets/show.html.haml13
1 files changed, 5 insertions, 8 deletions
diff --git a/app/views/snippets/show.html.haml b/app/views/snippets/show.html.haml
index 089e8122918..aed00f9caeb 100644
--- a/app/views/snippets/show.html.haml
+++ b/app/views/snippets/show.html.haml
@@ -1,5 +1,5 @@
- page_title @snippet.title, "Snippets"
-%h3.page-title
+%h4.page-title
= @snippet.title
- if @snippet.private?
@@ -8,17 +8,14 @@
private
.pull-right
- = link_to new_snippet_path, class: "btn btn-new", title: "New Snippet" do
+ = link_to new_snippet_path, class: "btn btn-new btn-sm", title: "New Snippet" do
Add new snippet
-%hr
-.append-bottom-20
+.append-bottom-10.prepend-top-10
.pull-right
- = "##{@snippet.id}"
%span.light
- by
+ created by
= link_to user_snippets_path(@snippet.author) do
- = image_tag avatar_icon(@snippet.author_email), class: "avatar avatar-inline s16", alt: ''
= @snippet.author_name
.back-link
@@ -27,7 +24,7 @@
&larr; your snippets
- else
= link_to snippets_path do
- &larr; discover snippets
+ &larr; explore snippets
.file-holder
.file-title