parent
96ce1d8d40
commit
635d49cc25
|
@ -3,11 +3,11 @@
|
|||
<% case field.name %>
|
||||
<% when 'course' %>
|
||||
<% if @course_acts.blank? %>
|
||||
<h2 class="h2-title"><%= field.name %></h2>
|
||||
<h2 class="h2-title">课程动态</h2>
|
||||
<div class="cl"></div>
|
||||
<%= render :partial => 'organizations/org_subfield_leftM1_default', :locals => {:field => field} %>
|
||||
<% else %>
|
||||
<h2 class="h2-title"><%= field.name %></h2>
|
||||
<h2 class="h2-title">课程动态</h2>
|
||||
<div class="cl"></div>
|
||||
<% @course_acts.first(1).each do |act| %>
|
||||
<% if act.org_act_type == "HomeworkCommon" %>
|
||||
|
@ -95,11 +95,11 @@
|
|||
<% end %>
|
||||
<% when 'project' %>
|
||||
<% if @project_acts.blank? %>
|
||||
<h2 class="h2-title"><%= field.name %></h2>
|
||||
<h2 class="h2-title">项目动态</h2>
|
||||
<div class="cl"></div>
|
||||
<%= render :partial => 'organizations/org_subfield_leftM1_default', :locals => {:field => field} %>
|
||||
<% else %>
|
||||
<h2 class="h2-title"><%= field.name %></h2>
|
||||
<h2 class="h2-title">项目动态</h2>
|
||||
<div class="cl"></div>
|
||||
<% @project_acts.first(1).each do |act| %>
|
||||
<% if act.org_act_type == "Issue" %>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<% when 'course' %>
|
||||
<% if @course_acts.blank? %>
|
||||
<div class="sn-index-leftbox" style="display:<%= field.hide == 0?'block':'none' %>;">
|
||||
<h2 class="h2-title"><%= field.name %></h2>
|
||||
<h2 class="h2-title">课程动态</h2>
|
||||
<div class="sn-index-resourcescon">
|
||||
<%= render :partial => 'organizations/org_subfield_leftMD_default', :locals => {:field => field} %>
|
||||
<div class="cl"></div>
|
||||
|
@ -12,7 +12,7 @@
|
|||
</div>
|
||||
<% else %>
|
||||
<div class="sn-index-leftbox" style="display:<%= field.hide == 0?'block':'none' %>;">
|
||||
<h2 class="h2-title"><%= field.name %></h2>
|
||||
<h2 class="h2-title">课程动态</h2>
|
||||
<div class="sn-index-resourcescon">
|
||||
<% @course_acts.first(4).each do |act| %>
|
||||
<% if act.org_act_type == "HomeworkCommon" %>
|
||||
|
@ -106,7 +106,7 @@
|
|||
<% when 'project' %>
|
||||
<% if @project_acts.blank? %>
|
||||
<div class="sn-index-leftbox" style="display:<%= field.hide == 0?'block':'none' %>;">
|
||||
<h2 class="h2-title"><%= field.name %></h2>
|
||||
<h2 class="h2-title">项目动态</h2>
|
||||
<div class="sn-index-resourcescon">
|
||||
<%= render :partial => 'organizations/org_subfield_leftMD_default', :locals => {:field => field} %>
|
||||
<div class="cl"></div>
|
||||
|
@ -114,7 +114,7 @@
|
|||
</div>
|
||||
<% else %>
|
||||
<div class="sn-index-leftbox" style="display:<%= field.hide == 0?'block':'none' %>;">
|
||||
<h2 class="h2-title"><%= field.name %></h2>
|
||||
<h2 class="h2-title">项目动态</h2>
|
||||
<div class="sn-index-resourcescon">
|
||||
<% @project_acts.first(4).each do |act| %>
|
||||
<% if act.org_act_type == "Issue" %>
|
||||
|
|
|
@ -3,13 +3,13 @@
|
|||
<% when 'course' %>
|
||||
<% if @course_acts.blank? %>
|
||||
<div class="sn-index-activebox" style="display:<%= field.hide == 0?'block':'none' %>;">
|
||||
<h2 class="h2-title mb18"><%= field.name %></h2>
|
||||
<h2 class="h2-title mb18">课程动态</h2>
|
||||
<%= render :partial => 'organizations/org_subfield_rightT_default', :locals => {:field => field} %>
|
||||
<div class="cl"></div>
|
||||
</div>
|
||||
<% else %>
|
||||
<div class="sn-index-activebox" style="display:<%= field.hide == 0?'block':'none' %>;">
|
||||
<h2 class="h2-title mb18"><%= field.name %></h2>
|
||||
<h2 class="h2-title mb18">课程动态</h2>
|
||||
<% @course_acts.first(4).each do |act| %>
|
||||
<% if act.org_act_type == "HomeworkCommon" %>
|
||||
<% activity = HomeworkCommon.find(act.org_act_id) %>
|
||||
|
@ -88,13 +88,13 @@
|
|||
<% when 'project' %>
|
||||
<% if @project_acts.blank? %>
|
||||
<div class="sn-index-activebox" style="display:<%= field.hide == 0?'block':'none' %>;">
|
||||
<h2 class="h2-title mb18"><%= field.name %></h2>
|
||||
<h2 class="h2-title mb18">项目动态</h2>
|
||||
<%= render :partial => 'organizations/org_subfield_rightT_default', :locals => {:field => field} %>
|
||||
<div class="cl"></div>
|
||||
</div>
|
||||
<% else %>
|
||||
<div class="sn-index-activebox" style="display:<%= field.hide == 0?'block':'none' %>;">
|
||||
<h2 class="h2-title mb18"><%= field.name %></h2>
|
||||
<h2 class="h2-title mb18">项目动态</h2>
|
||||
<% @project_acts.first(4).each do |act| %>
|
||||
<% if act.org_act_type == "Issue" %>
|
||||
<% activity = Issue.find(act.org_act_id) %>
|
||||
|
|
Loading…
Reference in New Issue