tenon 1.0.36 → 1.0.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/assets/images/tenon/tenon-content/FourColumnText.png +0 -0
- data/app/assets/images/tenon/tenon-content/FourColumnText_hover.png +0 -0
- data/app/models/tenon/tenon_content/row_types/four_column_text.rb +18 -0
- data/app/models/tenon/tenon_content/row_types.rb +2 -1
- data/app/views/tenon/tenon_content/row_types/display/_four_column_text.html.haml +5 -0
- data/app/views/tenon/tenon_content/row_types/form/_four_column_text.html.haml +7 -0
- data/lib/tenon/version.rb +1 -1
- metadata +8 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5f64b9d388271cb1f23085f97a192108244e5c7a
|
4
|
+
data.tar.gz: 14773f1c00c0d4a0d983188cbb85ad2331b776fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f4504ad9026d286227afe9d59e95d19cbef5fedde3668402846da7ebb7a7ac2f9bf63d232ead56a559df2b58bcab543c9ea380bcc45936aee4b631e1a1d4cf20
|
7
|
+
data.tar.gz: 357bed1f3e3a1403f1c74cd6d764bc5b9c9a0cdc0007d816cbc2bcd8818fcdd45e1cdd2039c1ae31ad70a0d2dfd15fc8c83294e2229b4b34d4a45f8c0c0de5f9
|
Binary file
|
Binary file
|
@@ -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
|
-
'
|
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,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
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.
|
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
|