scrivito_seo_page_extender 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: 5dae3409cb8920a355f26288a7b1dce5c0fbca54
4
- data.tar.gz: 59d9a457668d250dcced3a7f254e4b0721696aee
3
+ metadata.gz: 32163f878ae872be10cb2fbf530fa56b8a51f9e6
4
+ data.tar.gz: a2ca37249f1b2c260b607c8bbf6aaa1813085b62
5
5
  SHA512:
6
- metadata.gz: 3c89e6360d02b751789ea613b3b18cd08708087385afb0509cc6b969b18a1de77e5dc0b6ccde80b69b643d98a95328944ce2ee11c309484c06c8ff42ede8604a
7
- data.tar.gz: 7716db376a99e86cb03abca3291cdd7985a90228f94499e9fd434d7d999422c97929b5677ef323411f32147e8f0b4097adc6b0a8e924c8981c38a1e1e9d02f79
6
+ metadata.gz: 0067a6666c0232d25b5826e901e4b7b40086449781b0536f1cd9324fda6ff0dfceb6ba47027d764c83967ca195cb7fc16c6895d545b0fe29dff795affb6be679
7
+ data.tar.gz: 1ecef1dfc22fd96552b9d90cd1ec4cf21dc09b15292febba0efb703f5892d4676f16e8c08d09aa45efe6a688f52fc0679ae1dcb5d71f8ec1e97e347ab8c98186
@@ -1,7 +1,7 @@
1
1
  module MetaDataExtender
2
2
  def self.included(base)
3
3
  base.attribute :meta_description, :string
4
- base.attribute :meta_keywords, :string
4
+ base.attribute :meta_keywords, :stringlist
5
5
  base.attribute :meta_author, :string
6
6
  base.attribute :meta_publisher, :string
7
7
  base.attribute :meta_copyright, :string
@@ -1,7 +1,7 @@
1
1
  <% if @obj.respond_to?(attribute) && !@obj.send(attribute).blank? %>
2
2
  <% if name.include? 'image' %>
3
3
  <meta content="<%= @obj.send(attribute).try(:binary_url) %>" name="<%= name %>"/>
4
- <% elsif name == 'audience' || name == 'robots' %>
4
+ <% elsif name == 'audience' || name == 'robots' || name == 'keywords' %>
5
5
  <meta content="<%= @obj.send(attribute).join(',') %>" name="<%= name %>"/>
6
6
  <% else %>
7
7
  <meta content="<%= @obj.send(attribute) %>" name="<%= name %>"/>
@@ -1,9 +1,9 @@
1
1
  <%= scrivito_details_for 'Keywords' do %>
2
- <%= scrivito_tag(:div, obj, :meta_keywords, data: {editor: 'scrivito-list-editor', delimiter: ','}) %>
2
+ <%= scrivito_tag(:div, obj, :meta_keywords, data: {editor: 'scrivito-list-editor'}) %>
3
3
  <% end %>
4
4
 
5
5
  <%= scrivito_details_for 'Description' do %>
6
- <%= scrivito_tag(:div, obj, :meta_description, data: {editor: 'scrivito-textarea-editor'} ) %>
6
+ <%= scrivito_tag(:div, obj, :meta_description, data: {editor: 'scrivito-textarea-editor'}) %>
7
7
  <% end %>
8
8
 
9
9
  <%= scrivito_details_for 'Copyright' do %>
@@ -1,7 +1,4 @@
1
- <div class="alert alert-info">
2
- More informations about open graph and the attributes can be <a href="http://ogp.me/" target="_blank">found here</a>.
3
- </div>
4
- <%= scrivito_details_for 'Title of page (Meta title as fallback)' do %>
1
+ <%= scrivito_details_for 'Title' do %>
5
2
  <%= scrivito_tag(:div, obj, :og_title) %>
6
3
  <% end %>
7
4
 
@@ -44,3 +41,7 @@
44
41
  <%= scrivito_details_for 'Section' do %>
45
42
  <%= scrivito_tag(:div, obj, :og_section) %>
46
43
  <% end %>
44
+
45
+ <div class="alert alert-info">
46
+ More informations about open graph and the attributes can be <a href="http://ogp.me/" target="_blank">found here</a>.
47
+ </div>
@@ -1,7 +1,3 @@
1
- <div class="alert alert-info">
2
- More informations about twitter cards and the attributes can be <a href="https://dev.twitter.com/cards/getting-started" target="_blank">found here</a>.
3
- </div>
4
-
5
1
  <%= scrivito_details_for 'Card type' do %>
6
2
  <%= scrivito_toggle_button_editor(obj, :tc_card) %>
7
3
  <% end %>
@@ -13,14 +9,17 @@
13
9
  <li data-panel-target="#edit-twitter-card-app">For App</li>
14
10
  <li data-panel-target="#edit-twitter-card-product">For Product</li>
15
11
  <li data-panel-target="#edit-twitter-card-player">For Player</li>
12
+ <li class="inactive">Edit attributes by selected type</li>
16
13
  </ul>
17
14
 
18
15
  <div class="tab-panels">
19
16
  <div class="tab-panel active" id="edit-twitter-card-general">
20
- <%= scrivito_details_for 'Creator (must start with @)' do %>
17
+ <%= scrivito_details_for do %>
18
+ <h3>Creator <small>Twitter name of the creator of this page e.g. @gertimon</small></h3>
21
19
  <%= scrivito_tag(:div, obj, :tc_creator) %>
22
20
  <% end %>
23
- <%= scrivito_details_for 'Site' do %>
21
+ <%= scrivito_details_for do %>
22
+ <h3>Site <small>Twitter name of the company e.g. @infopark</small></h3>
24
23
  <%= scrivito_tag(:div, obj, :tc_site) %>
25
24
  <% end %>
26
25
 
@@ -125,9 +124,9 @@
125
124
  <div class="col-xs-4">
126
125
  <%= scrivito_details_for 'Dimension' do %>
127
126
  <h4>Width</h4>
128
- <%= scrivito_tag(:div, obj, :tc_width) %>
127
+ <%= scrivito_tag(:div, obj, :tc_player_width) %>
129
128
  <h4>Height</h4>
130
- <%= scrivito_tag(:div, obj, :tc_height) %>
129
+ <%= scrivito_tag(:div, obj, :tc_player_height) %>
131
130
  <% end %>
132
131
  </div>
133
132
  <div class="col-xs-4">
@@ -161,4 +160,8 @@
161
160
  </div>
162
161
  </div>
163
162
  </div>
164
- </div>
163
+ </div>
164
+
165
+ <div class="alert alert-info">
166
+ More informations about twitter cards and the attributes can be <a href="https://dev.twitter.com/cards/getting-started" target="_blank">found here</a>.
167
+ </div>
@@ -1,3 +1,3 @@
1
1
  module ScrivitoSeoPageExtender
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_seo_page_extender
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: 2015-07-15 00:00:00.000000000 Z
11
+ date: 2015-07-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler