项目统计添加判断

This commit is contained in:
huang 2016-04-21 11:19:21 +08:00
parent ba171c49cc
commit 42076a137d
2 changed files with 1 additions and 3 deletions

View File

@ -586,8 +586,6 @@ update
end
end
end
# @static_month__per_user = g.rep_stats(project_id, :rev => rev, :creator => creator, :period => 2)
# @static_week_per_user = g.rep_stats(project_id, :rev => rev, :creator => creator, :period => 3)
rescue
render_404
return

View File

@ -29,7 +29,7 @@
<!--CONTENT LIST-->
</div>
<% unless @project.gpid.nil? || @project.project_score.changeset_num == 0 %>
<% unless @project.gpid.nil? || @project.project_score.changeset_num == 0 || @project.rep_statics.blank? %>
<div class="resources mt10">
<div class="homepagePostBrief">
<%= render :partial => "rep_static" %>