增加关注和粉丝头像处鼠标悬浮显示用户名字,问题列表样式调整

This commit is contained in:
nieguanghui 2013-08-07 17:06:05 +08:00
parent b78504a5f1
commit 05023c8451
2 changed files with 7 additions and 4 deletions

View File

@ -1295,7 +1295,7 @@ module ApplicationHelper
def show_watcher_profile(obj)
html = ''
for user in User.watched_by(obj.id)
html << (link_to image_tag(url_to_avatar(user), :class => "avatar"), user_path(user), :class => "avatar")
html << (link_to image_tag(url_to_avatar(user), :class => "avatar"), user_path(user), :class => "avatar", :title => "#{user.name}")
end
html.html_safe
end
@ -1304,7 +1304,7 @@ module ApplicationHelper
def show_fans_picture(obj)
html = ''
for user in obj.watcher_users
html << (link_to image_tag(url_to_avatar(user), :class => "avatar"), user_path(user), :class => "avatar")
html << (link_to image_tag(url_to_avatar(user), :class => "avatar"), user_path(user), :class => "avatar", :title => "#{user.name}")
end
html.html_safe
end

View File

@ -1250,7 +1250,10 @@ a.tag {
cursor: pointer;
}
div.project-block img.avatar2 {
width: 64px;
height: 64px;
}
@ -1572,7 +1575,7 @@ div.find-comment-class {
float: right;
}
a.bid_user_u {
color: rgb(72, 72, 72);
margin-right: 4px;
}
/*
*/