diff --git a/app/controllers/version_releases_controller.rb b/app/controllers/version_releases_controller.rb index 38b375b17..e11ab4e4f 100644 --- a/app/controllers/version_releases_controller.rb +++ b/app/controllers/version_releases_controller.rb @@ -3,7 +3,7 @@ class VersionReleasesController < ApplicationController before_action :load_repository before_action :set_user before_action :require_login, except: [:index, :show] - before_action :check_release_authorize, except: [:index, :show] + before_action :check_release_authorize, except: [:index, :show, :download] before_action :find_version , only: [:show, :edit, :update, :destroy] def index diff --git a/app/queries/admins/glcc_examine_material.rb b/app/queries/admins/glcc_examine_material.rb index 4e8f2bea7..6f9213ddc 100644 --- a/app/queries/admins/glcc_examine_material.rb +++ b/app/queries/admins/glcc_examine_material.rb @@ -13,11 +13,8 @@ class Admins::GlccExamineMaterial < ApplicationQuery materials = GlccMediumTermExamineMaterial.all # term - term = params[:term] || [1,2] - if term.present? - materials = materials.where(term: term) - end - #year + materials = materials.where(term: params[:term]) if params[:term].present? + #year year = if params[:date] params[:date][:year] end diff --git a/app/views/admins/glcc_pr_check/index.html.erb b/app/views/admins/glcc_pr_check/index.html.erb index a70a09f6e..56e27b9d2 100644 --- a/app/views/admins/glcc_pr_check/index.html.erb +++ b/app/views/admins/glcc_pr_check/index.html.erb @@ -2,7 +2,7 @@ <%= form_tag(admins_glcc_pr_check_index_path, method: :get, class: 'form-inline search-form flex-1', remote: true) do %>
- <% status_options = [['中期考核',1], ['结项考核', 2]] %> + <% status_options = [['全部',''],['中期考核',1], ['结项考核', 2]] %> <%= select_tag(:term, options_for_select(status_options), class: 'form-control') %>
@@ -22,7 +22,7 @@ <%= form_tag(send_mail_admins_glcc_pr_check_index_path, method: :post, class: 'form-inline search-form flex-1', remote: true) do %>
- <% status_options = [['中期考核',1], ['结项考核', 2]] %> + <% status_options = [['全部',''],['中期考核',1], ['结项考核', 2]] %> <%= select_tag(:term, options_for_select(status_options), class: 'form-control') %>
diff --git a/app/views/settings/show.json.jbuilder b/app/views/settings/show.json.jbuilder index c3e515fd2..db39d1dff 100644 --- a/app/views/settings/show.json.jbuilder +++ b/app/views/settings/show.json.jbuilder @@ -31,7 +31,7 @@ json.setting do json.name default_setting.name json.nav_logo_url default_setting.nav_logo_url&.[](1..-1) json.login_logo_url default_setting.login_logo_url&.[](1..-1) - json.tab_logo_url default_setting.tab_logo_url&.[](1..-1) + json.tab_logo_url default_setting.tab_logo_url.present? ? default_setting.tab_logo_url&.[](1..-1) : "favicon.ico" json.site_page_deploy_domain @deploy_domain json.subject_banner_url default_setting.subject_banner_url&.[](1..-1)