tenon 1.0.36 → 1.0.37

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: 32128450502461c648732cf320fd777b6e69485e
4
- data.tar.gz: ccef8f6f5c8e7f052cee4a466b7469473bcbbaef
3
+ metadata.gz: 5f64b9d388271cb1f23085f97a192108244e5c7a
4
+ data.tar.gz: 14773f1c00c0d4a0d983188cbb85ad2331b776fc
5
5
  SHA512:
6
- metadata.gz: e619ae6b7c2e25e1663411862049ce05f59380f1ea04b1d3bde3a6e3f9cf0d7936cda1cc8f17d4bedbb7960a0eddfc86bea26fc24d54213012bad97af238797e
7
- data.tar.gz: 84b2949461aee88d5e3db863ec1b6823a846c79f05390524669b8014bbd5aa946ec669665679647652348ac3118fd3f840771f8576bf83840140b1876f5a0ac4
6
+ metadata.gz: f4504ad9026d286227afe9d59e95d19cbef5fedde3668402846da7ebb7a7ac2f9bf63d232ead56a559df2b58bcab543c9ea380bcc45936aee4b631e1a1d4cf20
7
+ data.tar.gz: 357bed1f3e3a1403f1c74cd6d764bc5b9c9a0cdc0007d816cbc2bcd8818fcdd45e1cdd2039c1ae31ad70a0d2dfd15fc8c83294e2229b4b34d4a45f8c0c0de5f9
@@ -0,0 +1,18 @@
1
+ module Tenon
2
+ module TenonContent
3
+ module RowTypes
4
+ class FourColumnText < TenonContent::RowTypes::Base
5
+ class << self
6
+ def add_pieces_to(row)
7
+ if row.pieces.empty?
8
+ row.pieces.build(piece_type: 'Text', position: 0)
9
+ row.pieces.build(piece_type: 'Text', position: 1)
10
+ row.pieces.build(piece_type: 'Text', position: 2)
11
+ row.pieces.build(piece_type: 'Text', position: 3)
12
+ end
13
+ end
14
+ end
15
+ end
16
+ end
17
+ end
18
+ end
@@ -8,8 +8,9 @@ module Tenon
8
8
  'Two Images' => 'TwoColumnImage',
9
9
  'Three Columns of Text' => 'ThreeColumnText',
10
10
  'Three Images' => 'ThreeColumnImage',
11
- 'Embedded Content' => 'FullWidthEmbeddedContent',
11
+ 'Four Columns of Text' => 'FourColumnText',
12
12
  'Four Images' => 'FourColumnImage',
13
+ 'Embedded Content' => 'FullWidthEmbeddedContent',
13
14
  'Wrapped Image with Text' => 'LeftWrappedImageWithText',
14
15
  'Image and Text (No Wrap)' => 'LeftImageRightText',
15
16
  'Two Column Image and Text' => 'TwoColumnImageAndText',
@@ -0,0 +1,5 @@
1
+ .four-column-text.multi-text
2
+ - row.pieces.each do |piece|
3
+ .tn-tc-piece.three{class: cycle('', '', '', 'omega')}
4
+ = render "tenon/tenon_content/piece_types/display/text", piece: piece
5
+ .spacer
@@ -0,0 +1,7 @@
1
+ .four-column-text
2
+ = f.hidden_field :list_order
3
+ = f.hidden_field :row_type
4
+ = f.fields_for :pieces do |piece|
5
+ .tn-tc-piece.three{class: cycle('', '', '', 'omega')}
6
+ = render "tenon/tenon_content/piece_types/form/text", f: piece, position: piece.object.position
7
+ .spacer
data/lib/tenon/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Tenon
2
- VERSION = '1.0.36'
2
+ VERSION = '1.0.37'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tenon
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.36
4
+ version: 1.0.37
5
5
  platform: ruby
6
6
  authors:
7
7
  - factor[e] design initiative
@@ -893,6 +893,8 @@ files:
893
893
  - app/assets/images/tenon/tenon-content/FourColumnImageAndText.png
894
894
  - app/assets/images/tenon/tenon-content/FourColumnImageAndText_hover.png
895
895
  - app/assets/images/tenon/tenon-content/FourColumnImage_hover.png
896
+ - app/assets/images/tenon/tenon-content/FourColumnText.png
897
+ - app/assets/images/tenon/tenon-content/FourColumnText_hover.png
896
898
  - app/assets/images/tenon/tenon-content/FullWidthEmbeddedContent.png
897
899
  - app/assets/images/tenon/tenon-content/FullWidthEmbeddedContent_hover.png
898
900
  - app/assets/images/tenon/tenon-content/FullWidthImage.png
@@ -1118,6 +1120,7 @@ files:
1118
1120
  - app/models/tenon/tenon_content/row_types/base.rb
1119
1121
  - app/models/tenon/tenon_content/row_types/four_column_image.rb
1120
1122
  - app/models/tenon/tenon_content/row_types/four_column_image_and_text.rb
1123
+ - app/models/tenon/tenon_content/row_types/four_column_text.rb
1121
1124
  - app/models/tenon/tenon_content/row_types/full_width_embedded_content.rb
1122
1125
  - app/models/tenon/tenon_content/row_types/full_width_image.rb
1123
1126
  - app/models/tenon/tenon_content/row_types/full_width_text.rb
@@ -1253,6 +1256,7 @@ files:
1253
1256
  - app/views/tenon/tenon_content/piece_types/form/_text.html.haml
1254
1257
  - app/views/tenon/tenon_content/row_types/display/_four_column_image.html.haml
1255
1258
  - app/views/tenon/tenon_content/row_types/display/_four_column_image_and_text.html.haml
1259
+ - app/views/tenon/tenon_content/row_types/display/_four_column_text.html.haml
1256
1260
  - app/views/tenon/tenon_content/row_types/display/_full_width_embedded_content.html.haml
1257
1261
  - app/views/tenon/tenon_content/row_types/display/_full_width_image.html.haml
1258
1262
  - app/views/tenon/tenon_content/row_types/display/_full_width_text.html.haml
@@ -1268,6 +1272,7 @@ files:
1268
1272
  - app/views/tenon/tenon_content/row_types/display/_two_column_text.html.haml
1269
1273
  - app/views/tenon/tenon_content/row_types/form/_four_column_image.html.haml
1270
1274
  - app/views/tenon/tenon_content/row_types/form/_four_column_image_and_text.html.haml
1275
+ - app/views/tenon/tenon_content/row_types/form/_four_column_text.html.haml
1271
1276
  - app/views/tenon/tenon_content/row_types/form/_full_width_embedded_content.html.haml
1272
1277
  - app/views/tenon/tenon_content/row_types/form/_full_width_image.html.haml
1273
1278
  - app/views/tenon/tenon_content/row_types/form/_full_width_text.html.haml
@@ -1535,6 +1540,6 @@ test_files:
1535
1540
  - spec/models/tenon/tenon_content/row_spec.rb
1536
1541
  - spec/models/tenon/user_spec.rb
1537
1542
  - spec/services/tenon/redirector_spec.rb
1538
- - spec/support/request_helpers.rb
1539
- - spec/support/integration_example_group.rb
1540
1543
  - spec/spec_helper.rb
1544
+ - spec/support/integration_example_group.rb
1545
+ - spec/support/request_helpers.rb