Small ui improvements to snippet page
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
parent
0d8ad2dd63
commit
8129e2f33f
1 changed files with 5 additions and 8 deletions
|
@ -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 @@
|
|||
← your snippets
|
||||
- else
|
||||
= link_to snippets_path do
|
||||
← discover snippets
|
||||
← explore snippets
|
||||
|
||||
.file-holder
|
||||
.file-title
|
||||
|
|
Loading…
Reference in a new issue