scrivito_pdf_widget 1.0.14 → 1.0.15

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
  SHA1:
3
- metadata.gz: b606644d5dfd3997c43c62cfa5af95add7d637a5
4
- data.tar.gz: 02a697ba89dc0b76bc61f541f0eb1a7d9becbc70
3
+ metadata.gz: 432d34faad6f28832549f3200ef7661db994550a
4
+ data.tar.gz: cbe937565ad53ddcf52fac26b0d9b8b2cde1e388
5
5
  SHA512:
6
- metadata.gz: 1cf73d8a560a22d33969fe2708b135b1d04fa15ecc22776cbb5f00f8c864cf599cfa2f9f9a4f8bc91265d30a7a2a5a1f47461ccf2beed6f7048c6b2f3172509b
7
- data.tar.gz: a2b02c395233fe126a1ae54efd5c39fe802892d07968b6c07b65fbb4ddd71bdb5ad9c53207957e94fbee5c21ea74362c7a6aa29978907afa524e62308becb98d
6
+ metadata.gz: 75c3eab034daaabc585180a2851dc4d3961c46000a2eeba51085e4e220ff5fe9d3c52132b154a78e19c470b2be402169c61e63daa219fcb033cfbf855efcc88e
7
+ data.tar.gz: 152994e9c539f79c8a43928effc3c156febe5683fd57332278437987a4bd935bf817df8c36ed7042cbf470e709f7463f81358a7a33b658d229dff26c4960d7e2
@@ -1,4 +1,11 @@
1
- <div class="inline-pdf" data-url="<%= pdf.url_to_pdf %>">
1
+ <div class="inline-pdf" data-url="<%= pdf.url_to_pdf %>" itemscope="itemsope" itemtype="http://schema.org/MediaObject">
2
+ <meta itemprop="contentUrl" value="<%= pdf.url_to_pdf %>"/>
3
+ <meta itemprop="contentSize" value="<%= number_to_human_size(pdf.binary_length) %>"/>
4
+ <meta itemprop="encodingFormat" value="pdf"/>
5
+
6
+ <meta itemprop="name" value="<%= pdf.title %>"/>
7
+ <meta itemprop="description" value="<%= pdf.description %>"/>
8
+
2
9
  <canvas></canvas>
3
10
  <div class="pdf-bar">
4
11
  <div class="button pdf-first">
@@ -1,2 +1,11 @@
1
- <h4>Select PDF</h4>
2
- <%= scrivito_tag(:div, widget, :pdf, data: {filter: PdfWidget.filter}) %>
1
+ <%= scrivito_details_for 'PDF' do %>
2
+ <%= scrivito_tag(:div, widget, :pdf, data: {filter: PdfWidget.filter}) %>
3
+ <% end %>
4
+
5
+ <%= scrivito_details_for 'Title' do %>
6
+ <%= scrivito_tag(:div, widget, :title %>
7
+ <% end %>
8
+
9
+ <%= scrivito_details_for 'Description' do %>
10
+ <%= scrivito_tag(:div, widget, :description %>
11
+ <% end %>
@@ -1,3 +1,3 @@
1
1
  module ScrivitoPdfWidget
2
- VERSION = "1.0.14"
2
+ VERSION = "1.0.15"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scrivito_pdf_widget
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.14
4
+ version: 1.0.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scrivito
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-21 00:00:00.000000000 Z
11
+ date: 2015-06-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler