Commit 8129e2f3 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Small ui improvements to snippet page

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 0d8ad2dd
- page_title @snippet.title, "Snippets" - page_title @snippet.title, "Snippets"
%h3.page-title %h4.page-title
= @snippet.title = @snippet.title
- if @snippet.private? - if @snippet.private?
...@@ -8,17 +8,14 @@ ...@@ -8,17 +8,14 @@
private private
.pull-right .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 Add new snippet
%hr
.append-bottom-20 .append-bottom-10.prepend-top-10
.pull-right .pull-right
= "##{@snippet.id}"
%span.light %span.light
by created by
= link_to user_snippets_path(@snippet.author) do = link_to user_snippets_path(@snippet.author) do
= image_tag avatar_icon(@snippet.author_email), class: "avatar avatar-inline s16", alt: ''
= @snippet.author_name = @snippet.author_name
.back-link .back-link
...@@ -27,7 +24,7 @@ ...@@ -27,7 +24,7 @@
&larr; your snippets &larr; your snippets
- else - else
= link_to snippets_path do = link_to snippets_path do
&larr; discover snippets &larr; explore snippets
.file-holder .file-holder
.file-title .file-title
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment