|
|
|
@ -240,14 +240,18 @@
|
|
|
|
|
<li class="homepageNewsPubType fl">
|
|
|
|
|
<%= link_to ma.course_message.user.show_name,
|
|
|
|
|
user_path(ma.course_message.user), :class => "newsBlue homepageNewsPublisher", :target => '_blank' %>
|
|
|
|
|
<span class="<%= ma.viewed == 0 ? "homepageNewsTypeNotRead fl":"homepageNewsType fl" %>"><%= ma.apply_result == 1 ? '同意' : '拒绝'%>引用作业:</span>
|
|
|
|
|
<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">
|
|
|
|
|
<% 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 "}", :target => '_blank' %>
|
|
|
|
|
<% if User.current.member_of_course?(ma.course_message.course) || User.current.admin? || ma.course_message.is_open == 1 %>
|
|
|
|
|
<%= link_to link_str, student_work_index_path(:homework => ma.course_message.id), :title => link_str,:class => "#{ma.viewed == 0 ? "newsBlack" : "newsGrey "}", :target => '_blank' %>
|
|
|
|
|
<% else %>
|
|
|
|
|
<span title='<%=link_str %>' style="color:#4b4b4b; cursor: default;" class="<%= ma.viewed == 0 ? 'newsBlack' : 'newsGrey'%>"><%=link_str %></span>
|
|
|
|
|
<% end %>
|
|
|
|
|
<!--:onmouseover => "message_titile_show($(this),event)",-->
|
|
|
|
|
<!--:onmouseout => "message_titile_hide($(this))" %>-->
|
|
|
|
|
</a>
|
|
|
|
|