修改点击图片跳转错误的bug

This commit is contained in:
nieguanghui 2013-08-07 16:24:31 +08:00
parent 85a23c468e
commit 2694611eed
2 changed files with 4 additions and 4 deletions

View File

@ -98,7 +98,7 @@
<% for user in @users -%> <% for user in @users -%>
<div class="well"> <div class="well">
<%= content_tag "p", "#{format_date(user.created_on)}#{l(:label_member_since)}", :class => "float_right member_since" %> <%= content_tag "p", "#{format_date(user.created_on)}#{l(:label_member_since)}", :class => "float_right member_since" %>
<%= get_avatar?(user) ? (link_to image_tag(avatar_image(user), :class => 'avatar'), :class => "avatar") : (link_to image_tag("/images/12_50.png", :class => 'avatar'), :class => "avatar") %> <%= get_avatar?(user) ? (link_to image_tag(avatar_image(user), :class => 'avatar'), user_path(user), :class => "avatar") : (link_to image_tag("/images/12_50.png", :class => 'avatar'), user_path(user), :class => "avatar") %>
<%= content_tag "div", link_to_user(user), :class => "nomargin avatar_name" %> <%= content_tag "div", link_to_user(user), :class => "nomargin avatar_name" %>
<%= content_tag "div", content_tag("p", user.firstname), :class => "clear avatar_name" %> <%= content_tag "div", content_tag("p", user.firstname), :class => "clear avatar_name" %>
<p> <p>