blacklight-gallery 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/blacklight_gallery/_gallery.scss +7 -3
- data/app/assets/stylesheets/blacklight_gallery/_slideshow.scss +1 -0
- data/app/views/catalog/_document_slideshow.html.erb +1 -1
- data/app/views/catalog/_grid_slideshow.html.erb +1 -1
- data/app/views/catalog/_index_gallery.html.erb +1 -1
- data/app/views/catalog/_index_masonry.html.erb +1 -1
- data/lib/blacklight/gallery/version.rb +1 -1
- data/spec/views/catalog/_index_gallery.html.erb_spec.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 913cb13022a835407afc868fd4ddd875f40034ec639a26ea9e9fba94f89c1bfd
|
4
|
+
data.tar.gz: 4507042c61c539708cc64104c5ec65e650b6dd2e3ccbbe406ea88c17539c5eb8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d24fd936206d879b1aa8df6e30b6dbb9e9801ac3a994638c93c1a294d55e9f2d359032fbe7cb60744df7749993d37271be30f631105e093f8e75ed06a0908443
|
7
|
+
data.tar.gz: 1a58a476b12d45acd79752564bcb7474161884e7d0bf30dc9278fa61dbc6e90c010f826ca807f2e51722fb3eb9c3951baa97830f182b78f4d6898e7cd3ad6299
|
@@ -1,5 +1,5 @@
|
|
1
1
|
.view-icon-gallery {
|
2
|
-
&:before { content: "\e011"; }
|
2
|
+
&:before { content: "\e011"; }
|
3
3
|
}
|
4
4
|
|
5
5
|
.gallery {
|
@@ -26,8 +26,12 @@
|
|
26
26
|
-webkit-flex: 1 0 250px;
|
27
27
|
}
|
28
28
|
|
29
|
+
.caption {
|
30
|
+
@extend .mt-2;
|
31
|
+
}
|
32
|
+
|
29
33
|
.index_title {
|
30
|
-
|
34
|
+
@extend .h6;
|
31
35
|
}
|
32
36
|
|
33
37
|
.document-counter {
|
@@ -38,7 +42,7 @@
|
|
38
42
|
clear: left;
|
39
43
|
}
|
40
44
|
|
41
|
-
.document-metadata {
|
45
|
+
.document-metadata {
|
42
46
|
dt, dd {
|
43
47
|
float: none;
|
44
48
|
width: auto;
|
@@ -2,7 +2,7 @@
|
|
2
2
|
<div class="thumbnail">
|
3
3
|
<%= link_to '#', data: { :'slide-to' => document_counter, toggle: "modal", target: "#slideshow-modal" } do %>
|
4
4
|
<% if thumbnail_url(document) %>
|
5
|
-
<%= image_tag thumbnail_url(document) %>
|
5
|
+
<%= image_tag thumbnail_url(document), class: 'img-thumbnail' %>
|
6
6
|
<% else %>
|
7
7
|
<%= t('.missing_image', scope: [:blacklight_gallery]) %>
|
8
8
|
<% end %>
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<div class="document col-6 col-md-3">
|
2
2
|
<div class="thumbnail">
|
3
|
-
<%= render_thumbnail_tag(document, {}, :counter => document_counter_with_offset(document_counter)) %>
|
3
|
+
<%= render_thumbnail_tag(document, { class: 'img-thumbnail' }, :counter => document_counter_with_offset(document_counter)) %>
|
4
4
|
<div class="caption">
|
5
5
|
<%= render_document_partials document, blacklight_config.view_config(:gallery).partials, :document_counter => document_counter %>
|
6
6
|
</div>
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<div class="masonry document col-6 col-md-3">
|
2
2
|
<div class="thumbnail">
|
3
|
-
<%= render_thumbnail_tag(document, {}, :
|
3
|
+
<%= render_thumbnail_tag(document, { class: 'img-thumbnail' }, counter: document_counter_with_offset(document_counter)) %>
|
4
4
|
<div class="caption">
|
5
5
|
<%= render_document_partials document, blacklight_config.view_config(:masonry).partials, :document_counter => document_counter %>
|
6
6
|
</div>
|
@@ -13,7 +13,7 @@ describe "catalog/_index_gallery.html.erb", :type => :view do
|
|
13
13
|
end
|
14
14
|
|
15
15
|
it "should have thumbnail and caption" do
|
16
|
-
expect(view).to receive(:render_thumbnail_tag).with(document, {}, hash_including(:counter)).and_return('Thumbnail')
|
16
|
+
expect(view).to receive(:render_thumbnail_tag).with(document, { class: 'img-thumbnail' }, hash_including(:counter)).and_return('Thumbnail')
|
17
17
|
expect(view).to receive(:render_document_partials).with(document, ['a', 'b'], document_counter: 3).and_return('Z')
|
18
18
|
render
|
19
19
|
expect(rendered).to have_selector '.thumbnail', text: 'Thumbnail'
|
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: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Beer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-11-
|
11
|
+
date: 2019-11-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|