批量设置
This commit is contained in:
parent
d5488ba806
commit
60445fcb3f
|
@ -102,8 +102,10 @@
|
|||
<span class="none" id="curr_page_span"><%= @curr_page %></span>
|
||||
<%= submit_tag "班内搜索", :class => "blueBtn mr5 fl",:name => "incourse",:id => "incourse" %>
|
||||
<%#= submit_tag "全站搜索", :class => "blueBtn mr5 fl",:name => "insite",:id => "insite" %>
|
||||
<% if is_course_teacher(User.current,@course) || (@course.publish_resource==1 && User.current.member_of_course?(@course) ) %>
|
||||
<% if is_course_teacher(User.current,@course) %>
|
||||
<%= link_to("批量设置", batch_setting_attachments_path(:course_id => @course.id), :class => "blue-btn fr mr5", :remote => true) %>
|
||||
<% end %>
|
||||
<% if is_course_teacher(User.current,@course) || (@course.publish_resource==1 && User.current.member_of_course?(@course) ) %>
|
||||
<%= link_to("上传资源", upload_atta_attachments_path(:course_id => @course.id), :class => "blue-btn fr mr5", :remote => true) %>
|
||||
<%= link_to("导入资源", import_resources_user_path(User.current, :type => 6, :course_id => @course.id), :class => "blue-btn fr mr5", :remote => true) %>
|
||||
<% end %>
|
||||
|
|
|
@ -91,7 +91,7 @@
|
|||
<li id="sy_05" class="sy_icons_files">
|
||||
<a href="<%=course_files_path(@course) %>">资源库<span><%=course_file_num %></span></a>
|
||||
<% if is_teacher || (@course.publish_resource == 1 && User.current.member_of_course?(@course)) %>
|
||||
<a class="sy_class_add" title="上传资源" href="javascript:void(0);" onclick="course_files_upload();"> </a>
|
||||
<%= link_to("", upload_atta_attachments_path(:course_id => @course.id), :class => "sy_class_add", :remote => true) %>
|
||||
<% end %>
|
||||
</li>
|
||||
<% end %>
|
||||
|
|
Loading…
Reference in New Issue