|
|
|
@ -31,9 +31,9 @@
|
|
|
|
|
<%= link_to("选入我的其他课程",quote_resource_show_course_file_path(@course,file),:class => "f_l re_select c_lorange",:remote => true) if has_course?(User.current,file) %>
|
|
|
|
|
|
|
|
|
|
<% if delete_allowed && file.container_id == @course.id && file.container_type == "Course" %>
|
|
|
|
|
<span id="is_public_<%= file.id %>">
|
|
|
|
|
<%= link_to (file.is_public? ? "公开":"私有"), update_file_dense_attachments_path(:attachmentid=>file.id,:newtype=>(file.is_public? ? 0:1)),:remote=>true,:class=>"f_l re_open c_blue",:method => :post %>
|
|
|
|
|
</span>
|
|
|
|
|
<span id="is_public_<%= file.id %>">
|
|
|
|
|
<%= link_to (file.is_public? ? "公开":"私有"), update_file_dense_attachments_path(:attachmentid=>file.id,:newtype=>(file.is_public? ? 0:1)),:remote=>true,:class=>"f_l re_open c_blue",:method => :post %>
|
|
|
|
|
</span>
|
|
|
|
|
<% else %>
|
|
|
|
|
<!-- <#%= link_to (file.is_public? ? "公开":"私有"),"javascript:void(0)",:class=>"f_l re_open" %> -->
|
|
|
|
|
<% end %>
|
|
|
|
|