scrivito_seo_headline_extender 1.2.2 → 1.3.0

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: f32db35b23edb26019a9456335c41ca2864b510b
4
- data.tar.gz: 1a518c9ec15721eb84f7a089671dbb9c2c8526ba
3
+ metadata.gz: d08574cb61c4159cc516d1a968ccecec713efe36
4
+ data.tar.gz: 4fdcc8e5e4a2eb6a10cc8970f231f0357396ff63
5
5
  SHA512:
6
- metadata.gz: 08a33c99f7e1fcb411a67a1d8442659be85ce073802d3a870ee1000d5d6cd840177a0cc6c223c35c4ba6569caa27fa742fe50185410bfe9c4001b1143884ad2f
7
- data.tar.gz: 9c8d2104932ed77313c92db0832d90eaf80ddac9c6ac19c0f893a8d5aadb294eb527d40f75c88cd0ca9413d597d256d26bdfccd468ae030ffec84e9293ff4288
6
+ metadata.gz: 37aeb436f1fa3c767c879e109a82d05a1916c8946bef0c60b2f93b6f830b0581e31209bd94c0417c61c350178c52f84307e407b62e6d7f515946f4d0e7014517
7
+ data.tar.gz: b1f222141dee90a91c120ee8a3e7e61ecd2440bb2b5158ed9c3915264b4d6288dadc98706980aba5ad1b226ce42ac6f4d414fc9f538137b8ff3fa9f57a292af0
@@ -1,5 +1,6 @@
1
1
  class HeadlineWidget < Widget
2
2
  attribute :headline, :string
3
+ attribute :small, :string
3
4
  attribute :anchor, :string
4
5
  attribute :type, :enum, values: ['h1','h2','h3','h4','h5','h6'], default: 'h3'
5
6
  attribute :size, :enum, values: ['h1','h2','h3','h4','h5','h6']
@@ -2,6 +2,10 @@
2
2
  <%= scrivito_tag(:div, widget, :headline) %>
3
3
  <% end %>
4
4
 
5
+ <%= scrivito_details_for t('scrivito_headline_widget.details.small', default: 'Additional small headline') do %>
6
+ <%= scrivito_tag(:div, widget, :small) %>
7
+ <% end %>
8
+
5
9
  <%= scrivito_details_for t('scrivito_headline_widget.details.type', default: 'Type') do %>
6
10
  <%= scrivito_tag(:div, widget, :type) %>
7
11
  <% end %>
@@ -1 +1,11 @@
1
- <%= scrivito_tag(widget.tag, widget, :headline, class: widget.css_class, id: widget.anchor.presence) %>
1
+ <%= content_tag widget.tag, class: widget.css_class, id: widget.anchor.presence do %>
2
+ <% if scrivito_in_editable_view? %>
3
+ <%= scrivito_tag(:span, widget, :headline) %>
4
+ <%= scrivito_tag(:small, widget, :small) %>
5
+ <% else %>
6
+ <%= widget.headline %>
7
+ <% if widget.small.present? %>
8
+ <%= content_tag :small, widget.small %>
9
+ <% end %>
10
+ <% end %>
11
+ <% end %>
@@ -1,3 +1,3 @@
1
1
  module ScrivitoSeoHeadlineExtender
2
- VERSION = "1.2.2"
2
+ VERSION = "1.3.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scrivito_seo_headline_extender
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ version: 1.3.0
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-30 00:00:00.000000000 Z
11
+ date: 2017-01-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: scrivito_sdk
@@ -65,7 +65,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
65
65
  version: '0'
66
66
  requirements: []
67
67
  rubyforge_project:
68
- rubygems_version: 2.4.5
68
+ rubygems_version: 2.5.1
69
69
  signing_key:
70
70
  specification_version: 4
71
71
  summary: Scrivito Widget for a headline with seo features