增加方法

This commit is contained in:
nieguanghui 2013-11-28 08:39:58 +08:00
parent 1f83ca612b
commit eb2bf5b879
2 changed files with 9 additions and 2 deletions

View File

@ -84,7 +84,14 @@ module WelcomeHelper
def sort_contest_by_hot
return sort_bid_by_hot_rails 2
end
#取得所有活动
def find_all_activities
end
#取得论坛数据
def find_hot_forum_topics
end
def sort_project_by_hot_rails project_type
limit = 10
project_type == 0 ? Project.find_by_sql("

View File

@ -167,7 +167,7 @@
<p><span>1分钟前</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span>评论(4)</span></p>
</div>
</li>
<li style="display: block;height:60px;">
<li style="display: block; height:60px;">
<div class="inner-right" style="float: left; height: 100%;">
<img class="avatar-3" style="width: 40px; height: 40px; margin-top:10px;" src="/images/avatars/User/4861?1385345302"></img>
</div>