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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 425993e4a8e744ae8b4c625abace421b4b70b4ca
4
- data.tar.gz: e71ff5306a2bd36271ddf094f3e37b6a62d69299
3
+ metadata.gz: 0ea105c44d8ef3c887cb5010b8a6ff5cd1689865
4
+ data.tar.gz: b8bed1565817a8c087b75267b50726e4c4878bc1
5
5
  SHA512:
6
- metadata.gz: c964faf4a617c59851867f55c65cd0252964d1c54f6a7ef0d82cc08990ba95dbdc01e5e13f6f6a416fee59c9eef4ccfbb059c24ee1848ed50abbc9c0ee49a179
7
- data.tar.gz: bb9079d7e3db90190113dd0b0ca0953f10d7b496d3858e076cfe3632d4a0773d73629c731358726b5f5bdddde68748abf8231ad34a2354ff151ec69c6ae8d9d5
6
+ metadata.gz: 4eaa3f5426c888a994db6a1af79ddef99d49e03a50f85c6c9462d3a6db52e594084cf64121e3f3b9bbc3318d343592e687fcaec2d3429a1167ca05d043d31003
7
+ data.tar.gz: c4d21b544ffdef3e828322adf83e5748e27f7628b34ed212a27679fda5da843b87f94ee177415f75489aeb19040e547cbcf39ece71ab917de25905061606a7cd
data/README.md CHANGED
@@ -43,3 +43,5 @@ en:
43
43
  show_facepile: Show Facepile
44
44
  show_posts: Show Posts
45
45
  hide_cta: Hide CTA
46
+ no_facebook_url: No type or url is present. Insert one in details view.
47
+ ```
@@ -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.type', default: 'Url') do %>
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
- <%= render "facebook_widget/#{widget.type}", widget: widget %>
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('widget_preview_facebook.png') do %>
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 %>
@@ -1,3 +1,3 @@
1
1
  module ScrivitoFacebookWidget
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
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
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-08-22 00:00:00.000000000 Z
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/widget_preview_facebook.png
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