|
|
|
@ -231,17 +231,17 @@
|
|
|
|
|
<% end %>
|
|
|
|
|
<% if ma.course_message_type == "HomeworkCommon" && ma.status == 5 %>
|
|
|
|
|
<ul class="homepageNewsList fl">
|
|
|
|
|
<li class="homepageNewsPortrait fl"><a href="javascript:void(0);"><div class="navHomepageLogo fl"><%= image_tag("/images/trustie_logo1.png", width: "30px", height: "30px", class: "mt3") %></div></a></li>
|
|
|
|
|
<li class="homepageNewsPortrait fl"><a href="javascript:void(0);"><div class="navHomepageLogo fl"><%= link_to image_tag(url_to_avatar(User.find(ma.apply_user_id)), :width => "30", :height => "30"), user_path(User.find(ma.apply_user_id)) %></div></a></li>
|
|
|
|
|
<li class="homepageNewsPubType fl">
|
|
|
|
|
<span class="newsBlue homepageNewsPublisher">系统提示</span>
|
|
|
|
|
<span class="<%= ma.viewed == 0 ? "homepageNewsTypeNotRead fl":"homepageNewsType fl" %>">您有了新的引用作业申请:</span>
|
|
|
|
|
<%= link_to User.find(ma.apply_user_id).show_name,
|
|
|
|
|
user_path(User.find(ma.apply_user_id)), :class => "newsBlue homepageNewsPublisher" %>
|
|
|
|
|
<span class="<%= ma.viewed == 0 ? "homepageNewsTypeNotRead fl":"homepageNewsType fl" %>">申请引用作业:</span>
|
|
|
|
|
</li>
|
|
|
|
|
<li class="homepageHomeworkContent fl"><a href="javascript:void(0);" class="newsGrey">
|
|
|
|
|
<li class="homepageHomeworkContent fl">
|
|
|
|
|
<% content = ma.content.nil? ? '' : ':'+ ma.content.to_s %>
|
|
|
|
|
<span title='<%=User.find(ma.apply_user_id).show_name+"申请引用作业\""+"#{HomeworkCommon.find(ma.course_message_id).name}"+"\"#{content}" %>' class ='#{ma.viewed==0 ? "newsBlack" : "newsGrey"}'><%=User.find(ma.apply_user_id).show_name+"申请引用作业\""+"#{HomeworkCommon.find(ma.course_message_id).name}"+"\"#{content}" %></span>
|
|
|
|
|
<%= link_to User.find(ma.apply_user_id).show_name+"申请引用作业\""+"#{HomeworkCommon.find(ma.course_message_id).name}"+"\"#{content}", student_work_index_path(:homework => ma.course_message.id), :title => User.find(ma.apply_user_id).show_name+"申请引用作业\""+"#{HomeworkCommon.find(ma.course_message_id).name}"+"\"#{content}",:class => "#{ma.viewed == 0 ? "newsBlack" : "newsGrey "}" %>
|
|
|
|
|
<!--:onmouseover => "message_titile_show($(this),event)",-->
|
|
|
|
|
<!--:onmouseout => "message_titile_hide($(this))" %>-->
|
|
|
|
|
</a>
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
<li class="homepageHomeworkContentWarn fl">
|
|
|
|
@ -262,19 +262,18 @@
|
|
|
|
|
<% end %>
|
|
|
|
|
<% if ma.course_message_type == "HomeworkCommon" && ma.status == 6 %>
|
|
|
|
|
<ul class="homepageNewsList fl">
|
|
|
|
|
<li class="homepageNewsPortrait fl"><a href="javascript:void(0);"><div class="navHomepageLogo fl"><%= image_tag("/images/trustie_logo1.png", width: "30px", height: "30px", class: "mt3") %></div></a></li>
|
|
|
|
|
<li class="homepageNewsPortrait fl"><a href="javascript:void(0);"><div class="navHomepageLogo fl"><%= image_tag(url_to_avatar(User.find(ma.apply_user_id)), width: "30px", height: "30px", class: "mt3") %></div></a></li>
|
|
|
|
|
<li class="homepageNewsPubType fl">
|
|
|
|
|
<span class="newsBlue homepageNewsPublisher">系统提示</span>
|
|
|
|
|
<span class="<%= ma.viewed == 0 ? "homepageNewsTypeNotRead fl":"homepageNewsType fl" %>">
|
|
|
|
|
作业申请进度反馈:</span>
|
|
|
|
|
<%= link_to ma.course_message.user.show_name,
|
|
|
|
|
user_path(ma.course_message.user), :class => "newsBlue homepageNewsPublisher" %>
|
|
|
|
|
<span class="<%= ma.viewed == 0 ? "homepageNewsTypeNotRead fl":"homepageNewsType fl" %>"><%= ma.apply_result == 1 ? '同意' : '拒绝'%>引用作业:</span>
|
|
|
|
|
</li>
|
|
|
|
|
<li class="homepageNewsContent fl"><a href="javascript:void(0);" class="newsGrey">
|
|
|
|
|
<span class='#{ma.viewed==0 ? "newsBlack" : "newsGrey"}' title="<%= ma.apply_result == 1 ? '您申请引用作业"'+HomeworkCommon.find(ma.course_message_id).name+'"的申请已通过' : '您申请引用作业"'+HomeworkCommon.find(ma.course_message_id).name+'"的申请被拒绝' %>">
|
|
|
|
|
<%= ma.apply_result == 1 ?
|
|
|
|
|
'您申请引用作业"'+HomeworkCommon.find(ma.course_message_id).name+'"的申请已通过'
|
|
|
|
|
:
|
|
|
|
|
'您申请引用作业"'+HomeworkCommon.find(ma.course_message_id).name+'"的申请被拒绝' %>
|
|
|
|
|
</span>
|
|
|
|
|
<% link_str = ma.apply_result == 1 ?
|
|
|
|
|
'您申请引用作业"'+HomeworkCommon.find(ma.course_message_id).name+'"的申请已通过'
|
|
|
|
|
:
|
|
|
|
|
'您申请引用作业"'+HomeworkCommon.find(ma.course_message_id).name+'"的申请被拒绝' %>
|
|
|
|
|
<%= link_to link_str, student_work_index_path(:homework => ma.course_message.id), :title => link_str,:class => "#{ma.viewed == 0 ? "newsBlack" : "newsGrey "}" %>
|
|
|
|
|
<!--:onmouseover => "message_titile_show($(this),event)",-->
|
|
|
|
|
<!--:onmouseout => "message_titile_hide($(this))" %>-->
|
|
|
|
|
</a>
|
|
|
|
|