blacklight-spotlight 3.0.0 → 3.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 744fbdb9eab230da1278b056d9e86e5474e42641e7392cc2d3e0f1a45c9639bb
4
- data.tar.gz: 99b069606c5854c4f7361a14d05f7ac4716bf61250e1d1c215094754474a6088
3
+ metadata.gz: aa6373c3275db7c952f719176557baa81d7f21818746c68abe7b8d1bfbbdb0c7
4
+ data.tar.gz: 789394e88efa3b2db41013c109902e552436ae9303aaaab70e3a81c846b7ea25
5
5
  SHA512:
6
- metadata.gz: 190fb6c64ce2200ad5123f94fc10f6c9490053eb2b4229cdbf96fd4b82897b2b3a8b1977a597f49f7a6b58a0b84ef3eff2e5157210f4d9f3f0731f368259e089
7
- data.tar.gz: 4cd54b3fbd339222e04dab49f1c7c3072901034f38fe86202759a601ec8f80a122546a6a1feb21f53c5246e07527b6df87c8656396752cb71c2ca68b524b923d
6
+ metadata.gz: dcd66ee6d299ec878775b8377adbc6a724de13f39ecafe8f3250f96b8accacbd77d64883e70a1503827838098450cb1036d33aee17ed2563227fd85486306e55
7
+ data.tar.gz: '04726186bf0f0c89c2a4d22b0bb7bca1b82ad04c662522565b3eceacacd0d44d71b2313280922b9ea7d23ef51f75f5d18ab830052e8d8d40abb6dd96d925d71f'
@@ -65,7 +65,8 @@ module Spotlight
65
65
  @page.last_edited_by = @page.created_by = current_user
66
66
 
67
67
  if @page.save
68
- redirect_to [spotlight, @page.exhibit, page_collection_name], notice: t(:'helpers.submit.page.created', model: @page.class.model_name.human.downcase)
68
+ redirect_to [spotlight, @page.exhibit, page_collection_name.to_sym],
69
+ notice: t(:'helpers.submit.page.created', model: @page.class.model_name.human.downcase)
69
70
  else
70
71
  render action: 'new'
71
72
  end
@@ -86,7 +87,7 @@ module Spotlight
86
87
  def destroy
87
88
  @page.destroy
88
89
 
89
- redirect_to [spotlight, @page.exhibit, page_collection_name], flash: { html_safe: true }, notice: undo_notice(:destroyed)
90
+ redirect_to [spotlight, @page.exhibit, page_collection_name.to_sym], flash: { html_safe: true }, notice: undo_notice(:destroyed)
90
91
  end
91
92
 
92
93
  def update_all
@@ -1,5 +1,5 @@
1
1
  <%= curation_page_title t(:"spotlight.pages.index.#{page_collection_name}.header") %>
2
- <%= bootstrap_form_for @exhibit, url: polymorphic_path([:update_all, @exhibit, page_collection_name]), layout: :horizontal, control_col: 'col-sm-10', html: {:'data-form-observer' => true} do |f| %>
2
+ <%= bootstrap_form_for @exhibit, url: polymorphic_path([:update_all, @exhibit, page_collection_name.to_sym]), layout: :horizontal, control_col: 'col-sm-10', html: {:'data-form-observer' => true} do |f| %>
3
3
 
4
4
  <%= render partial: 'header', locals: {f: f} %>
5
5
  <h2 class="mt-4"><%= t :'.pages_header' %></h2>
@@ -20,7 +20,7 @@
20
20
  </div>
21
21
  <%- end -%>
22
22
  <div>
23
- <%= form_for @page, url: spotlight.polymorphic_path([@exhibit, page_collection_name]), html: {class: "expanded-add-button"} do |f|%>
23
+ <%= form_for @page, url: spotlight.polymorphic_path([@exhibit, page_collection_name.to_sym]), html: {class: "expanded-add-button"} do |f|%>
24
24
  <a href='#add-new' class="btn btn-primary" data-turbolinks="false" data-expanded-add-button="true" data-field-target="[data-title-field]">
25
25
  <%= t(:'.new_page') %> <%= blacklight_icon('chevron_right') %>
26
26
  <span data-title-field="true" class="input-field">
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Spotlight
4
- VERSION = '3.0.0'
4
+ VERSION = '3.0.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blacklight-spotlight
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Beer
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2021-05-07 00:00:00.000000000 Z
14
+ date: 2021-05-11 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: activejob-status