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

User links to user snippets

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