onebox 1.8.66 → 1.8.67
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/lib/onebox/engine/google_photos_onebox.rb +2 -2
- data/lib/onebox/version.rb +1 -1
- 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: 852821c1793b34f5239b51d65cba8c1afa15167f53efb2c9383e2873cfd92acb
|
|
4
|
+
data.tar.gz: 33e908e022f1df4d2653cf30d1f13f99f6fe215842e940b80b004a78ae2af81a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c04041b664eb183f2c822315ae1b95fb48a15865b55dea17857a80df4c87f1dedad6a77db39251e002e8adb4c65f567899f549b9af0f29e592d480dab369cb37
|
|
7
|
+
data.tar.gz: 7499c8994ffc0f28db827a19280251f968e8357259dd08efb82583abf9f5258205f17ced26cf5e4f226feaa0c4ef2672649d4f76dd733ee05201353ad7f2d289
|
|
@@ -30,14 +30,14 @@ module Onebox
|
|
|
30
30
|
def album_html(og)
|
|
31
31
|
escaped_url = ::Onebox::Helpers.normalize_url_for_output(url)
|
|
32
32
|
escaped_src = ::Onebox::Helpers.normalize_url_for_output(get_secure_link(og[:image]))
|
|
33
|
-
album_title = "[
|
|
33
|
+
album_title = Onebox::Helpers::blank?(og[:description]) ? og[:title].strip : "[#{og[:description].strip}] #{og[:title].strip}"
|
|
34
34
|
|
|
35
35
|
<<-HTML
|
|
36
36
|
<div class='onebox google-photos-album'>
|
|
37
37
|
<a href='#{escaped_url}' target='_blank'>
|
|
38
38
|
<span class='outer-box' style='width:#{og[:image_width]}px'>
|
|
39
39
|
<span class='inner-box'>
|
|
40
|
-
<span class='album-title'>#{album_title}</span>
|
|
40
|
+
<span class='album-title'>#{Onebox::Helpers.truncate(album_title, 80)}</span>
|
|
41
41
|
</span>
|
|
42
42
|
</span>
|
|
43
43
|
<img src='#{escaped_src}' #{Helpers.title_attr(og)} height='#{og[:image_height]}' width='#{og[:image_width]}'>
|
data/lib/onebox/version.rb
CHANGED