diff --git a/app/controllers/libraries_controller.rb b/app/controllers/libraries_controller.rb
index c124c191..f3559b05 100644
--- a/app/controllers/libraries_controller.rb
+++ b/app/controllers/libraries_controller.rb
@@ -1,7 +1,7 @@
class LibrariesController < ApplicationController
layout 'base_library'
- before_filter :require_login
+ before_filter :require_login, :except => [:index]
def index
libraries = Library.where(nil)
diff --git a/app/views/layouts/_logined_header.html.erb b/app/views/layouts/_logined_header.html.erb
index 7f6e08f9..30ef0658 100644
--- a/app/views/layouts/_logined_header.html.erb
+++ b/app/views/layouts/_logined_header.html.erb
@@ -18,7 +18,6 @@
<% end %>
-
"><%= link_to '教学案例', libraries_path %>
"><%= link_to "竞赛", competitions_path %>
"><%= link_to "问答", forums_path %>
<% if User.current.ec_school.present? %>
diff --git a/app/views/libraries/_form.html.erb b/app/views/libraries/_form.html.erb
index 3b0e3d33..a1692e2b 100644
--- a/app/views/libraries/_form.html.erb
+++ b/app/views/libraries/_form.html.erb
@@ -10,12 +10,9 @@
<%= f.text_field :title, placeholder: '例如:软件工程教学案例', class: 'greyInput winput-300-35 mr20 fl' %>
请输入标题
- 简明扼要介绍文档&视频所包含的主要的内容
-
-
- <%= render partial: 'attachments/from_libraries', locals: { container: @library } %>
-
请上传附件
+
简明扼要介绍文档/视频所包含的主要的内容
+
@@ -27,6 +24,12 @@
请输入描述内容
+
+
+ <%= render partial: 'attachments/from_libraries', locals: { container: @library } %>
+
请上传附件
+
审核说明
@@ -37,11 +40,10 @@
温馨提示
- - 1.请勿上传已设置加密或只读的文档资源
- - 2.可以上传教学积累和撰写的文档资料,如教学案例、总结、心得等,上传支持的文件最大容量:100MB
- - 3.上传涉及侵权内容的文档将会被移除。
- - 4.为营造绿色网络环境,严禁上传违反国家关于互联网相关规定的内容
- - 5.Chrome,Firefox,Safari,IE11及以上版本浏览器上传!
+ - 1.请勿上传已设置加密口令的文档资源;
+ - 2.可以上传符合教学案例标准的文档资料,如案例入库标准、案例使用说明书以及其他资料等,上传支持的文件最大容量:100MB;
+ - 3.请确保上传内容无侵权或违反国家关于互联网政策的不良行为;
+ - 4.请使用Chrome,Firefox,Safari,IE11(及以上版本)浏览器;
diff --git a/config/routes.rb b/config/routes.rb
index 5936b9b4..2bc0038c 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -53,7 +53,7 @@ RedmineApp::Application.routes.draw do ## oauth相关
end
# library
- resources :libraries do
+ resources :libraries, :path => "moop_cases" do
get :publish_success, on: :collection
end