项目统计添加判断
This commit is contained in:
parent
ba171c49cc
commit
42076a137d
|
@ -586,8 +586,6 @@ update
|
||||||
end
|
end
|
||||||
end
|
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
|
rescue
|
||||||
render_404
|
render_404
|
||||||
return
|
return
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
<!--CONTENT LIST-->
|
<!--CONTENT LIST-->
|
||||||
|
|
||||||
</div>
|
</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="resources mt10">
|
||||||
<div class="homepagePostBrief">
|
<div class="homepagePostBrief">
|
||||||
<%= render :partial => "rep_static" %>
|
<%= render :partial => "rep_static" %>
|
||||||
|
|
Loading…
Reference in New Issue