消息去掉tip
This commit is contained in:
parent
44549e091d
commit
e20fe85ddf
|
@ -21,13 +21,6 @@
|
||||||
<%= link_to ma.subject.html_safe, ma.url, :class =>"#{ma.viewed? ? "newsGrey" : "newsBlack"}", :onmouseover =>"message_titile_show($(this),event)", :onmouseout => "message_titile_hide($(this))" %>
|
<%= link_to ma.subject.html_safe, ma.url, :class =>"#{ma.viewed? ? "newsGrey" : "newsBlack"}", :onmouseover =>"message_titile_show($(this),event)", :onmouseout => "message_titile_hide($(this))" %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</li>
|
</li>
|
||||||
<div style="display: none" class="message_title_red system_message_style">
|
|
||||||
<p><strong>标题:</strong><%= ma.subject %></p>
|
|
||||||
<% unless ma.description.nil? %>
|
|
||||||
<div class="fl"><strong>内容:</strong></div>
|
|
||||||
<div class="ml36"><%= ma.description.html_safe %></div>
|
|
||||||
<% end %>
|
|
||||||
</div>
|
|
||||||
<li class="homepageNewsTime fl"><%= time_tag(ma.created_at).html_safe %> </li>
|
<li class="homepageNewsTime fl"><%= time_tag(ma.created_at).html_safe %> </li>
|
||||||
</ul>
|
</ul>
|
||||||
<% end %>
|
<% end %>
|
|
@ -9,13 +9,6 @@
|
||||||
<!--:onmouseover =>"message_titile_show($(this),event)",-->
|
<!--:onmouseover =>"message_titile_show($(this),event)",-->
|
||||||
<!--:onmouseout => "message_titile_hide($(this))" %>-->
|
<!--:onmouseout => "message_titile_hide($(this))" %>-->
|
||||||
</li>
|
</li>
|
||||||
<div style="display: none" class="message_title_red system_message_style">
|
|
||||||
<p><strong>标题:</strong><%= ma.course_message.title %></p>
|
|
||||||
<% unless ma.course_message.description.nil? %>
|
|
||||||
<div class="fl"><strong>内容:</strong></div>
|
|
||||||
<div class="ml36"><%= ma.course_message.description.html_safe %></div>
|
|
||||||
<% end %>
|
|
||||||
</div>
|
|
||||||
<li class="homepageNewsTime fl"><%= time_tag(ma.created_at).html_safe %> </li>
|
<li class="homepageNewsTime fl"><%= time_tag(ma.created_at).html_safe %> </li>
|
||||||
</ul>
|
</ul>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
@ -29,13 +22,6 @@
|
||||||
<!--:onmouseover =>"message_titile_show($(this),event)",-->
|
<!--:onmouseover =>"message_titile_show($(this),event)",-->
|
||||||
<!--:onmouseout => "message_titile_hide($(this))" %>-->
|
<!--:onmouseout => "message_titile_hide($(this))" %>-->
|
||||||
</li>
|
</li>
|
||||||
<div style="display: none" class="message_title_red system_message_style">
|
|
||||||
<p><strong>评论对象:</strong><%= ma.course_message.commented.title %></p>
|
|
||||||
<% unless ma.course_message.comments.nil? %>
|
|
||||||
<div class="fl"><strong>评论内容:</strong></div>
|
|
||||||
<div class="ml60"><%= ma.course_message.comments.html_safe %></div>
|
|
||||||
<% end %>
|
|
||||||
</div>
|
|
||||||
<li class="homepageNewsTime fl"><%= time_tag(ma.created_at).html_safe %> </li>
|
<li class="homepageNewsTime fl"><%= time_tag(ma.created_at).html_safe %> </li>
|
||||||
</ul>
|
</ul>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
@ -58,43 +44,6 @@
|
||||||
<!--:onmouseout => "message_titile_hide($(this))" %>-->
|
<!--:onmouseout => "message_titile_hide($(this))" %>-->
|
||||||
<% end %>
|
<% end %>
|
||||||
</a></li>
|
</a></li>
|
||||||
<div style="display: none" class="message_title_red system_message_style">
|
|
||||||
<% if User.current.allowed_to?(:as_teacher,ma.course_message.course) %>
|
|
||||||
<p>
|
|
||||||
<%= User.current.lastname + User.current.firstname %>老师您好!
|
|
||||||
<%= User.current.eql?(ma.course_message.user)?"您":(ma.course_message.user.show_name + "老师")%>刚刚发布了一个作业:
|
|
||||||
</p>
|
|
||||||
<ul class="ul_normal_color">
|
|
||||||
<li>课程名称:<%= ma.course_message.course.name %>
|
|
||||||
(<%= ma.course_message.course.time.to_s + '年'+ ma.course_message.course.term %>)</li>
|
|
||||||
<li>作业标题:<span style="color:Red"><%= ma.course_message.name %></span></li>
|
|
||||||
<li>发布时间:<span style="color:Red;"><%= DateTime.parse(ma.course_message.created_at.to_s).strftime('%Y-%m-%d %H:%M').to_s %></span></li>
|
|
||||||
<li>提交截止:<span style="color:Red;"><%= ma.course_message.end_time %> 23:59</span></li>
|
|
||||||
<li>匿评开始:<span style="color:Red;"><%= ma.course_message.homework_detail_manual.evaluation_start %> 23:59</span></li>
|
|
||||||
<li>匿评关闭:<span style="color:Red;"><%= ma.course_message.homework_detail_manual.evaluation_end %> 23:59</span></li>
|
|
||||||
<li>迟交扣分:<span style="color:Red;"><%= ma.course_message.late_penalty %>分</span></li>
|
|
||||||
<li>缺评扣分:<span style="color:Red;"><%= ma.course_message.homework_detail_manual.absence_penalty %>分</span></li>
|
|
||||||
</ul>
|
|
||||||
<p>
|
|
||||||
您可以修改作业内容、评分规则、匿评过程等,谢谢!
|
|
||||||
</p>
|
|
||||||
<% else %>
|
|
||||||
<p><%= User.current.lastname + User.current.firstname %>同学您好!<%= ma.course_message.user.lastname + ma.course_message.user.firstname %>老师刚刚发布了一个作业:</p>
|
|
||||||
<ul class="ul_normal_color">
|
|
||||||
<li>课程名称:<%= ma.course_message.course.name %>
|
|
||||||
(<%= ma.course_message.course.time.to_s + '年'+ ma.course_message.course.term %>)</li>
|
|
||||||
<li>作业标题:<span style="color:Red;"><%= ma.course_message.name %></span></li>
|
|
||||||
<li>提交截止:<span style="color:Red;"><%= ma.course_message.end_time %> 23:59</span></li>
|
|
||||||
<li>匿评开始:<span style="color:Red;"><%= ma.course_message.homework_detail_manual.evaluation_start %> 23:59</span></li>
|
|
||||||
<li>匿评关闭:<span style="color:Red;"><%= ma.course_message.homework_detail_manual.evaluation_end %> 23:59</span></li>
|
|
||||||
<li>迟交扣分:<span style="color:Red;"><%= ma.course_message.late_penalty %>分</span></li>
|
|
||||||
<li>缺评扣分:<span style="color:Red;"><%= ma.course_message.homework_detail_manual.absence_penalty %>分</span></li>
|
|
||||||
</ul>
|
|
||||||
<p>
|
|
||||||
请抓紧时间提交您的作品,谢谢!
|
|
||||||
</p>
|
|
||||||
<% end %>
|
|
||||||
</div>
|
|
||||||
<li class="homepageNewsTime fl"><%= time_tag(ma.created_at).html_safe %> </li>
|
<li class="homepageNewsTime fl"><%= time_tag(ma.created_at).html_safe %> </li>
|
||||||
</ul>
|
</ul>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
@ -110,24 +59,6 @@
|
||||||
<!--:onmouseover => "message_titile_show($(this),event)",-->
|
<!--:onmouseover => "message_titile_show($(this),event)",-->
|
||||||
<!--:onmouseout => "message_titile_hide($(this))" %>-->
|
<!--:onmouseout => "message_titile_hide($(this))" %>-->
|
||||||
</li>
|
</li>
|
||||||
<div style="display: none" class="message_title_red system_message_style">
|
|
||||||
<% if !User.current.allowed_to?(:as_teacher,ma.course_message.course) %>
|
|
||||||
<p>
|
|
||||||
<%= User.current.lastname + User.current.firstname %>同学您好!
|
|
||||||
<%= ma.course_message.user.lastname + ma.course_message.user.firstname %>老师发布的作业截止日期快到了:
|
|
||||||
</p>
|
|
||||||
<ul class="ul_normal_color">
|
|
||||||
<li>课程名称:<%= ma.course_message.course.name %>(<%= ma.course_message.course.time.to_s + '年'+ ma.course_message.course.term %>)</li>
|
|
||||||
<li>作业标题:<span style="color:Red;"><%= ma.course_message.name %></span></li>
|
|
||||||
<li>提交截止:<span style="color:Red;"><%= ma.course_message.end_time %> 23:59</span></li>
|
|
||||||
<li>匿评开始:<span style="color:Red;"><%= ma.course_message.homework_detail_manual.evaluation_start %> 23:59</span></li>
|
|
||||||
<li>匿评关闭:<span style="color:Red;"><%= ma.course_message.homework_detail_manual.evaluation_end %> 23:59</span></li>
|
|
||||||
<li>迟交扣分:<span style="color:Red;"><%= ma.course_message.late_penalty %>分</span></li>
|
|
||||||
<li>缺评扣分:<span style="color:Red;"><%= ma.course_message.homework_detail_manual.absence_penalty %>分</span></li>
|
|
||||||
<p>请抓紧时间提交您的作品,谢谢!</p>
|
|
||||||
</ul>
|
|
||||||
<% end %>
|
|
||||||
</div>
|
|
||||||
<li class="homepageHomeworkContentWarn fl"> 截止时间快到啦</li>
|
<li class="homepageHomeworkContentWarn fl"> 截止时间快到啦</li>
|
||||||
<li class="homepageNewsTime fl"><%= time_tag(ma.created_at).html_safe %> </li>
|
<li class="homepageNewsTime fl"><%= time_tag(ma.created_at).html_safe %> </li>
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -148,22 +79,6 @@
|
||||||
:onmouseover => "message_titile_show($(this),event)",
|
:onmouseover => "message_titile_show($(this),event)",
|
||||||
:onmouseout => "message_titile_hide($(this))" %>
|
:onmouseout => "message_titile_hide($(this))" %>
|
||||||
</li>
|
</li>
|
||||||
<div style="display: none" class="message_title_red system_message_style">
|
|
||||||
<p>
|
|
||||||
<%= User.current.lastname + User.current.firstname %><%= User.current.allowed_to?(:as_teacher,ma.course_message.course) ? '老师' : '同学' %>您好!
|
|
||||||
<%= User.current.eql?(ma.course_message.user)?"您":(ma.course_message.user.lastname + ma.course_message.user.firstname+"老师") %>开启了匿评,作业详情如下:
|
|
||||||
</p>
|
|
||||||
<ul class="ul_normal_color">
|
|
||||||
<li>课程名称:<%= ma.course_message.course.name %>(<%= ma.course_message.course.time.to_s + '年'+ ma.course_message.course.term %>)</li>
|
|
||||||
<li>作业标题:<span style="color:Red;"><%= ma.course_message.name %></span></li>
|
|
||||||
<li>缺评扣分:<span style="color:Red;"><%= ma.course_message.homework_detail_manual.absence_penalty %>分</span></li>
|
|
||||||
<li>匿评截止:<span style="color:Red;"><%= ma.course_message.homework_detail_manual.evaluation_end %> 23:59</span></li>
|
|
||||||
</ul>
|
|
||||||
<% unless User.current.allowed_to?(:as_teacher, ma.course_message.course)%>
|
|
||||||
<p>请您尽早完成匿评,如果您在截止日期前未完成匿评,您的最终成绩将被扣除<%= ma.course_message.homework_detail_manual.absence_penalty %>分乘以缺评份数。</p>
|
|
||||||
<p>例如,您缺评了两份作品,则您的最终成绩将被扣除 <%= ma.course_message.homework_detail_manual.absence_penalty %> * 2 = <%= ma.course_message.homework_detail_manual.absence_penalty * 2 %>分</p>
|
|
||||||
<% end%>
|
|
||||||
</div>
|
|
||||||
<li class="homepageNewsTime fl"><%= time_tag(ma.created_at).html_safe %> </li>
|
<li class="homepageNewsTime fl"><%= time_tag(ma.created_at).html_safe %> </li>
|
||||||
</ul>
|
</ul>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
@ -179,22 +94,6 @@
|
||||||
<!--:onmouseover =>"message_titile_show($(this),event)",-->
|
<!--:onmouseover =>"message_titile_show($(this),event)",-->
|
||||||
<!--:onmouseout => "message_titile_hide($(this))"%>-->
|
<!--:onmouseout => "message_titile_hide($(this))"%>-->
|
||||||
</li>
|
</li>
|
||||||
<div style="display: none" class="message_title_red system_message_style">
|
|
||||||
<p>
|
|
||||||
<%= User.current.lastname + User.current.firstname %><%= User.current.allowed_to?(:as_teacher,ma.course_message.course) ? '老师':'同学'%>您好!
|
|
||||||
该作业已经关闭了匿评。作业信息如下:
|
|
||||||
</p>
|
|
||||||
<ul class="ul_grey">
|
|
||||||
<li>课程名称:<%= ma.course_message.course.name %>(<%= ma.course_message.course.time.to_s + '年'+ ma.course_message.course.term %>)</li>
|
|
||||||
<li>作业标题:<%= ma.course_message.name %></li>
|
|
||||||
</ul>
|
|
||||||
<p></p>
|
|
||||||
<p class="c_red">注:缺省情况下,系统将在作业提交截止日期后14天自动关闭匿评。</p>
|
|
||||||
<p></p>
|
|
||||||
<% if User.current.allowed_to?(:as_teacher,ma.course_message.course)%>
|
|
||||||
<p>祝您的教学活动高效、顺利、愉快!</p>
|
|
||||||
<% end %>
|
|
||||||
</div>
|
|
||||||
<li class="homepageNewsTime fl"><%= time_tag(ma.created_at).html_safe %> </li>
|
<li class="homepageNewsTime fl"><%= time_tag(ma.created_at).html_safe %> </li>
|
||||||
</ul>
|
</ul>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
@ -214,18 +113,6 @@
|
||||||
<!--:onmouseover => "message_titile_show($(this),event)",-->
|
<!--:onmouseover => "message_titile_show($(this),event)",-->
|
||||||
<!--:onmouseout => "message_titile_hide($(this))" %>-->
|
<!--:onmouseout => "message_titile_hide($(this))" %>-->
|
||||||
</li>
|
</li>
|
||||||
<div style="display: none" class="message_title_red system_message_style">
|
|
||||||
<p>
|
|
||||||
<%= User.current.lastname + User.current.firstname %><%= User.current.allowed_to?(:as_teacher, ma.course_message.course) ? '老师':'同学'%>您好!
|
|
||||||
<%= User.current.eql?(ma.course_message.user) ?"您":(ma.course_message.user.lastname + ma.course_message.user.firstname + "老师") %>启动作业匿评失败啦
|
|
||||||
|
|
||||||
</p>
|
|
||||||
<ul class="ul_normal_color">
|
|
||||||
<li>课程名称:<%= ma.course_message.course.name %>(<%= ma.course_message.course.time.to_s + '年' + ma.course_message.course.term %>)</li>
|
|
||||||
<li>作业标题:<span style="color:Red;"><%= ma.course_message.name %></span></li>
|
|
||||||
<li>提交截止:<span style="color:Red;"><%= ma.course_message.end_time%> 23:59</span></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
<li class="homepageNewsTime fl"><%= time_tag(ma.created_at).html_safe %> </li>
|
<li class="homepageNewsTime fl"><%= time_tag(ma.created_at).html_safe %> </li>
|
||||||
</ul>
|
</ul>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
@ -240,9 +127,6 @@
|
||||||
<!--:onmouseover =>"message_titile_show($(this),event)",-->
|
<!--:onmouseover =>"message_titile_show($(this),event)",-->
|
||||||
<!--:onmouseout => "message_titile_hide($(this))" %>-->
|
<!--:onmouseout => "message_titile_hide($(this))" %>-->
|
||||||
</a></li>
|
</a></li>
|
||||||
<div style="display: none" class="message_title_red system_message_style">
|
|
||||||
<%= ma.course_message.polls_name %>
|
|
||||||
</div>
|
|
||||||
<li class="homepageNewsTime fl"><%= time_tag(ma.created_at).html_safe %> </li>
|
<li class="homepageNewsTime fl"><%= time_tag(ma.created_at).html_safe %> </li>
|
||||||
</ul>
|
</ul>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
@ -252,37 +136,13 @@
|
||||||
<li class="homepageNewsPubType fl">
|
<li class="homepageNewsPubType fl">
|
||||||
<%=link_to ma.course_message.author, user_path(ma.course_message.author), :class => "newsBlue homepageNewsPublisher" %><span class="<%= ma.viewed == 0 ? "homepageNewsTypeNotRead fl":"homepageNewsType fl" %>">
|
<%=link_to ma.course_message.author, user_path(ma.course_message.author), :class => "newsBlue homepageNewsPublisher" %><span class="<%= ma.viewed == 0 ? "homepageNewsTypeNotRead fl":"homepageNewsType fl" %>">
|
||||||
<%= ma.course_message.parent_id.nil? ? "发布了课程帖子:" : "评论了课程帖子:" %></span></li>
|
<%= ma.course_message.parent_id.nil? ? "发布了课程帖子:" : "评论了课程帖子:" %></span></li>
|
||||||
<% if ma.course_message.parent_id.nil? %>
|
|
||||||
<li class="homepageNewsContent fl"><a href="javascript:void(0);" class="newsGrey">
|
<li class="homepageNewsContent fl"><a href="javascript:void(0);" class="newsGrey">
|
||||||
<%= link_to ma.course_message.subject, course_boards_path(ma.course_message.course, :parent_id => ma.course_message.parent_id ? ma.course_message.parent_id : ma.course_message.id, :topic_id => ma.course_message.id),
|
<%= link_to ma.course_message.subject, course_boards_path(ma.course_message.course, :parent_id => ma.course_message.parent_id ? ma.course_message.parent_id : ma.course_message.id, :topic_id => ma.course_message.id),
|
||||||
:class => "#{ma.viewed==0 ? "newsBlack" : "newsGrey"}" %>
|
:class => "#{ma.viewed==0 ? "newsBlack" : "newsGrey"}" %>
|
||||||
<!--:onmouseover =>"message_titile_show($(this),event)",-->
|
<!--:onmouseover =>"message_titile_show($(this),event)",-->
|
||||||
<!--:onmouseout => "message_titile_hide($(this))" %>-->
|
<!--:onmouseout => "message_titile_hide($(this))" %>-->
|
||||||
</a></li>
|
</a></li>
|
||||||
<div style="display: none" class="message_title_red system_message_style" >
|
|
||||||
<p><strong>主题:</strong><%= ma.course_message.subject %></p>
|
|
||||||
<% unless ma.course_message.content.nil? %>
|
|
||||||
<div class="fl"><strong>内容:</strong></div>
|
|
||||||
<div class="ml36"><%= ma.course_message.content.html_safe %></div>
|
|
||||||
<% end %>
|
|
||||||
</div>
|
|
||||||
<% else %>
|
|
||||||
<li class="homepageNewsContent fl"><a href="javascript:void(0);" class="newsGrey">
|
|
||||||
<%= link_to ma.course_message.content.html_safe, course_boards_path(ma.course_message.course, :parent_id => ma.course_message.parent_id ? ma.course_message.parent_id : ma.course_message.id, :topic_id => ma.course_message.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><strong>主题:</strong><%= ma.course_message.subject %></p>
|
|
||||||
<% unless ma.course_message.content.nil? %>
|
|
||||||
<div class="fl"><strong>内容:</strong></div>
|
|
||||||
<div class="ml36"><%= ma.course_message.content.html_safe %></div>
|
|
||||||
<% end %>
|
|
||||||
</div>
|
|
||||||
<% end %>
|
|
||||||
<li class="homepageNewsTime fl"><%= time_tag(ma.created_at).html_safe %> </li>
|
<li class="homepageNewsTime fl"><%= time_tag(ma.created_at).html_safe %> </li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% if ma.course_message_type == "StudentWorksScore" %>
|
<% if ma.course_message_type == "StudentWorksScore" %>
|
||||||
|
@ -312,25 +172,6 @@
|
||||||
<!--:onmouseover =>"message_titile_show($(this),event)",-->
|
<!--:onmouseover =>"message_titile_show($(this),event)",-->
|
||||||
<!--:onmouseout => "message_titile_hide($(this))" %>-->
|
<!--:onmouseout => "message_titile_hide($(this))" %>-->
|
||||||
</a></li>
|
</a></li>
|
||||||
<div style="display: none" class="message_title_red system_message_style" >
|
|
||||||
<p>
|
|
||||||
<%= User.current.show_name %>同学您好!
|
|
||||||
<%= ma.course_message.reviewer_role == 3? "匿名用户" : (ma.course_message.user.show_name + "老师")%><%= ma.status == 0? "评阅了您的作品":"重新评阅了您的作品"%>。详情如下:
|
|
||||||
</p>
|
|
||||||
<ul class="ul_normal_color">
|
|
||||||
<li>课程名称:<%= ma.course.name %>(<%= ma.course.time.to_s + '年'+ ma.course.term %>)</li>
|
|
||||||
<li>作业标题:<span style="color:Red;"><%=ma.course_message.student_work.homework_common.name %></span></li>
|
|
||||||
<% content = ma.content.gsub("作业评分:","").split(" 评语:")%>
|
|
||||||
<li>作品评分:<span style="color:Red;"><%= content[0] %>分</span></li>
|
|
||||||
<% if content.size > 1 %>
|
|
||||||
<div class="fl" style="width:74px;"><li>作品评语:</li></div>
|
|
||||||
<div style="margin-left:74px"><span style="color:Red;"><%= content[1] %></span></div>
|
|
||||||
<% end %>
|
|
||||||
</ul>
|
|
||||||
<p>
|
|
||||||
本次作业将在<%= ma.course_message.student_work.homework_common.homework_detail_manual.evaluation_end %> 23:59结束匿评,到时您将可以看到所有其他同学的作品啦!大家可以进一步互相学习。 期待您取得更大的进步!
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
<% end %>
|
<% end %>
|
||||||
<li class="homepageNewsTime fl"><%= time_tag(ma.created_at).html_safe %> </li>
|
<li class="homepageNewsTime fl"><%= time_tag(ma.created_at).html_safe %> </li>
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -352,9 +193,6 @@
|
||||||
<!--:onmouseout => "message_titile_hide($(this))" %>-->
|
<!--:onmouseout => "message_titile_hide($(this))" %>-->
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<div style="display: none" class="message_title_red system_message_style">
|
|
||||||
<%= ma.course_message.notes.html_safe %>
|
|
||||||
</div>
|
|
||||||
<li class="homepageNewsTime fl"><%= time_tag(ma.created_at).html_safe %> </li>
|
<li class="homepageNewsTime fl"><%= time_tag(ma.created_at).html_safe %> </li>
|
||||||
</ul>
|
</ul>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
@ -375,18 +213,6 @@
|
||||||
<!--:onmouseout => "message_titile_hide($(this))" %>-->
|
<!--:onmouseout => "message_titile_hide($(this))" %>-->
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<div style="display: none" class="message_title_red system_message_style">
|
|
||||||
<p>
|
|
||||||
<%= User.current.show_name %>老师您好!
|
|
||||||
<%= ma.course_message.user.show_name%><%= ma.course_message.user.allowed_to?(:as_teacher, ma.course)?"老师":"同学"%>回复了您的作品评论。详情如下:
|
|
||||||
</p>
|
|
||||||
<ul class="ul_normal_color">
|
|
||||||
<li>回复内容:<span style="color:red;"><%= ma.course_message.notes %></span></li>
|
|
||||||
<li>您的评论:<span style="color:red;"><%= ma.course_message.jour.comment %></span></li>
|
|
||||||
<li>课程名称:<%= ma.course.name %>(<%= ma.course.time.to_s + '年'+ ma.course.term %>)</li>
|
|
||||||
<li>作业标题:<span style="color:Red;"><%=ma.course_message.jour.student_work.homework_common.name %></span></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
<li class="homepageNewsTime fl"><%= time_tag(ma.created_at).html_safe %> </li>
|
<li class="homepageNewsTime fl"><%= time_tag(ma.created_at).html_safe %> </li>
|
||||||
</ul>
|
</ul>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
@ -406,20 +232,6 @@
|
||||||
<!--:onmouseout => "message_titile_hide($(this))" %>-->
|
<!--:onmouseout => "message_titile_hide($(this))" %>-->
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<div style="display: none" class="message_title_red system_message_style">
|
|
||||||
<p>
|
|
||||||
<%= User.current.lastname + User.current.firstname %>
|
|
||||||
<%= User.current.allowed_to?(:as_teacher,ma.course_message.homework_common.course) ? '老师':'同学'%>您好!由于迟交作业,您及您的作品都不能参与以下作业的匿评。作业详情如下:
|
|
||||||
</p>
|
|
||||||
<ul class="ul_grey">
|
|
||||||
<li>课程名称:<%= ma.course_message.homework_common.course.name %>(<%= ma.course_message.homework_common.course.time.to_s + '年' + ma.course_message.homework_common.course.term %>)</li>
|
|
||||||
<li>作业标题:<%= ma.course_message.homework_common.name %></li>
|
|
||||||
<li>提交截止:<%= ma.course_message.homework_common.end_time %> 23:59</li>
|
|
||||||
<li>提交时间:<%= format_time(ma.course_message.created_at) %></li>
|
|
||||||
<li>迟交扣分:<%= ma.course_message.homework_common.late_penalty %>分</li>
|
|
||||||
</ul>
|
|
||||||
<p>如需获得最终成绩,请您联系主讲老师对您的作品进行单独评分!</p>
|
|
||||||
</div>
|
|
||||||
<li class="homepageHomeworkContentWarn fl"> 您成功提交了作品(但被标记为迟交啦)</li>
|
<li class="homepageHomeworkContentWarn fl"> 您成功提交了作品(但被标记为迟交啦)</li>
|
||||||
<li class="homepageNewsTime fl"><%= time_tag(ma.created_at).html_safe %> </li>
|
<li class="homepageNewsTime fl"><%= time_tag(ma.created_at).html_safe %> </li>
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -440,23 +252,6 @@
|
||||||
<!--:onmouseover => "message_titile_show($(this),event)",-->
|
<!--:onmouseover => "message_titile_show($(this),event)",-->
|
||||||
<!--:onmouseout => "message_titile_hide($(this))" %>-->
|
<!--:onmouseout => "message_titile_hide($(this))" %>-->
|
||||||
</a></li>
|
</a></li>
|
||||||
<div style="display: none" class="message_title_red system_message_style">
|
|
||||||
<p>
|
|
||||||
<%= User.current.lastname + User.current.firstname %>老师您好!您成功创建了一个课程,详情如下:
|
|
||||||
</p>
|
|
||||||
<p>课程名称:<%= ma.course_message.name %></p>
|
|
||||||
<p>开课学期:<%= ma.course_message.time.to_s + '年' + ma.course_message.term %></p>
|
|
||||||
<p>课程ID:<span style="color:red;"><%= ma.course_message.id %></span></p>
|
|
||||||
<p>课程密码:<span style="color:red;"><%= ma.course_message.password %></span></p>
|
|
||||||
<p>学时总数:<%= ma.course_message.class_period %></p>
|
|
||||||
<p>创建时间:<%= format_time(ma.course_message.created_at) %></p>
|
|
||||||
<p>您可以点击左上角的“配置”按钮,修改课程基本信息,添加及删除课程成员。您也可以把课程ID及密码告诉学生和其他成员,让他们输入ID及密码加入课程。</p>
|
|
||||||
<% if ma.course_message.is_public %>
|
|
||||||
<p>您的课程是公开的,所有人都能访问您的课程。若不想设置为公开,您可以在配置中设置。</p>
|
|
||||||
<% else %>
|
|
||||||
<p>您的课程是私有的,非课程成员不能访问您的课程。如果想设置为公开,您可以在配置中设置。</p>
|
|
||||||
<% end %>
|
|
||||||
</div>
|
|
||||||
<li class="homepageNewsTime fl"><%= time_tag(ma.created_at).html_safe %> </li>
|
<li class="homepageNewsTime fl"><%= time_tag(ma.created_at).html_safe %> </li>
|
||||||
</ul>
|
</ul>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
@ -474,16 +269,6 @@
|
||||||
<!--:onmouseout => "message_titile_hide($(this))" %>-->
|
<!--:onmouseout => "message_titile_hide($(this))" %>-->
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</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="homepageHomeworkContentWarn fl">
|
<li class="homepageHomeworkContentWarn fl">
|
||||||
<span id="deal_info_<%=ma.id%>">
|
<span id="deal_info_<%=ma.id%>">
|
||||||
<% if ma.status == 0 || ma.status.nil?%>
|
<% if ma.status == 0 || ma.status.nil?%>
|
||||||
|
@ -519,15 +304,6 @@
|
||||||
</a>
|
</a>
|
||||||
</span>
|
</span>
|
||||||
</li>
|
</li>
|
||||||
<div style="display: none" class="message_title_red system_message_style">
|
|
||||||
<p>
|
|
||||||
<%= User.current.lastname + User.current.firstname %>老师您好!您已成功加入课程<%= Course.find(ma.course_id).name%>。
|
|
||||||
</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="homepageNewsTime fl"><%= time_tag(ma.created_at).html_safe %> </li>
|
<li class="homepageNewsTime fl"><%= time_tag(ma.created_at).html_safe %> </li>
|
||||||
</ul>
|
</ul>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
@ -548,20 +324,6 @@
|
||||||
<!--:onmouseout => "message_titile_hide($(this))" %>-->
|
<!--:onmouseout => "message_titile_hide($(this))" %>-->
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<div style="display: none" class="message_title_red system_message_style">
|
|
||||||
<% if ma.course.is_public? || User.current.member_of_course?(ma.course) || User.current.admin? %>
|
|
||||||
<% teacher = User.find(ma.course_message_id) %>
|
|
||||||
<p><%= teacher.show_name %>(<%= teacher %>)老师把您加入了课程,详情如下:</p>
|
|
||||||
<p>课程名称:<%= ma.course.name %></p>
|
|
||||||
<p>开课学期:<%= ma.course.time.to_s + '年'+ ma.course.term %></p>
|
|
||||||
<p>课程ID:<%= ma.course.id %></p>
|
|
||||||
<p>课时总数:<%= ma.course.class_period %></p>
|
|
||||||
<% else %>
|
|
||||||
<p>
|
|
||||||
您已经被移出该私有课程,非课程成员没有权限访问私有课程
|
|
||||||
</p>
|
|
||||||
<% end %>
|
|
||||||
</div>
|
|
||||||
<li class="homepageNewsTime fl"><%= time_tag(ma.created_at).html_safe %> </li>
|
<li class="homepageNewsTime fl"><%= time_tag(ma.created_at).html_safe %> </li>
|
||||||
</ul>
|
</ul>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
@ -582,20 +344,6 @@
|
||||||
<!--:onmouseout => "message_titile_hide($(this))" %>-->
|
<!--:onmouseout => "message_titile_hide($(this))" %>-->
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<div style="display: none" class="message_title_red system_message_style">
|
|
||||||
<% if ma.course.is_public? || User.current.member_of_course?(ma.course) || User.current.admin? %>
|
|
||||||
<p>您增加了新的课程成员,详情如下:</p>
|
|
||||||
<p>成员:<%= User.find(ma.course_message_id).login+"("+(User.find(ma.course_message_id).realname ? User.find(ma.course_message_id).realname : User.find(ma.course_message_id).login) +")" %></p>
|
|
||||||
<p>课程名称:<%= ma.course.name %></p>
|
|
||||||
<p>开课学期:<%= ma.course.time.to_s + '年'+ ma.course.term %></p>
|
|
||||||
<p>课程ID:<%= ma.course.id %></p>
|
|
||||||
<p>课时总数:<%= ma.course.class_period %></p>
|
|
||||||
<% else %>
|
|
||||||
<p>
|
|
||||||
您已经被移出该私有课程,非课程成员没有权限访问私有课程
|
|
||||||
</p>
|
|
||||||
<% end %>
|
|
||||||
</div>
|
|
||||||
<li class="homepageNewsTime fl"><%= time_tag(ma.created_at).html_safe %> </li>
|
<li class="homepageNewsTime fl"><%= time_tag(ma.created_at).html_safe %> </li>
|
||||||
</ul>
|
</ul>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
@ -616,21 +364,6 @@
|
||||||
<!--:onmouseout => "message_titile_hide($(this))" %>-->
|
<!--:onmouseout => "message_titile_hide($(this))" %>-->
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<div style="display: none" class="message_title_red system_message_style">
|
|
||||||
<% if ma.course.is_public? || User.current.member_of?(ma.course) || User.current.admin? %>
|
|
||||||
<p>您已被<%= User.find(ma.course_message_id).show_name %>老师移出了课程,详情如下:</p>
|
|
||||||
<p>课程名称:<%= ma.course.name %></p>
|
|
||||||
<p>开课学期:<%= ma.course.time.to_s + '年'+ ma.course.term %></p>
|
|
||||||
<% if !ma.content.nil? %>
|
|
||||||
<p>担任角色:<%= ma.content %></p>
|
|
||||||
<% end %>
|
|
||||||
<p>学时总数:<%= ma.course.class_period %></p>
|
|
||||||
<% else %>
|
|
||||||
<p>
|
|
||||||
您已经被移出该私有课程,非课程成员没有权限访问私有课程
|
|
||||||
</p>
|
|
||||||
<% end %>
|
|
||||||
</div>
|
|
||||||
<li class="homepageNewsTime fl"><%= time_tag(ma.created_at).html_safe %> </li>
|
<li class="homepageNewsTime fl"><%= time_tag(ma.created_at).html_safe %> </li>
|
||||||
</ul>
|
</ul>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
@ -647,27 +380,6 @@
|
||||||
<!--:onmouseover =>"message_titile_show($(this),event)",-->
|
<!--:onmouseover =>"message_titile_show($(this),event)",-->
|
||||||
<!--:onmouseout => "message_titile_hide($(this))"%>-->
|
<!--:onmouseout => "message_titile_hide($(this))"%>-->
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<div style="display: none" class="message_title_red system_message_style">
|
|
||||||
<p>
|
|
||||||
<%= User.current.lastname + User.current.firstname %><%= User.current.allowed_to?(:as_teacher,ma.course_message.course) ? '老师':'同学'%>您好!
|
|
||||||
<%= User.current.eql?(ma.course_message.user)?"您":(ma.course_message.user.lastname + ma.course_message.user.firstname+"老师") %>发布了课程测验 ,测验详情如下:
|
|
||||||
</p>
|
|
||||||
<ul class="ul_normal_color">
|
|
||||||
<li>课程名称:<%= ma.course_message.course.name %>(<%= ma.course_message.course.time.to_s + '年'+ ma.course_message.course.term %>)</li>
|
|
||||||
<li>测验标题:<%= ma.course_message.exercise_name %></li>
|
|
||||||
<!--<li>测验描述:<%#= ma.course_message.exercise_description %></li>-->
|
|
||||||
<!--<li>测验状态:<%#= ma.course_message.exercise_status == 1 ? '未发布':'已发布'%></li>-->
|
|
||||||
<!--<%# if ma.course_message.publish_time %>-->
|
|
||||||
<!--<li>发布时间:<%#= ma.course_message.publish_time.to_s.gsub("+0800","").to_datetime.strftime("%Y-%m-%d %H:%M:%S") %></li>-->
|
|
||||||
<!--<%# end %>-->
|
|
||||||
<li>截止时间:<%= ma.course_message.end_time.to_s.gsub("+0800","").to_datetime.strftime("%Y-%m-%d %H:%M:%S") %></li>
|
|
||||||
<li>答题时长:<%= ma.course_message.time == -1 ? '不限时' : ma.course_message.time.to_s + '分钟' %></li>
|
|
||||||
<% if !User.current.allowed_to?(:as_teacher,ma.course_message.course)%>
|
|
||||||
<p>请记得在截止时间前完成测验噢,辛苦啦!</p>
|
|
||||||
<% end %>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
<li class="homepageNewsTime fl"><%= time_tag(ma.created_at).html_safe %> </li>
|
<li class="homepageNewsTime fl"><%= time_tag(ma.created_at).html_safe %> </li>
|
||||||
</ul>
|
</ul>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
@ -683,23 +395,7 @@
|
||||||
<%= link_to "测验题目:" + ma.course_message.exercise_name, exercise_path(:id => ma.course_message.id), :class =>"#{ma.viewed == 0 ? "newsBlack" : "newsGrey"}" %>
|
<%= link_to "测验题目:" + ma.course_message.exercise_name, exercise_path(:id => ma.course_message.id), :class =>"#{ma.viewed == 0 ? "newsBlack" : "newsGrey"}" %>
|
||||||
<!--:onmouseover =>"message_titile_show($(this),event)",-->
|
<!--:onmouseover =>"message_titile_show($(this),event)",-->
|
||||||
<!--:onmouseout => "message_titile_hide($(this))"%>-->
|
<!--:onmouseout => "message_titile_hide($(this))"%>-->
|
||||||
|
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<div style="display: none" class="message_title_red system_message_style">
|
|
||||||
<p>
|
|
||||||
<%= User.current.lastname + User.current.firstname %><%= User.current.allowed_to?(:as_teacher,ma.course_message.course) ? '老师':'同学'%>您好!
|
|
||||||
<%= User.current.eql?(ma.course_message.user)?"您":(ma.course_message.user.lastname + ma.course_message.user.firstname+"老师") %>发布的课程测验截止时间快到了,测验详情如下:
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<ul class="ul_normal_color">
|
|
||||||
<li>课程名称:<%= ma.course_message.course.name %>(<%= ma.course_message.course.time.to_s + '年'+ ma.course_message.course.term %>)</li>
|
|
||||||
<li>测验标题:<%= ma.course_message.exercise_name %></li>
|
|
||||||
<li>截止时间:<%= ma.course_message.end_time.to_s.gsub("+0800","").to_datetime.strftime("%Y-%m-%d %H:%M:%S") %></li>
|
|
||||||
<li>答题时长:<%= ma.course_message.time == -1 ? '无限制' : ma.course_message.time.to_s + '分钟' %></li>
|
|
||||||
<p>请及时完成课程测验,辛苦啦!</p>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
<li class="homepageHomeworkContentWarn fl">截止时间快到啦 </li>
|
<li class="homepageHomeworkContentWarn fl">截止时间快到啦 </li>
|
||||||
<li class="homepageNewsTime fl"><%= time_tag(ma.created_at).html_safe %> </li>
|
<li class="homepageNewsTime fl"><%= time_tag(ma.created_at).html_safe %> </li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
@ -15,9 +15,6 @@
|
||||||
<!--:onmouseout => "message_titile_hide($(this))" %>-->
|
<!--:onmouseout => "message_titile_hide($(this))" %>-->
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<div style="display: none" class="message_title_red system_message_style">
|
|
||||||
<%= ma.project %>
|
|
||||||
</div>
|
|
||||||
<li class="homepageNewsTime fl"><%= time_tag(ma.created_at).html_safe %> </li>
|
<li class="homepageNewsTime fl"><%= time_tag(ma.created_at).html_safe %> </li>
|
||||||
</ul>
|
</ul>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
@ -38,21 +35,6 @@
|
||||||
<!--:onmouseout => "message_titile_hide($(this))" %>-->
|
<!--:onmouseout => "message_titile_hide($(this))" %>-->
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<div style="display: none" class="message_title_red system_message_style">
|
|
||||||
<% if ma.project.is_public? || User.current.member_of?(ma.project) || User.current.admin? %>
|
|
||||||
<p>
|
|
||||||
项目名称:<%= ma.project.name %>
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<p>
|
|
||||||
项目描述:<%= ma.project.description %>
|
|
||||||
</p>
|
|
||||||
<% else %>
|
|
||||||
<p>
|
|
||||||
您已经被移出该私有项目,非项目成员没有权限访问私有项目
|
|
||||||
</p>
|
|
||||||
<% end %>
|
|
||||||
</div>
|
|
||||||
<li class="homepageNewsTime fl"><%= time_tag(ma.created_at).html_safe %> </li>
|
<li class="homepageNewsTime fl"><%= time_tag(ma.created_at).html_safe %> </li>
|
||||||
</ul>
|
</ul>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
@ -74,21 +56,6 @@
|
||||||
<!--:onmouseout => "message_titile_hide($(this))" %>-->
|
<!--:onmouseout => "message_titile_hide($(this))" %>-->
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<div style="display: none" class="message_title_red system_message_style">
|
|
||||||
<% if ma.project.is_public? || User.current.member_of?(ma.project) || User.current.admin? %>
|
|
||||||
<p>
|
|
||||||
项目名称:<%= ma.project.name %>
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<p>
|
|
||||||
项目描述:<%= ma.project.description %>
|
|
||||||
</p>
|
|
||||||
<% else %>
|
|
||||||
<p>
|
|
||||||
您已经被移出该私有项目,非项目成员没有权限访问私有项目
|
|
||||||
</p>
|
|
||||||
<% end %>
|
|
||||||
</div>
|
|
||||||
<li class="homepageNewsTime fl"><%= time_tag(ma.created_at).html_safe %> </li>
|
<li class="homepageNewsTime fl"><%= time_tag(ma.created_at).html_safe %> </li>
|
||||||
</ul>
|
</ul>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
@ -114,9 +81,6 @@
|
||||||
<!--:onmouseover => "message_titile_show($(this),event)",-->
|
<!--:onmouseover => "message_titile_show($(this),event)",-->
|
||||||
<!--:onmouseout => "message_titile_hide($(this))" %>-->
|
<!--:onmouseout => "message_titile_hide($(this))" %>-->
|
||||||
</li>
|
</li>
|
||||||
<div style="display: none" class="message_title_red system_message_style">
|
|
||||||
<%= ma.project %>
|
|
||||||
</div>
|
|
||||||
<% unless User.current.member_of?(ma.project) %>
|
<% unless User.current.member_of?(ma.project) %>
|
||||||
<li class="homepageHomeworkContentWarn fl">
|
<li class="homepageHomeworkContentWarn fl">
|
||||||
<%=link_to "同意加入", {:controller => 'projects', :action => 'member', :id => ma.project_id, :message_id =>ma.id, :key => ma.secret_key},
|
<%=link_to "同意加入", {:controller => 'projects', :action => 'member', :id => ma.project_id, :message_id =>ma.id, :key => ma.secret_key},
|
||||||
|
@ -144,13 +108,6 @@
|
||||||
<!--:onmouseout => "message_titile_hide($(this))" %>-->
|
<!--:onmouseout => "message_titile_hide($(this))" %>-->
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<div style="display: none" class="message_title_red system_message_style">
|
|
||||||
<p><strong>主题:</strong><%= ma.forge_message.subject %></p>
|
|
||||||
<% unless ma.forge_message.description.nil? || ma.forge_message.description == "" %>
|
|
||||||
<div class="fl"><strong>描述:</strong></div>
|
|
||||||
<div class="ml36"><%= ma.forge_message.description.html_safe %></div>
|
|
||||||
<% end %>
|
|
||||||
</div>
|
|
||||||
<li class="homepageHomeworkContentWarn fl"> 截止时间快到了!</li>
|
<li class="homepageHomeworkContentWarn fl"> 截止时间快到了!</li>
|
||||||
<li class="homepageNewsTime fl"><%= time_tag(ma.created_at).html_safe %> </li>
|
<li class="homepageNewsTime fl"><%= time_tag(ma.created_at).html_safe %> </li>
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -169,13 +126,6 @@
|
||||||
<!--:onmouseout => "message_titile_hide($(this))" %>-->
|
<!--:onmouseout => "message_titile_hide($(this))" %>-->
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<div style="display: none" class="message_title_red system_message_style">
|
|
||||||
<p><strong>主题:</strong><%= ma.forge_message.subject %></p>
|
|
||||||
<% unless ma.forge_message.description.nil? || ma.forge_message.description == "" %>
|
|
||||||
<div class="fl"><strong>描述:</strong></div>
|
|
||||||
<div class="ml36"><%= ma.forge_message.description.html_safe %></div>
|
|
||||||
<% end %>
|
|
||||||
</div>
|
|
||||||
<li class="homepageNewsTime fl"><%= time_tag(ma.created_at).html_safe %> </li>
|
<li class="homepageNewsTime fl"><%= time_tag(ma.created_at).html_safe %> </li>
|
||||||
</ul>
|
</ul>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
@ -197,11 +147,6 @@
|
||||||
<!--:onmouseout => "message_titile_hide($(this))" %>-->
|
<!--:onmouseout => "message_titile_hide($(this))" %>-->
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<div style="display: none" class="message_title_red system_message_style" >
|
|
||||||
<p><strong>问题标题:</strong><%= ma.forge_message.journalized.subject %></p>
|
|
||||||
<div class="fl"><strong>更新内容:</strong></div>
|
|
||||||
<div class="ml60"><%= get_issue_des_update(ma.forge_message).html_safe %></div>
|
|
||||||
</div>
|
|
||||||
<li class="homepageNewsTime fl"><%= time_tag(ma.created_at).html_safe %> </li>
|
<li class="homepageNewsTime fl"><%= time_tag(ma.created_at).html_safe %> </li>
|
||||||
</ul>
|
</ul>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
@ -210,37 +155,14 @@
|
||||||
<li class="homepageNewsPortrait fl"><a href="javascript:void(0);"><%=link_to image_tag(url_to_avatar(ma.forge_message.author), :width => "30", :height => "30"), user_path(ma.forge_message.author) %></a></li>
|
<li class="homepageNewsPortrait fl"><a href="javascript:void(0);"><%=link_to image_tag(url_to_avatar(ma.forge_message.author), :width => "30", :height => "30"), user_path(ma.forge_message.author) %></a></li>
|
||||||
<li class="homepageNewsPubType fl"><%=link_to ma.forge_message.author, user_path(ma.forge_message.author), :class => "newsBlue homepageNewsPublisher" %>
|
<li class="homepageNewsPubType fl"><%=link_to ma.forge_message.author, user_path(ma.forge_message.author), :class => "newsBlue homepageNewsPublisher" %>
|
||||||
<span class="<%= ma.viewed == 0 ? "homepageNewsTypeNotRead fl":"homepageNewsType fl" %>"><%= ma.forge_message.parent_id.nil? ? "发布了项目帖子:" : "评论了项目帖子:" %></span></li>
|
<span class="<%= ma.viewed == 0 ? "homepageNewsTypeNotRead fl":"homepageNewsType fl" %>"><%= ma.forge_message.parent_id.nil? ? "发布了项目帖子:" : "评论了项目帖子:" %></span></li>
|
||||||
<% if ma.forge_message.parent_id.nil? %>
|
|
||||||
<li class="homepageNewsContent fl"><a href="javascript:void(0);" class="newsGrey">
|
<li class="homepageNewsContent fl"><a href="javascript:void(0);" class="newsGrey">
|
||||||
<%= link_to ma.forge_message.subject, project_boards_path(ma.forge_message.project,
|
<%= link_to ma.forge_message.subject, project_boards_path(ma.forge_message.project,
|
||||||
:parent_id => ma.forge_message.parent_id ? ma.forge_message.parent_id : ma.forge_message.id,
|
:parent_id => ma.forge_message.parent_id ? ma.forge_message.parent_id : ma.forge_message.id,
|
||||||
:topic_id => ma.forge_message.id), :class => "#{ma.viewed==0 ? "newsBlack" : "newsGrey"}" %>
|
:topic_id => ma.forge_message.id), :class => "#{ma.viewed==0 ? "newsBlack" : "newsGrey"}" %>
|
||||||
<!--:onmouseover => "message_titile_show($(this),event)",-->
|
<!--:onmouseover => "message_titile_show($(this),event)",-->
|
||||||
<!--:onmouseout => "message_titile_hide($(this))" %>-->
|
<!--:onmouseout => "message_titile_hide($(this))" %>-->
|
||||||
</a></li>
|
</a>
|
||||||
<div style="display: none" class="message_title_red system_message_style">
|
</li>
|
||||||
<p><strong>主题:</strong><%= ma.forge_message.subject %></p>
|
|
||||||
<% unless ma.forge_message.content.nil? %>
|
|
||||||
<div class="fl"><strong>内容:</strong></div>
|
|
||||||
<div class="ml36"><%= ma.forge_message.content.html_safe %></div>
|
|
||||||
<% end %>
|
|
||||||
</div>
|
|
||||||
<% else %>
|
|
||||||
<li class="homepageNewsContent fl"><a href="javascript:void(0);" class="newsGrey">
|
|
||||||
<%= link_to ma.forge_message.subject, project_boards_path(ma.forge_message.project,
|
|
||||||
:parent_id => ma.forge_message.parent_id ? ma.forge_message.parent_id : ma.forge_message.id,
|
|
||||||
:topic_id => ma.forge_message.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><strong>帖子主题:</strong><%= ma.forge_message.subject %></p>
|
|
||||||
<% unless ma.forge_message.content.nil? %>
|
|
||||||
<div class="fl"><strong>评论内容:</strong></div>
|
|
||||||
<div class="ml60"><%= ma.forge_message.content.html_safe %></div>
|
|
||||||
<% end %>
|
|
||||||
</div>
|
|
||||||
<% end %>
|
|
||||||
<li class="homepageNewsTime fl"><%= time_tag(ma.created_at).html_safe %> </li>
|
<li class="homepageNewsTime fl"><%= time_tag(ma.created_at).html_safe %> </li>
|
||||||
</ul>
|
</ul>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
@ -260,13 +182,6 @@
|
||||||
<!--:onmouseout => "message_titile_hide($(this))" %>-->
|
<!--:onmouseout => "message_titile_hide($(this))" %>-->
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<div style="display: none" class="message_title_red system_message_style">
|
|
||||||
<p><strong>标题:</strong><%= ma.forge_message.title %></p>
|
|
||||||
<% unless ma.forge_message.description.nil? %>
|
|
||||||
<div class="fl"><strong>内容:</strong></div>
|
|
||||||
<div class="ml36"><%= ma.forge_message.description.html_safe %></div>
|
|
||||||
<% end %>
|
|
||||||
</div>
|
|
||||||
<li class="homepageNewsTime fl"><%= time_tag(ma.created_at).html_safe %> </li>
|
<li class="homepageNewsTime fl"><%= time_tag(ma.created_at).html_safe %> </li>
|
||||||
</ul>
|
</ul>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
@ -281,11 +196,6 @@
|
||||||
<!--:onmouseover => "message_titile_show($(this),event)",-->
|
<!--:onmouseover => "message_titile_show($(this),event)",-->
|
||||||
<!--:onmouseout => "message_titile_hide($(this))" %>-->
|
<!--:onmouseout => "message_titile_hide($(this))" %>-->
|
||||||
</li>
|
</li>
|
||||||
<div style="display: none" class="message_title_red system_message_style">
|
|
||||||
<p><strong>新闻标题:</strong><%= ma.forge_message.commented.title %></p>
|
|
||||||
<div class="fl"><strong>评论内容:</strong></div>
|
|
||||||
<div class="ml60"><%= ma.forge_message.comments.html_safe %></div>
|
|
||||||
</div>
|
|
||||||
<li class="homepageNewsTime fl"><%= time_tag(ma.created_at).html_safe %> </li>
|
<li class="homepageNewsTime fl"><%= time_tag(ma.created_at).html_safe %> </li>
|
||||||
</ul>
|
</ul>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
|
@ -15,13 +15,6 @@
|
||||||
<!--:onmouseout => "message_titile_hide($(this))" %>-->
|
<!--:onmouseout => "message_titile_hide($(this))" %>-->
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<div style="display: none" class="message_title_red system_message_style">
|
|
||||||
<p><strong>标题:</strong><%= ma.memo.subject %></p>
|
|
||||||
<% unless ma.memo.content.nil? %>
|
|
||||||
<div class="fl"><strong>内容:</strong></div>
|
|
||||||
<div class="ml36"><%= ma.memo.content.html_safe %></div>
|
|
||||||
<% end %>
|
|
||||||
</div>
|
|
||||||
<% else %>
|
<% else %>
|
||||||
<li class="homepageNewsContent fl"><a href="javascript:void(0);" class="newsGrey">
|
<li class="homepageNewsContent fl"><a href="javascript:void(0);" class="newsGrey">
|
||||||
<%= link_to ma.memo.content.html_safe, forum_memo_path(ma.memo.forum_id, ma.memo.parent_id ? ma.memo.parent_id: ma.memo.id), :class =>"#{ma.viewed == 0 ? "newsBlack" : "newsGrey"}" %>
|
<%= link_to ma.memo.content.html_safe, forum_memo_path(ma.memo.forum_id, ma.memo.parent_id ? ma.memo.parent_id: ma.memo.id), :class =>"#{ma.viewed == 0 ? "newsBlack" : "newsGrey"}" %>
|
||||||
|
@ -29,13 +22,6 @@
|
||||||
<!--:onmouseout => "message_titile_hide($(this))" %>-->
|
<!--:onmouseout => "message_titile_hide($(this))" %>-->
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<div style="display: none" class="message_title_red system_message_style">
|
|
||||||
<p><strong>标题:</strong><%= ma.memo.subject %></p>
|
|
||||||
<% unless ma.memo.content.nil? %>
|
|
||||||
<div class="fl"><strong>内容:</strong></div>
|
|
||||||
<div class="ml36"><%= ma.memo.content.html_safe %></div>
|
|
||||||
<% end %>
|
|
||||||
</div>
|
|
||||||
<% end %>
|
<% end %>
|
||||||
<li class="homepageNewsTime fl"><%= time_tag(ma.memo.created_at).html_safe %> </li>
|
<li class="homepageNewsTime fl"><%= time_tag(ma.memo.created_at).html_safe %> </li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
@ -15,14 +15,6 @@
|
||||||
<!--:onmouseover =>"message_titile_show($(this),event);",-->
|
<!--:onmouseover =>"message_titile_show($(this),event);",-->
|
||||||
<!--:onmouseout => "message_titile_hide($(this));"-->
|
<!--:onmouseout => "message_titile_hide($(this));"-->
|
||||||
</li>
|
</li>
|
||||||
<div style="display:none;" class="message_title_red system_message_style">
|
|
||||||
<% unless ma.subject.blank? %>
|
|
||||||
<p><strong>标题:</strong><%= ma.subject %></p>
|
|
||||||
<% end %>
|
|
||||||
<% if (!ma.description.blank?) || (!ma.content.blank?) %>
|
|
||||||
<div class="fl"><strong>内容:</strong></div><div class="ml36"><%= ma.description.nil? ? ma.content.html_safe : ma.description.html_safe %></div>
|
|
||||||
<% end %>
|
|
||||||
</div>
|
|
||||||
<li class="homepageNewsTime fl"><%= time_tag(ma.created_at).html_safe %> </li>
|
<li class="homepageNewsTime fl"><%= time_tag(ma.created_at).html_safe %> </li>
|
||||||
</ul>
|
</ul>
|
||||||
<%# end %>
|
<%# end %>
|
||||||
|
|
|
@ -24,7 +24,6 @@
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
<li class="homepageNewsTime fl"><%= time_tag(ma.journals_for_message.created_on).html_safe %> </li>
|
<li class="homepageNewsTime fl"><%= time_tag(ma.journals_for_message.created_on).html_safe %> </li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
Loading…
Reference in New Issue