From c94feea404c97c3f4167a16e996dd7935c44b97d Mon Sep 17 00:00:00 2001 From: Kirk Wang Date: Mon, 18 Dec 2023 11:38:35 -0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=B9=20Post=20review=20adjustments?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit These are adjustments made after the PR has been reviewed. --- .../admin/appearances/_theme_form.html.erb | 20 +++++++++-- app/views/hyrax/contact_form/new.html.erb | 17 +++++---- .../collections/_form_discovery.html.erb | 35 ++++++++++++------- .../hyrax/my/_collection_action_menu.html.erb | 2 -- app/views/single_signon/index.html.erb | 3 +- 5 files changed, 50 insertions(+), 27 deletions(-) diff --git a/app/views/hyrax/admin/appearances/_theme_form.html.erb b/app/views/hyrax/admin/appearances/_theme_form.html.erb index 2b60e7453..9d0a0d662 100644 --- a/app/views/hyrax/admin/appearances/_theme_form.html.erb +++ b/app/views/hyrax/admin/appearances/_theme_form.html.erb @@ -27,6 +27,22 @@
+
+
+ <% search_options = @search_themes.map { |s| [s[0], s[1], { 'data-image' => image_path("themes/search/#{s[1]}.jpg") }] } %> + <%= f.input :search_theme, label: 'Search Results Page Theme' do %> + <%= f.select :search_theme, search_options, {}, { prompt: 'Select search results page theme...', class: 'form-control' } %> + <% end %> +

Search Results Theme notes:

+
    +
  • This will select a default view for the search results page. Users can select their preferred views on the search results page that will override this selection.
  • +
+
+
+ <%= image_tag "themes/search/list_view.jpg", class: "img-fluid" %> +
+
+
<% show_options = @show_theme_names.map { |g| [g[0], g[1], { 'data-image' => image_path("themes/#{g[1]}/#{g[1]}.jpg") }] } %> @@ -45,7 +61,7 @@

- + Sign In <% end %> <% end %> @@ -18,6 +19,6 @@ <% if @identity_providers.count == 1 %> <% end %>