From e6b6e91921b2be4c6e40bfe43b2c90f1a9bc91a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com> Date: Sat, 22 Jun 2019 09:30:51 +0800 Subject: [PATCH 01/30] =?UTF-8?q?=E8=B0=83=E6=95=B4=E9=A2=98=E7=9B=AE?= =?UTF-8?q?=E5=A4=9A=E8=A1=8C=E6=98=BE=E7=A4=BA=E4=BD=93=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/exercise/_exercise_student.html.erb | 12 ++++++++++-- app/views/exercise/_exercise_student_result.html.erb | 12 ++++++++++-- app/views/exercise/student_exercise_list.html.erb | 12 ++++++++++-- 3 files changed, 30 insertions(+), 6 deletions(-) diff --git a/app/views/exercise/_exercise_student.html.erb b/app/views/exercise/_exercise_student.html.erb index ec47f1c0..a63191db 100644 --- a/app/views/exercise/_exercise_student.html.erb +++ b/app/views/exercise/_exercise_student.html.erb @@ -200,7 +200,11 @@ } <%= answer_be_selected?(exercise_choice, User.current) ? "checked" : "" %>> - + <% end %> @@ -243,7 +247,11 @@ } <%= answer_be_selected?(exercise_choice, User.current) ? "checked" : "" %>> - + <% end %> diff --git a/app/views/exercise/_exercise_student_result.html.erb b/app/views/exercise/_exercise_student_result.html.erb index 6d48573f..b9f39e15 100644 --- a/app/views/exercise/_exercise_student_result.html.erb +++ b/app/views/exercise/_exercise_student_result.html.erb @@ -153,7 +153,11 @@ id="exercise_<%= exercise_choice.id %>_exercise_choice_id" type="radio" disabled <%= answer_be_selected?(exercise_choice, user) ? "checked" : "" %>> - + <% end %> @@ -168,7 +172,11 @@ <% exercise_choices.each_with_index do |exercise_choice, index| %>
服务配置
<% @shixun.shixun_service_configs.each do |config| %> From eb61f98246cec94524fbf0be8fe1300e43934212 Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Wed, 26 Jun 2019 18:33:09 +0800 Subject: [PATCH 08/30] =?UTF-8?q?=E5=AE=9E=E8=AE=AD=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E8=B5=84=E6=BA=90=E7=BB=9F=E4=B8=80=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/helpers/application_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index cc93b840..2bfc127d 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -277,7 +277,7 @@ module ApplicationHelper :cpuLimit => config.cpu_limit, :cpuRequest => config.lower_cpu_limit, :memoryLimit => "#{config.memory_limit}M", - :memoryRequest => "#{config.request_limit}", + :memoryRequest => "#{config.request_limit}M", :resourceLimit => "#{config.resource_limit}K", :type => mirror.try(:main_type) == "1" ? "main" : "sub"} end From 7b46227ec45ed99abd678bb2ee3cc0e62c75aa85 Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Thu, 27 Jun 2019 00:17:56 +0800 Subject: [PATCH 09/30] =?UTF-8?q?=E9=95=9C=E5=83=8F=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E4=B8=8A=E7=BA=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...ify_request_limit_for_shixun_service_config.rb | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 db/migrate/20190626161150_modify_request_limit_for_shixun_service_config.rb diff --git a/db/migrate/20190626161150_modify_request_limit_for_shixun_service_config.rb b/db/migrate/20190626161150_modify_request_limit_for_shixun_service_config.rb new file mode 100644 index 00000000..060cad94 --- /dev/null +++ b/db/migrate/20190626161150_modify_request_limit_for_shixun_service_config.rb @@ -0,0 +1,15 @@ +class ModifyRequestLimitForShixunServiceConfig < ActiveRecord::Migration + def up + ShixunServiceConfig.find_each do |config| + # repertoire_id = 5 代表的是大数据的镜像 + if config.mirror_repository.repertoire_id != 5 + config.update_column(:request_limit, 10) + else + puts("####---#{config.mirror_repository.name}") + end + end + end + + def down + end +end From cefa6fa68bd3ac84b34cab5b1d2db885720aae1f Mon Sep 17 00:00:00 2001 From: p31729568文库发布
++ <%= link_to "全部", library_applies_path(status: [:refused, :agreed]), :class => "edu-filter-cir-grey mr5 fl font-12 active", :id => "library_all_authentication", :remote => true %> + <%= link_to "同意", library_applies_path(status: :agreed), :class => "edu-filter-cir-grey mr5 fl font-12", :id => "library_agree_authentication", :remote => true %> + <%= link_to "拒绝", library_applies_path(status: :refused), :class => "edu-filter-cir-grey mr5 fl font-12", :id => "library_reject_authentication", :remote => true %> +
+ + +从我的电脑选择要上传的文档:按住CTRL可以上传多份文档
++ 文库 + 新建 +
+软件项目的开发流程视频及其需求规格软件项目的开发流程视频及其需求规格软件项目的开发流程视频及其需求规格软件项目的开发流程视频及其需求规格软件项目的开发流程视频及其需求规格
++ 张莉 + 188 浏览 + 发布时间:2018-05-15 15:45 +
+软件项目的开发流程视频及其需求规格软件项目的开发流程视频及其需求规格软件项目的开发流程视频及其需求规格软件项目的开发流程视频及其需求规格软件项目的开发流程视频及其需求规格
++ 张莉 + 188 浏览 + 发布时间:2018-05-15 15:45 +
+软件项目的开发流程视频及其需求规格软件项目的开发流程视频及其需求规格软件项目的开发流程视频及其需求规格软件项目的开发流程视频及其需求规格软件项目的开发流程视频及其需求规格
++ 张莉 + 188 浏览 + 发布时间:2018-05-15 15:45 +
+上传文档
++ 标题 + + 简明扼要介绍文档&视频所包含的主要的内容 +
++ C语言程序教学案例 + 草稿 + 返回 +
++ 私有化原因 + (请按照提示修改,并在完成编辑后重新提交) + 点击展开 +
+2018-12-25 03:58
+文档&视频的任何位置(包括文档标题、简介、文档等),都不允许出现任何有推广或宣传目的内容,如电话号码、电子邮箱地址、即时通讯工具号码等具体联系信息以及广告宣传语等,其中被警告多次而仍然添加广告内容的用户会被判定为广告用户,将接受封号处罚。
+2018-12-25 03:58
+文档&视频的任何位置(包括文档标题、简介、文档等),都不允许出现任何有推广或宣传目的内容,如电话号码、电子邮箱地址、即时通讯工具号码等具体联系信息宣传语等,其中被警告多次而仍然添加广告内容的用户会被判定为广告用户,将接受封号处罚。
++ 详情 + 编辑 +
+