scrivito_facebook_widget 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -0
- data/app/assets/images/widgets/scrivito_facebook_widget.png +0 -0
- data/app/views/facebook_widget/details.html.erb +1 -1
- data/app/views/facebook_widget/show.html.erb +7 -1
- data/app/views/facebook_widget/thumbnail.html.erb +1 -1
- data/lib/scrivito_facebook_widget/version.rb +1 -1
- metadata +3 -3
- data/app/assets/images/widget_preview_facebook.png +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0ea105c44d8ef3c887cb5010b8a6ff5cd1689865
|
4
|
+
data.tar.gz: b8bed1565817a8c087b75267b50726e4c4878bc1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4eaa3f5426c888a994db6a1af79ddef99d49e03a50f85c6c9462d3a6db52e594084cf64121e3f3b9bbc3318d343592e687fcaec2d3429a1167ca05d043d31003
|
7
|
+
data.tar.gz: c4d21b544ffdef3e828322adf83e5748e27f7628b34ed212a27679fda5da843b87f94ee177415f75489aeb19040e547cbcf39ece71ab917de25905061606a7cd
|
data/README.md
CHANGED
Binary file
|
@@ -2,7 +2,7 @@
|
|
2
2
|
<%= scrivito_tag :div, widget, :type %>
|
3
3
|
<% end %>
|
4
4
|
|
5
|
-
<%= scrivito_details_for t('scrivito_facebook_widget.details.
|
5
|
+
<%= scrivito_details_for t('scrivito_facebook_widget.details.url', default: 'Url') do %>
|
6
6
|
<%= scrivito_tag :div, widget, :url %>
|
7
7
|
<% end %>
|
8
8
|
|
@@ -1 +1,7 @@
|
|
1
|
-
|
1
|
+
<% if widget.type.present? && widget.url.present? %>
|
2
|
+
<%= render "facebook_widget/#{widget.type}", widget: widget %>
|
3
|
+
<% else %>
|
4
|
+
<div class="alert alert-info">
|
5
|
+
<%= t('scrivito_facebook_widget.details.no_facebook_url', default: 'No type or url is present. Insert one in details view.') %>
|
6
|
+
</div>
|
7
|
+
<% end %>
|
@@ -1,3 +1,3 @@
|
|
1
|
-
<%= scrivito_thumbnail t('scrivito_facebook_widget.thumbnail.title', default: 'Facebook'), image_tag('
|
1
|
+
<%= scrivito_thumbnail t('scrivito_facebook_widget.thumbnail.title', default: 'Facebook'), image_tag('widgets/scrivito_facebook_widget.png') do %>
|
2
2
|
<%= t('scrivito_facebook_widget.thumbnail.description', default: 'Add facebook social plugins to the page') %>
|
3
3
|
<% end %>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scrivito_facebook_widget
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Scrivito
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-09-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: scrivito
|
@@ -34,7 +34,7 @@ files:
|
|
34
34
|
- LICENSE
|
35
35
|
- README.md
|
36
36
|
- Rakefile
|
37
|
-
- app/assets/images/
|
37
|
+
- app/assets/images/widgets/scrivito_facebook_widget.png
|
38
38
|
- app/assets/javascripts/scrivito_facebook_widget.js
|
39
39
|
- app/models/facebook_widget.rb
|
40
40
|
- app/views/facebook_widget/_page.html.erb
|
Binary file
|