Commit 33347efa authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

User links to user snippets

parent 82e1fe46
...@@ -75,7 +75,6 @@ ul.bordered-list { ...@@ -75,7 +75,6 @@ ul.bordered-list {
display: block; display: block;
margin: 0px; margin: 0px;
&:last-child { border:none } &:last-child { border:none }
&.active { &.active {
background: #f9f9f9; background: #f9f9f9;
a { font-weight: bold; } a { font-weight: bold; }
......
...@@ -7,3 +7,9 @@ ...@@ -7,3 +7,9 @@
} }
} }
} }
.my-snippets li:first-child {
h4 { margin-top: 0; }
padding-top: 0;
}
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
= "##{snippet.id}" = "##{snippet.id}"
%span %span
by by
= image_tag gravatar_icon(snippet.author_email), class: "avatar avatar-inline s16", alt: '' = link_to user_snippets_path(snippet.author) do
= snippet.author_name = image_tag gravatar_icon(snippet.author_email), class: "avatar avatar-inline s16", alt: ''
= snippet.author_name
%span.light #{time_ago_in_words(snippet.created_at)} ago %span.light #{time_ago_in_words(snippet.created_at)} ago
...@@ -19,6 +19,6 @@ ...@@ -19,6 +19,6 @@
= nav_tab :scope, 'public' do = nav_tab :scope, 'public' do
= link_to "Public", user_snippets_path(@user, scope: 'public') = link_to "Public", user_snippets_path(@user, scope: 'public')
.span9 .span9.my-snippets
= render 'snippets' = render 'snippets'
...@@ -9,7 +9,5 @@ ...@@ -9,7 +9,5 @@
My snippets My snippets
%hr %hr
.row = render 'snippets'
.span12
= render 'snippets'
...@@ -16,8 +16,9 @@ ...@@ -16,8 +16,9 @@
= "##{@snippet.id}" = "##{@snippet.id}"
%span.light %span.light
by by
= image_tag gravatar_icon(@snippet.author_email), class: "avatar avatar-inline s16" = link_to user_snippets_path(@snippet.author) do
= @snippet.author_name = image_tag gravatar_icon(@snippet.author_email), class: "avatar avatar-inline s16"
= @snippet.author_name
.back-link .back-link
- if @snippet.author == current_user - if @snippet.author == current_user
......
...@@ -4,7 +4,6 @@ ...@@ -4,7 +4,6 @@
%span %span
\/ \/
Snippets Snippets
%small share code pastes with others out of git repository
= link_to new_snippet_path, class: "btn btn-small add_new pull-right", title: "New Snippet" do = link_to new_snippet_path, class: "btn btn-small add_new pull-right", title: "New Snippet" do
Add new snippet Add new snippet
......
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