From c78e45005478c2f8b0c8742c14d03cc9a1ad7b58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com> Date: Thu, 27 Jun 2019 16:26:55 +0800 Subject: [PATCH 1/9] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/shixuns/_settings_edit.html.erb | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/app/views/shixuns/_settings_edit.html.erb b/app/views/shixuns/_settings_edit.html.erb index 21ffacfb..be896706 100644 --- a/app/views/shixuns/_settings_edit.html.erb +++ b/app/views/shixuns/_settings_edit.html.erb @@ -304,6 +304,7 @@
- > +
服务配置
<% @shixun.shixun_service_configs.each do |config| %><%= config.mirror_repository.try(:type_name) %>
@@ -304,7 +304,7 @@简介
-技术平台
简介
-服务配置
- <% @shixun.shixun_service_configs.each do |config| %> -<%= config.mirror_repository.try(:type_name) %>
- -- + />
<% end %> From 7eb7e0f969951a62516c2f1ca6a3df635749580a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com> Date: Thu, 27 Jun 2019 17:51:18 +0800 Subject: [PATCH 6/9] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/shixuns_controller.rb | 1 + app/views/shixuns/_settings_edit.html.erb | 83 ++++++++++++----------- 2 files changed, 44 insertions(+), 40 deletions(-) diff --git a/app/controllers/shixuns_controller.rb b/app/controllers/shixuns_controller.rb index 0f91285b..abffd0aa 100644 --- a/app/controllers/shixuns_controller.rb +++ b/app/controllers/shixuns_controller.rb @@ -749,6 +749,7 @@ class ShixunsController < ApplicationController @main_type = MirrorRepository.published_main_mirror @small_type = MirrorRepository.published_small_mirror + respond_to do |format| format.html{render :layout => 'base_edu'} format.json diff --git a/app/views/shixuns/_settings_edit.html.erb b/app/views/shixuns/_settings_edit.html.erb index e23adfc6..34c2e551 100644 --- a/app/views/shixuns/_settings_edit.html.erb +++ b/app/views/shixuns/_settings_edit.html.erb @@ -71,7 +71,7 @@- +
<% end %> @@ -294,7 +294,7 @@服务配置
<% @shixun.shixun_service_configs.each do |config| %><%= config.mirror_repository.try(:type_name) %>
@@ -354,51 +354,52 @@