修改用户列表tabs显示bug

This commit is contained in:
huangjingquan 2013-09-02 20:37:41 +08:00
parent f882a2d9b4
commit a318266c60
2 changed files with 15 additions and 3 deletions

View File

@ -207,9 +207,10 @@ class UsersController < ApplicationController
end end
@users = scope.includes(:user_status).reorder('user_statuses.watchers_count').offset(@offset).limit(limit).all.reverse @users = scope.includes(:user_status).reorder('user_statuses.watchers_count').offset(@offset).limit(limit).all.reverse
end end
@s_type = 2
#@users = @users[@offset, @limit] #@users = @users[@offset, @limit]
end end
@s_type = 2
else else
@offset ||= @user_pages.reverse_offset @offset ||= @user_pages.reverse_offset
unless @offset == 0 unless @offset == 0

View File

@ -179,9 +179,20 @@ ul.tool li{list-style-type:none;
.font_welcome_tdescription{ .font_welcome_tdescription{
font-family: '微软雅黑'; font-family: '微软雅黑';
font-size: 20px; font-size: 20px;
color: #5c5c5c; color: #5c5c5c;
text-align: justify;
text-justify: inter-ideograph;
} }
.font_welcome_tdescription2{
font-family: Arial, Helvetica, sans-serif;
font-size: 20px;
color: #FF0000;
text-align: justify;
text-justify: inter-ideograph;
}
.font_welcome_Edescription{ .font_welcome_Edescription{
font-family: Default; font-family: Default;
font-size: 16px; font-size: 16px;
@ -1149,7 +1160,7 @@ ul.projects li {list-style-type:none;
#projects-index ul.projects ul.projects { border-left: 3px solid #e0e0e0; padding-left:1em;} #projects-index ul.projects ul.projects { border-left: 3px solid #e0e0e0; padding-left:1em;}
#projects-index ul.projects li.root {margin-bottom: 1em;} #projects-index ul.projects li.root {margin-bottom: 1em;}
#projects-index ul.projects li.child {margin-top: 1em;} #projects-index ul.projects li.child {margin-top: 1em;}
#projects-index ul.projects div.root a.project {font-family:'微软雅黑', "Trebuchet MS", Verdana, sans-serif; font-weight: bold; font-size: 16px; margin: 0 0 10px 0; } #projects-index ul.projects div.root a.project {font-family:'微软雅黑', "Trebuchet MS", Verdana, sans-serif; font-weight: bold; font-size: 14px; margin: 0 0 10px 0; }
.my-project { padding-left: 18px; background: url(../images/fav.png) no-repeat 0 50%; } .my-project { padding-left: 18px; background: url(../images/fav.png) no-repeat 0 50%; }
#notified-projects ul, #tracker_project_ids ul {max-height:250px; overflow-y:auto;} #notified-projects ul, #tracker_project_ids ul {max-height:250px; overflow-y:auto;}