提交 33347efa 编写于 作者: D Dmitriy Zaporozhets

User links to user snippets

上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册