diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-07-18 13:33:43 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-07-18 13:33:43 +0300 |
commit | 33347efa26857243c9e61d4c89d1c4631244c5be (patch) | |
tree | ee33499064572605a7507927b226a2fb7657fb8e /app/views/snippets | |
parent | 82e1fe4675226ea9665d9175aeca90a8528052f8 (diff) | |
download | gitlab-ce-33347efa26857243c9e61d4c89d1c4631244c5be.tar.gz |
User links to user snippets
Diffstat (limited to 'app/views/snippets')
-rw-r--r-- | app/views/snippets/_snippet.html.haml | 5 | ||||
-rw-r--r-- | app/views/snippets/current_user_index.html.haml | 2 | ||||
-rw-r--r-- | app/views/snippets/index.html.haml | 4 | ||||
-rw-r--r-- | app/views/snippets/show.html.haml | 5 | ||||
-rw-r--r-- | app/views/snippets/user_index.html.haml | 1 |
5 files changed, 8 insertions, 9 deletions
diff --git a/app/views/snippets/_snippet.html.haml b/app/views/snippets/_snippet.html.haml index cdad949f0bc..9689c9c4d38 100644 --- a/app/views/snippets/_snippet.html.haml +++ b/app/views/snippets/_snippet.html.haml @@ -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 diff --git a/app/views/snippets/current_user_index.html.haml b/app/views/snippets/current_user_index.html.haml index 1d9b60f7331..b60026f4584 100644 --- a/app/views/snippets/current_user_index.html.haml +++ b/app/views/snippets/current_user_index.html.haml @@ -19,6 +19,6 @@ = nav_tab :scope, 'public' do = link_to "Public", user_snippets_path(@user, scope: 'public') - .span9 + .span9.my-snippets = render 'snippets' diff --git a/app/views/snippets/index.html.haml b/app/views/snippets/index.html.haml index 1502a6698fe..c65ed4fb9df 100644 --- a/app/views/snippets/index.html.haml +++ b/app/views/snippets/index.html.haml @@ -9,7 +9,5 @@ My snippets %hr -.row - .span12 - = render 'snippets' += render 'snippets' diff --git a/app/views/snippets/show.html.haml b/app/views/snippets/show.html.haml index 811e429d22a..5cf1fefe5f0 100644 --- a/app/views/snippets/show.html.haml +++ b/app/views/snippets/show.html.haml @@ -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 diff --git a/app/views/snippets/user_index.html.haml b/app/views/snippets/user_index.html.haml index a9563b75e79..49636c3f5f0 100644 --- a/app/views/snippets/user_index.html.haml +++ b/app/views/snippets/user_index.html.haml @@ -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 |