37 lines
2.4 KiB
Plaintext
37 lines
2.4 KiB
Plaintext
<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="homepageNewsPubType fl">
|
|
<span class="newsBlue homepageNewsPublisher">系统提示</span>
|
|
<span class="<%= ma.viewed == 0 ? "homepageNewsTypeNotRead fl":"homepageNewsType fl" %>">您有了新的课程成员申请:</span>
|
|
</li>
|
|
<li class="<%=(ma.status == 0 || ma.status.nil?) ? 'homepageHomeworkContent2' : 'homepageHomeworkContent' %> fl">
|
|
<a href="javascript:void(0);" class="newsGrey">
|
|
<%= link_to User.find(ma.course_message_id).name+"申请成为课程\""+"#{Course.find(ma.course_id).name}"+"\"的"+"#{ma.content == '9' ? "教师" : "教辅"}", user_path(User.find(ma.course_message_id), :course_id => ma.course_id),
|
|
:class => "#{ma.viewed==0 ? "newsBlack" : "newsGrey"}" %>
|
|
<!--:onmouseover => "message_titile_show($(this),event)",-->
|
|
<!--:onmouseout => "message_titile_hide($(this))" %>-->
|
|
</a>
|
|
</li>
|
|
<div style="display: none" class="message_title_red system_message_style">
|
|
<p>
|
|
<%= User.current.lastname + User.current.firstname %>老师您好!您有了新的课程成员申请,信息如下:
|
|
</p>
|
|
<p>真实姓名:<%= User.find(ma.course_message_id).realname %></p>
|
|
<p>申请课程:<%= Course.find(ma.course_id).name%></p>
|
|
<div class="fl">课程描述:</div>
|
|
<div class="ml60"><%= Course.find(ma.course_id).description.html_safe %></div>
|
|
<p>申请职位:<%= ma.content == '9' ? "教师" : "教辅"%></p>
|
|
</div>
|
|
<li class="<%=(ma.status == 0 || ma.status.nil?) ? 'homepageHomeworkContentWarn2' : 'homepageHomeworkContentWarn' %> fl">
|
|
<span id="deal_info_<%=ma.id%>">
|
|
<% if ma.status == 0 || ma.status.nil?%>
|
|
<%= link_to '同意',dealwith_apply_request_user_path(User.current,:agree=>'Y',:msg_id=>ma.id),:remote=>'true'%>
|
|
|
|
|
<%= link_to '拒绝',dealwith_apply_request_user_path(User.current,:agree=>'N',:msg_id=>ma.id),:remote=>'true'%>
|
|
<% elsif ma.status == 1%> <!-- 同意 -->
|
|
您已经同意了该申请
|
|
<% elsif ma.status == 2%> <!-- 拒绝 -->
|
|
您已经拒绝了该申请
|
|
<%end %>
|
|
</span>
|
|
</li>
|
|
<li class="homepageNewsTime fl"><%= time_tag(ma.created_at).html_safe %> </li> |