匿评申诉的错别字、匿评申诉:评阅人、老师或助教点击收到的申诉消息返回对应的作品列表,建议定位到对应的作品

This commit is contained in:
cxt 2016-12-17 14:10:51 +08:00
parent d9dcb3b291
commit f7f1c68576
5 changed files with 5 additions and 5 deletions

View File

@ -1,5 +1,5 @@
<% is_expand = st.student_work_projects.empty? %> <% is_expand = st.student_work_projects.empty? %>
<a name="<%= st.id%>"></a>
<ul id="syllabus_course_ul"> <ul id="syllabus_course_ul">
<li class="syllabus_class_list" style="line-height:44px; vertical-align:middle;"> <li class="syllabus_class_list" style="line-height:44px; vertical-align:middle;">
<div class="syllabus_class_w fontGrey3" style="cursor: pointer;"> <div class="syllabus_class_w fontGrey3" style="cursor: pointer;">

View File

@ -6,8 +6,8 @@
<%# elsif @homework.homework_type == 3 %> <%# elsif @homework.homework_type == 3 %>
<%#= render :partial => 'evaluation_un_group_work', :locals => {:student_work => student_work, :index => index} %> <%#= render :partial => 'evaluation_un_group_work', :locals => {:student_work => student_work, :index => index} %>
<%# else %> <%# else %>
<a name="<%= student_work.id%>"></a>
<tr class="hworkListRow" id="student_work_<%= student_work.id%>"> <tr class="hworkListRow" id="student_work_<%= student_work.id%>">
<td class="none"><a name="<%= student_work.id%>"></a></td>
<td class="hworkList40 pl5 pr5" id="work_num_<%=student_work.id %>"><%=index + 1 %></td> <td class="hworkList40 pl5 pr5" id="work_num_<%=student_work.id %>"><%=index + 1 %></td>
<td class="hworkPortrait pr10 float-none"> <td class="hworkPortrait pr10 float-none">
<%= link_to(image_tag(url_to_avatar(student_work.user),:width =>"40",:height => "40",:style => "display:block;"),user_path(student_work.user), :target => '_blank') %> <%= link_to(image_tag(url_to_avatar(student_work.user),:width =>"40",:height => "40",:style => "display:block;"),user_path(student_work.user), :target => '_blank') %>

View File

@ -1,6 +1,6 @@
<!-- 匿评作品列表,显示某一个作品的信息 --> <!-- 匿评作品列表,显示某一个作品的信息 -->
<a name="<%= student_work.id%>"></a>
<tr class="hworkListRow" id="student_work_<%= student_work.id%>"> <tr class="hworkListRow" id="student_work_<%= student_work.id%>">
<td class="none"><a name="<%= student_work.id%>"></a></td>
<% if @homework.homework_type != 3 %> <% if @homework.homework_type != 3 %>
<% is_my_work = student_work.user == User.current%> <% is_my_work = student_work.user == User.current%>
<% else %> <% else %>

View File

@ -12,7 +12,7 @@
<%= f.text_area 'comment', :id => 'appeal_comment', :style => 'height: 70px; width: 414px;', :placeholder => "请输入你的申诉理由最多250个字符。",:maxlength => 250 %> <%= f.text_area 'comment', :id => 'appeal_comment', :style => 'height: 70px; width: 414px;', :placeholder => "请输入你的申诉理由最多250个字符。",:maxlength => 250 %>
<p id="notice_notes" class="c_red none" style="margin-left: 68px;">请输入申诉理由</p> <p id="notice_notes" class="c_red none" style="margin-left: 68px;">请输入申诉理由</p>
<div class="alert alert-orange mb10 mt10 mr20"> <div class="alert alert-orange mb10 mt10 mr20">
教师或者助教将到您的申诉<br/> 教师或者助教将到您的申诉<br/>
申诉被接受后,此匿评成绩将被废弃,且评阅人的作品将被违规扣分 申诉被接受后,此匿评成绩将被废弃,且评阅人的作品将被违规扣分
</div> </div>

View File

@ -80,7 +80,7 @@
<script type="text/javascript"> <script type="text/javascript">
$(function(){ $(function(){
<% if !@is_evaluation && (!@is_teacher || params[:show_work_id].present?) || @message_student_work_id || (@is_evaluation && @is_focus == 1) %> <% if !@is_evaluation && (!@is_teacher || params[:show_work_id].present?) || @message_student_work_id || (@is_evaluation && (@is_focus == 1 || params[:show_work_id].present?)) %>
<% if @message_student_work_id %> <% if @message_student_work_id %>
<% work = @homework.student_works.where("id =?", @message_student_work_id).first %> <% work = @homework.student_works.where("id =?", @message_student_work_id).first %>
<% else %> <% else %>