blacklight-gallery 3.2.0 → 3.3.0

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: 6fa835b95df717be0278b6031180faaca3bf3ed4ba24750d28d40f83e87ae1ab
4
- data.tar.gz: d2ee6eb17f865fe2c86dacd146b961c4c11b79275808a7c123639e69cc749f9e
3
+ metadata.gz: b3a18f9fb266e50ea51b326f0a0ef67ef6cfbd3fb7ae999004575e18d849bdfb
4
+ data.tar.gz: 2c3b270a4e50b5fc9058b60d2fce4682da9c4c9d5dcab93ae1c83811843ae586
5
5
  SHA512:
6
- metadata.gz: d8ccda7a52197a151cee67a6ecb8b131b5cfbe6242ad822fcb7f16a103993757366d36c533ac788c7ab09063b38e29eee52a1bd6a143b3215ba89cadc4075311
7
- data.tar.gz: c1392ebf0be147afdfcefb9fa929c4115f784854c64bf1342573bee8e2ab374f206394c1f098f89c886277d4840e207edab8ba7017d0f6a840c4ab0ae31ba913
6
+ metadata.gz: 616b9e895bbfb120fb2d61f51b19d953babb516aa4df4dbb8b36bb745f34b35b6fa944dbb873ef679dfa097aa033ab189651a80643e0b3ce6e4e9cc54a2bb378
7
+ data.tar.gz: 4a05826269a68efef37879ecbd745b53e8cf246c3b15018bdb2b082560774eaeab34c35319913da02055ac102bc5f19fbe8334f336ca81a5fa6f9c504c35af15
@@ -1,5 +1,6 @@
1
+ <% view_config = local_assigns[:view_config] || blacklight_config&.view_config(document_index_view_type) %>
1
2
  <div class="container">
2
- <div id="documents" class="<%= (Array(blacklight_config.view_config(document_index_view_type).classes || 'row-cols-2 row-cols-md-3') + ["row documents-#{document_index_view_type}"]).join(' ') %>">
3
- <%= render documents, as: :document %>
3
+ <div id="documents" class="<%= (Array(view_config.classes || 'row-cols-2 row-cols-md-3') + ["row documents-#{view_config.key}"]).join(' ') %>">
4
+ <%= render documents, as: :document, view_config: view_config %>
4
5
  </div>
5
6
  </div>
@@ -1,3 +1,4 @@
1
- <div id="documents" class="<%= (Array(blacklight_config.view_config(document_index_view_type).classes) + ["documents-#{document_index_view_type}"]).join(' ') %>">
2
- <%= render documents, as: :document %>
1
+ <% view_config = local_assigns[:view_config] || blacklight_config&.view_config(document_index_view_type) %>
2
+ <div id="documents" class="<%= (Array(view_config.classes) + ["documents-#{view_config.key}"]).join(' ') %>">
3
+ <%= render documents, as: :document, view_config: view_config %>
3
4
  </div>
@@ -1,6 +1,8 @@
1
- <div id="documents" class="<%= (Array(blacklight_config.view_config(document_index_view_type).classes) + ["documents-#{document_index_view_type}"]).join(' ') %>">
1
+ <% view_config = local_assigns[:view_config] || blacklight_config&.view_config(document_index_view_type) %>
2
+
3
+ <div id="documents" class="<%= (Array(view_config.classes) + ["documents-#{view_config.key}"]).join(' ') %>">
2
4
  <div class="grid">
3
- <%= render((blacklight_config.view_config(document_index_view_type).preview_component || Blacklight::Gallery::SlideshowPreviewComponent).with_collection(documents)) %>
5
+ <%= render((view_config.preview_component || Blacklight::Gallery::SlideshowPreviewComponent).with_collection(documents)) %>
4
6
  </div>
5
7
 
6
8
  <%= render layout: 'slideshow_modal' do %>
@@ -1,5 +1,5 @@
1
1
  module Blacklight
2
2
  module Gallery
3
- VERSION = "3.2.0"
3
+ VERSION = "3.3.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blacklight-gallery
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.0
4
+ version: 3.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Beer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-04-22 00:00:00.000000000 Z
11
+ date: 2021-04-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails