班级作业列表不够1页的高度调整
This commit is contained in:
parent
ca59d5c7e1
commit
b08d4da7f9
|
|
@ -63,13 +63,13 @@
|
|||
</li>
|
||||
<li><%= link_to "导出成绩", student_work_index_path(:homework => homework_common, :format => 'xls'), :id => "export_student_work" %></li>
|
||||
<% if homework_common.homework_type == 1 || homework_common.homework_type == 3 %>
|
||||
<li>
|
||||
<% if homework_common.student_works.has_committed.empty?%>
|
||||
<a href="javascript:void(0)" onclick="notice_box('没有学生提交作业,暂无附件可下载');">导出作品附件</a>
|
||||
<% else%>
|
||||
<%= link_to "导出作品附件", zipdown_assort_path(obj_class: homework_common.class,obj_id: homework_common, format: :json), remote: true, :class => "download_homework_attachments" %>
|
||||
<% end%>
|
||||
</li>
|
||||
<li>
|
||||
<% if homework_common.student_works.has_committed.empty?%>
|
||||
<a href="javascript:void(0)" onclick="notice_box('没有学生提交作业,暂无附件可下载');">导出作品附件</a>
|
||||
<% else%>
|
||||
<%= link_to "导出作品附件", zipdown_assort_path(obj_class: homework_common.class,obj_id: homework_common, format: :json), remote: true, :class => "download_homework_attachments" %>
|
||||
<% end%>
|
||||
</li>
|
||||
<% end %>
|
||||
<% unless homework_common.is_public %>
|
||||
<li id="set_homework_public_<%= homework_common.id %>">
|
||||
|
|
@ -99,16 +99,18 @@
|
|||
<% end %>
|
||||
</div>
|
||||
<% end %>
|
||||
<div style="text-align:center;">
|
||||
<div class="pages" style="width:auto; display:inline-block;">
|
||||
<ul id="homework_pository_ref_pages">
|
||||
<%= pagination_links_full @obj_pages, @obj_count, :per_page_links => false, :remote => true, :flag => true, :is_new => true %>
|
||||
</ul>
|
||||
<div class="cl"></div>
|
||||
</div>
|
||||
</div>
|
||||
<% if @obj_count > 20 %>
|
||||
<div style="text-align:center;">
|
||||
<div class="pages" style="width:auto; display:inline-block;">
|
||||
<ul id="homework_pository_ref_pages">
|
||||
<%= pagination_links_full @obj_pages, @obj_count, :per_page_links => false, :remote => true, :flag => true, :is_new => true %>
|
||||
</ul>
|
||||
<div class="cl"></div>
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
<% else %>
|
||||
<div style="background-color: #fff;padding-bottom: 10px;">
|
||||
<%= render :partial => "welcome/no_data" %>
|
||||
<%= render :partial => "welcome/no_data" %>
|
||||
</div>
|
||||
<% end %>
|
||||
|
|
|
|||
|
|
@ -136,7 +136,7 @@ $(function(){
|
|||
}).hide();
|
||||
});
|
||||
//下拉框
|
||||
$("[select-for]").append("<i class='fa fa-sort-desc lesson_img'></i>");
|
||||
$("[select-for]").append("<i class='fa fa-sort-desc lesson_img color-grey'></i>");
|
||||
$("[select-for]").hover(function(){
|
||||
$(this).find(".down-select").show();
|
||||
},function(){
|
||||
|
|
|
|||
Loading…
Reference in New Issue