|
|
|
@ -45,7 +45,7 @@
|
|
|
|
|
<% (Rails.logger.error "[Error] =========================================================> NameError: uninitialized constant " + e.act_type.to_s; next;) if e.act_type.safe_constantize.nil? %>
|
|
|
|
|
<% act = e.act %>
|
|
|
|
|
<% unless act.nil? %>
|
|
|
|
|
<% if e.act_type == 'JournalsForMessage' || e.act_type == 'Bid' || e.act_type == 'Journal'|| e.act_type == 'Changeset' || e.act_type == 'Message' || e.act_type == 'Principal' || e.act_type == 'News' || e.act_type == 'Issue' || e.act_type == 'Contest' %>
|
|
|
|
|
<% if e.act_type == 'JournalsForMessage' || e.act_type == 'HomeworkCommon' || e.act_type == 'Journal'|| e.act_type == 'Changeset' || e.act_type == 'Message' || e.act_type == 'Principal' || e.act_type == 'News' || e.act_type == 'Issue' || e.act_type == 'Contest' %>
|
|
|
|
|
|
|
|
|
|
<table width="660" border="0" align="left" style="border-bottom: 1px dashed rgb(204, 204, 204); margin-bottom: 10px;font-size:14px;">
|
|
|
|
|
<tr>
|
|
|
|
@ -119,52 +119,28 @@
|
|
|
|
|
<div style="display: inline-block; float: right; margin-top: 0px"></div>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<% when 'Bid' %>
|
|
|
|
|
<% when 'HomeworkCommon' %>
|
|
|
|
|
<tr>
|
|
|
|
|
<% if act.reward_type == 3 && @show_course == 1 %>
|
|
|
|
|
<% if e.user == User.current %>
|
|
|
|
|
<td colspan="2" valign="top">
|
|
|
|
|
<strong>
|
|
|
|
|
<%= link_to("#{l(:label_i)}", user_path(e.user_id)) %>
|
|
|
|
|
</strong>
|
|
|
|
|
<% if e.user == User.current %>
|
|
|
|
|
<td colspan="2" valign="top">
|
|
|
|
|
<strong>
|
|
|
|
|
<%= link_to("#{l(:label_i)}", user_path(e.user_id)) %>
|
|
|
|
|
</strong>
|
|
|
|
|
<span class="font_lighter">
|
|
|
|
|
<%= l(:label_i_new_activity) %>
|
|
|
|
|
</span>
|
|
|
|
|
<%= link_to format_activity_title("#{l(:label_active_homework)}##{act.id}:#{act.name}"), course_for_bid_path(e.act_id) %>
|
|
|
|
|
</td>
|
|
|
|
|
<% else %>
|
|
|
|
|
<td colspan="2" valign="top">
|
|
|
|
|
<strong>
|
|
|
|
|
<%= link_to(h(e.user), user_path(e.user_id)) %>
|
|
|
|
|
</strong>
|
|
|
|
|
<span class="font_lighter">
|
|
|
|
|
<%= l(:label_new_activity) %>
|
|
|
|
|
</span>
|
|
|
|
|
<%= link_to format_activity_title("#{l(:label_active_homework)}##{act.id}:#{act.name}"), course_for_bid_path(e.act_id) %>
|
|
|
|
|
</td>
|
|
|
|
|
<% end %>
|
|
|
|
|
<%= link_to format_activity_title("#{l(:label_active_homework)}##{act.id}:#{act.name}"), student_work_index_path(:homework => e.act_id) %>
|
|
|
|
|
</td>
|
|
|
|
|
<% else %>
|
|
|
|
|
<% if e.user == User.current %>
|
|
|
|
|
<td colspan="2" valign="top">
|
|
|
|
|
<strong>
|
|
|
|
|
<%= link_to("#{l(:label_i)}", user_path(e.user_id)) %>
|
|
|
|
|
</strong>
|
|
|
|
|
<span class="font_lighter">
|
|
|
|
|
<%= l(:label_i_new_activity) %>
|
|
|
|
|
</span>
|
|
|
|
|
<%= link_to format_activity_title("#{l(:label_active_call)}##{act.id}:#{act.name}"), respond_path(e.act_id) %>
|
|
|
|
|
</td>
|
|
|
|
|
<% else %>
|
|
|
|
|
<td colspan="2" valign="top">
|
|
|
|
|
<strong>
|
|
|
|
|
<%= link_to(h(e.user), user_path(e.user_id)) %>
|
|
|
|
|
</strong>
|
|
|
|
|
<td colspan="2" valign="top">
|
|
|
|
|
<strong>
|
|
|
|
|
<%= link_to(h(e.user), user_path(e.user_id)) %>
|
|
|
|
|
</strong>
|
|
|
|
|
<span class="font_lighter">
|
|
|
|
|
<%= l(:label_new_activity) %>
|
|
|
|
|
<%= l(:label_new_activity) %>
|
|
|
|
|
</span>
|
|
|
|
|
<%= link_to format_activity_title("#{l(:label_active_call)}##{act.id}:#{act.name}"), respond_path(e.act_id) %>
|
|
|
|
|
</td>
|
|
|
|
|
<% end %>
|
|
|
|
|
<%= link_to format_activity_title("#{l(:label_active_homework)}##{act.id}:#{act.name}"), student_work_index_path(:homework => e.act_id) %>
|
|
|
|
|
</td>
|
|
|
|
|
<% end %>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
@ -177,7 +153,7 @@
|
|
|
|
|
<td>
|
|
|
|
|
<div style="display: inline-block; float: left; margin-top: 0px" width="200" align="right" class="a">
|
|
|
|
|
<span class="font_lighter">
|
|
|
|
|
<%= (l(:label_update_time).to_s << ': ' << format_time(e.act.created_on)).to_s %>
|
|
|
|
|
<%= (l(:label_update_time).to_s << ': ' << format_time(e.act.created_at)).to_s %>
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
<!--<div style="display: inline-block; float: right; margin-top: 0px">-->
|
|
|
|
|