Small ui improvements to snippet page

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
Dmitriy Zaporozhets 2015-08-20 12:56:15 +02:00
parent 0d8ad2dd63
commit 8129e2f33f
No known key found for this signature in database
GPG key ID: 161B5D6A44D3D88A

View file

@ -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