From d699c91363804c945510c51e69a4bb53561f19f1 Mon Sep 17 00:00:00 2001 From: jingquan huang Date: Sat, 29 Jun 2019 17:58:54 +0800 Subject: [PATCH 1/4] =?UTF-8?q?=E6=95=99=E5=AD=A6=E6=A1=88=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/libraries_controller.rb | 2 +- config/routes.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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/config/routes.rb b/config/routes.rb index ff8d4137..94a5be08 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -2659,7 +2659,7 @@ RedmineApp::Application.routes.draw do ## oauth相关 resource :sso, only: [:show, :create] # library - resources :libraries do + resources :libraries, :path => "moop_cases" do get :publish_success, on: :collection end From b7db488d3b1651b3c0384b326e99b364adb04e22 Mon Sep 17 00:00:00 2001 From: jingquan huang Date: Sat, 29 Jun 2019 18:05:00 +0800 Subject: [PATCH 2/4] =?UTF-8?q?=E6=95=99=E5=AD=A6=E6=A1=88=E4=BE=8B?= =?UTF-8?q?=E9=9A=90=E8=97=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/layouts/_logined_header.html.erb | 1 - 1 file changed, 1 deletion(-) 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? %> From 89fdb0a4f857dc414a94c25ea2e06717fb6310ab Mon Sep 17 00:00:00 2001 From: jingquan huang Date: Sat, 29 Jun 2019 21:46:15 +0800 Subject: [PATCH 3/4] =?UTF-8?q?=E6=A1=88=E4=BE=8B=E8=AF=B4=E6=98=8E?= =?UTF-8?q?=E8=A5=BF=E6=94=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/libraries/_form.html.erb | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/app/views/libraries/_form.html.erb b/app/views/libraries/_form.html.erb index 3b0e3d33..15d15c23 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(及以上版本)浏览器;
    From c7304cf397e063940e16d29d975aab439cf07cc0 Mon Sep 17 00:00:00 2001 From: jingquan huang Date: Sat, 29 Jun 2019 21:50:38 +0800 Subject: [PATCH 4/4] =?UTF-8?q?=E6=96=B0=E5=BC=80=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/libraries/_form.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/libraries/_form.html.erb b/app/views/libraries/_form.html.erb index 15d15c23..a1692e2b 100644 --- a/app/views/libraries/_form.html.erb +++ b/app/views/libraries/_form.html.erb @@ -41,7 +41,7 @@
  • 温馨提示
    • 1.请勿上传已设置加密口令的文档资源;
    • -
    • 2.可以上传符合教学案例标准的文档资料,如案例入库标准案例使用说明书以及其他资料等,上传支持的文件最大容量:100MB;
    • +
    • 2.可以上传符合教学案例标准的文档资料,如案例入库标准案例使用说明书以及其他资料等,上传支持的文件最大容量:100MB;
    • 3.请确保上传内容无侵权或违反国家关于互联网政策的不良行为;
    • 4.请使用Chrome,Firefox,Safari,IE11(及以上版本)浏览器;