blacklight 8.6.0 → 8.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/app/components/blacklight/document_component.rb +4 -7
- data/package.json +1 -1
- data/spec/components/blacklight/document_component_spec.rb +6 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: afd3fee02b2c13951464a573d0866db0eaf380043fa25564710e30ff3b123cf5
|
4
|
+
data.tar.gz: e89eaca552de439340a25da85e9cd17ced73352cabe6d739d5b8f903eb14214f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6eb41e7758a828af27604f1f914b3026892dd08e1d94e9b07b17e1aeef8e8c94050f2578774bdec730a09a12522513f61c2b3c021b02a6b050892e0a8de010b5
|
7
|
+
data.tar.gz: b908484c6b275c4dfffb5821b795f9ad30c1aa88e66cc5cccd343af3c2ac6fbfbc1a437ecc1b0627ea6de68c0c22780b79e9565f992caec248fc1486beebd67a
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
8.6.
|
1
|
+
8.6.1
|
@@ -129,14 +129,11 @@ module Blacklight
|
|
129
129
|
set_slot(:thumbnail, nil) unless thumbnail || show?
|
130
130
|
set_slot(:metadata, nil, fields: presenter.field_presenters, show: @show) unless metadata
|
131
131
|
set_slot(:embed, nil) unless embed
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
end
|
132
|
+
|
133
|
+
view_partials.each do |view_partial|
|
134
|
+
with_partial(view_partial) do
|
135
|
+
helpers.render_document_partial @document, view_partial, component: self, document_counter: @counter
|
137
136
|
end
|
138
|
-
else
|
139
|
-
set_slot(:partials, nil)
|
140
137
|
end
|
141
138
|
end
|
142
139
|
|
data/package.json
CHANGED
@@ -224,6 +224,12 @@ RSpec.describe Blacklight::DocumentComponent, type: :component do
|
|
224
224
|
expect(rendered).to have_content 'Partials'
|
225
225
|
end
|
226
226
|
|
227
|
+
it 'has no partials by default' do
|
228
|
+
component.render_in(view_context)
|
229
|
+
|
230
|
+
expect(component.partials?).to be false
|
231
|
+
end
|
232
|
+
|
227
233
|
context 'with before_titles' do
|
228
234
|
let(:render) do
|
229
235
|
component.render_in(view_context) do
|