scrivito_rich_snippet_widget 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +129 -0
  3. data/Rakefile +35 -0
  4. data/app/assets/images/widgets/scrivito_rich_snippet_widget.png +0 -0
  5. data/app/assets/javascripts/scrivito_rich_snippet_widget.js +41 -0
  6. data/app/models/rich_snippet/creative_work.rb +88 -0
  7. data/app/models/rich_snippet/event.rb +70 -0
  8. data/app/models/rich_snippet/job_posting.rb +47 -0
  9. data/app/models/rich_snippet/offer.rb +41 -0
  10. data/app/models/rich_snippet/organization.rb +33 -0
  11. data/app/models/rich_snippet/person.rb +70 -0
  12. data/app/models/rich_snippet/postal_address.rb +33 -0
  13. data/app/models/rich_snippet/product.rb +40 -0
  14. data/app/models/rich_snippet/recipe.rb +69 -0
  15. data/app/models/rich_snippet/thing.rb +43 -0
  16. data/app/models/rich_snippet_widget.rb +20 -0
  17. data/app/views/rich_snippet/creative_work/_details.html.erb +136 -0
  18. data/app/views/rich_snippet/creative_work/details.html.erb +1 -0
  19. data/app/views/rich_snippet/event/_details.html.erb +39 -0
  20. data/app/views/rich_snippet/event/details.html.erb +1 -0
  21. data/app/views/rich_snippet/job_posting/_details.html.erb +59 -0
  22. data/app/views/rich_snippet/job_posting/details.html.erb +1 -0
  23. data/app/views/rich_snippet/offer/_details.html.erb +35 -0
  24. data/app/views/rich_snippet/offer/details.html.erb +1 -0
  25. data/app/views/rich_snippet/organization/_details.html.erb +39 -0
  26. data/app/views/rich_snippet/organization/details.html.erb +1 -0
  27. data/app/views/rich_snippet/person/_details.html.erb +79 -0
  28. data/app/views/rich_snippet/person/details.html.erb +1 -0
  29. data/app/views/rich_snippet/postal_address/_details.html.erb +39 -0
  30. data/app/views/rich_snippet/postal_address/details.html.erb +1 -0
  31. data/app/views/rich_snippet/product/_details.html.erb +55 -0
  32. data/app/views/rich_snippet/product/details.html.erb +1 -0
  33. data/app/views/rich_snippet/recipe/_details.html.erb +91 -0
  34. data/app/views/rich_snippet/recipe/details.html.erb +1 -0
  35. data/app/views/rich_snippet/thing/_details.html.erb +17 -0
  36. data/app/views/rich_snippet_widget/details.html.erb +11 -0
  37. data/app/views/rich_snippet_widget/show.html.erb +21 -0
  38. data/app/views/rich_snippet_widget/thumbnail.html.erb +3 -0
  39. data/config/routes.rb +2 -0
  40. data/lib/scrivito_rich_snippet_widget.rb +5 -0
  41. data/lib/scrivito_rich_snippet_widget/engine.rb +5 -0
  42. data/lib/scrivito_rich_snippet_widget/version.rb +3 -0
  43. data/lib/tasks/scrivito_rich_snippet_widget_tasks.rake +4 -0
  44. metadata +100 -0
@@ -0,0 +1 @@
1
+ <%= render 'rich_snippet/creative_work/details', obj: @obj %>
@@ -0,0 +1,39 @@
1
+ <%= render 'rich_snippet/thing/details', obj: obj, url_is_mandatory: true %>
2
+
3
+ <%= scrivito_details_for "Event attributes" do %>
4
+ <%= scrivito_details_for 'Start date<small>This field is mandatory</small>'.html_safe do %>
5
+ <%= scrivito_tag :div, obj, :start_date %>
6
+ <% end %>
7
+
8
+ <%= scrivito_details_for 'End date !' do %>
9
+ <%= scrivito_tag :div, obj, :end_date %>
10
+ <% end %>
11
+
12
+ <%= scrivito_details_for 'In language' do %>
13
+ <%= scrivito_tag :div, obj, :in_language %>
14
+ <% end %>
15
+
16
+ <%= scrivito_details_for 'Organizer' do %>
17
+ <%= scrivito_tag :div, obj, :organizer, data: {scrivito_editors_filter_context: {rich_snippet_filter: ['Person', 'Organization']}} %>
18
+ <% end %>
19
+
20
+ <%= scrivito_details_for 'Offers !' do %>
21
+ <%= scrivito_tag :div, obj, :offers, data: {scrivito_editors_filter_context: {rich_snippet_filter: ['Offer']}} %>
22
+ <% end %>
23
+
24
+ <%= scrivito_details_for 'Location *' do %>
25
+ <%= scrivito_tag :div, obj, :location, data: {scrivito_editors_filter_context: {rich_snippet_filter: ['PostalAddress']}} %>
26
+ <% end %>
27
+
28
+ <%= scrivito_details_for 'Performers' do %>
29
+ <%= scrivito_tag :div, obj, :performers, data: {scrivito_editors_filter_context: {rich_snippet_filter: ['Person']}} %>
30
+ <% end %>
31
+
32
+ <%= scrivito_details_for 'Sub events' do %>
33
+ <%= scrivito_tag :div, obj, :sub_events, data: {scrivito_editors_filter_context: {rich_snippet_filter: ['Event']}} %>
34
+ <% end %>
35
+
36
+ <%= scrivito_details_for 'Super events' do %>
37
+ <%= scrivito_tag :div, obj, :super_event, data: {scrivito_editors_filter_context: {rich_snippet_filter: ['Event']}} %>
38
+ <% end %>
39
+ <% end %>
@@ -0,0 +1 @@
1
+ <%= render 'rich_snippet/event/details', obj: @obj %>
@@ -0,0 +1,59 @@
1
+ <%= render 'rich_snippet/thing/details', obj: obj, url_is_mandatory: true %>
2
+
3
+ <%= scrivito_details_for "Event attributes" do %>
4
+ <%= scrivito_details_for 'Base salery' do %>
5
+ <%= scrivito_tag :div, obj, :base_salary %>
6
+ <% end %>
7
+
8
+ <%= scrivito_details_for 'Date posted' do %>
9
+ <%= scrivito_tag :div, obj, :date_posted %>
10
+ <% end %>
11
+
12
+ <%= scrivito_details_for 'Education requirements' do %>
13
+ <%= scrivito_tag :div, obj, :education_requirements %>
14
+ <% end %>
15
+
16
+ <%= scrivito_details_for 'Employment type' do %>
17
+ <%= scrivito_tag :div, obj, :employment_type %>
18
+ <% end %>
19
+
20
+ <%= scrivito_details_for 'Experience requirements' do %>
21
+ <%= scrivito_tag :div, obj, :experience_requirements %>
22
+ <% end %>
23
+
24
+ <%= scrivito_details_for 'Hiring organization' do %>
25
+ <%= scrivito_tag :div, obj, :hiring_organization, data: {scrivito_editors_filter_context: {rich_snippet_filter: ['Organization']}} %>
26
+ <% end %>
27
+
28
+ <%= scrivito_details_for 'Job benefits' do %>
29
+ <%= scrivito_tag :div, obj, :job_benefits %>
30
+ <% end %>
31
+
32
+ <%= scrivito_details_for 'Job location' do %>
33
+ <%= scrivito_tag :div, obj, :job_location, data: {scrivito_editors_filter_context: {rich_snippet_filter: ['PostalAddress']}} %>
34
+ <% end %>
35
+
36
+ <%= scrivito_details_for 'Qualifications' do %>
37
+ <%= scrivito_tag :div, obj, :qualifications %>
38
+ <% end %>
39
+
40
+ <%= scrivito_details_for 'Salary currency' do %>
41
+ <%= scrivito_tag :div, obj, :salary_currency %>
42
+ <% end %>
43
+
44
+ <%= scrivito_details_for 'Skills' do %>
45
+ <%= scrivito_tag :div, obj, :skills %>
46
+ <% end %>
47
+
48
+ <%= scrivito_details_for 'Job title' do %>
49
+ <%= scrivito_tag :div, obj, :job_title %>
50
+ <% end %>
51
+
52
+ <%= scrivito_details_for 'Valid through' do %>
53
+ <%= scrivito_tag :div, obj, :valid_through %>
54
+ <% end %>
55
+
56
+ <%= scrivito_details_for 'Work hours' do %>
57
+ <%= scrivito_tag :div, obj, :work_hours %>
58
+ <% end %>
59
+ <% end %>
@@ -0,0 +1 @@
1
+ <%= render 'rich_snippet/job_posting/details', obj: @obj %>
@@ -0,0 +1,35 @@
1
+ <%= render 'rich_snippet/thing/details', obj: obj, url_is_mandatory: false %>
2
+
3
+ <%= scrivito_details_for "Offer attributes" do %>
4
+ <%= scrivito_details_for 'Availability starts' do %>
5
+ <%= scrivito_tag :div, obj, :availability_starts %>
6
+ <% end %>
7
+
8
+ <%= scrivito_details_for 'Availability ends' do %>
9
+ <%= scrivito_tag :div, obj, :availability_ends %>
10
+ <% end %>
11
+
12
+ <%= scrivito_details_for 'Availability' do %>
13
+ <%= scrivito_tag :div, obj, :availability %>
14
+ <% end %>
15
+
16
+ <%= scrivito_details_for 'Price' do %>
17
+ <%= scrivito_tag :div, obj, :price %>
18
+ <% end %>
19
+
20
+ <%= scrivito_details_for 'Price currency' do %>
21
+ <%= scrivito_tag :div, obj, :price_currency %>
22
+ <% end %>
23
+
24
+ <%= scrivito_details_for 'Item condition' do %>
25
+ <%= scrivito_tag :div, obj, :item_condition %>
26
+ <% end %>
27
+
28
+ <%= scrivito_details_for 'Inventory level' do %>
29
+ <%= scrivito_tag :div, obj, :inventory_level, data: {scrivito_editors_filter_context: {rich_snippet_filter: ['Organization']}} %>
30
+ <% end %>
31
+
32
+ <%= scrivito_details_for 'Seller' do %>
33
+ <%= scrivito_tag :div, obj, :seller, data: {scrivito_editors_filter_context: {rich_snippet_filter: ['Organization']}} %>
34
+ <% end %>
35
+ <% end %>
@@ -0,0 +1 @@
1
+ <%= render 'rich_snippet/offer/details', obj: @obj %>
@@ -0,0 +1,39 @@
1
+ <%= render 'rich_snippet/thing/details', obj: obj, url_is_mandatory: true %>
2
+
3
+ <%= scrivito_details_for "Organization attributes" do %>
4
+ <%= scrivito_details_for 'Address' do %>
5
+ <%= scrivito_tag :div, obj, :address, data: {scrivito_editors_filter_context: {rich_snippet_filter: ['PostalAddress']}} %>
6
+ <% end %>
7
+
8
+ <%= scrivito_details_for 'Founder' do %>
9
+ <%= scrivito_tag :div, obj, :founder, data: {scrivito_editors_filter_context: {rich_snippet_filter: ['Person']}} %>
10
+ <% end %>
11
+
12
+ <%= scrivito_details_for 'Founding date' do %>
13
+ <%= scrivito_tag :div, obj, :founding_date %>
14
+ <% end %>
15
+
16
+ <%= scrivito_details_for 'Legal name' do %>
17
+ <%= scrivito_tag :div, obj, :legal_name %>
18
+ <% end %>
19
+
20
+ <%= scrivito_details_for 'Logo' do %>
21
+ <%= scrivito_tag :div, obj, :logo, data: {scrivito_editors_filter_context: {image: true }} %>
22
+ <% end %>
23
+
24
+ <%= scrivito_details_for 'Number of employees' do %>
25
+ <%= scrivito_tag :div, obj, :number_of_employees %>
26
+ <% end %>
27
+
28
+ <%= scrivito_details_for 'Parent organization' do %>
29
+ <%= scrivito_tag :div, obj, :parent_organization, data: {scrivito_editors_filter_context: {rich_snippet_filter: ['Organization']}} %>
30
+ <% end %>
31
+
32
+ <%= scrivito_details_for 'Sub organizations' do %>
33
+ <%= scrivito_tag :div, obj, :sub_organizations, data: {scrivito_editors_filter_context: {rich_snippet_filter: ['Organization']}} %>
34
+ <% end %>
35
+
36
+ <%= scrivito_details_for 'Telephone' do %>
37
+ <%= scrivito_tag :div, obj, :telephone %>
38
+ <% end %>
39
+ <% end %>
@@ -0,0 +1 @@
1
+ <%= render 'rich_snippet/organization/details', obj: @obj %>
@@ -0,0 +1,79 @@
1
+ <%= render 'rich_snippet/thing/details', obj: obj, url_is_mandatory: false %>
2
+
3
+ <%= scrivito_details_for "Person attributes" do %>
4
+ <%= scrivito_details_for 'Given name' do %>
5
+ <%= scrivito_tag :div, obj, :given_name %>
6
+ <% end %>
7
+
8
+ <%= scrivito_details_for 'Additional name' do %>
9
+ <%= scrivito_tag :div, obj, :additional_name %>
10
+ <% end %>
11
+
12
+ <%= scrivito_details_for 'Family name' do %>
13
+ <%= scrivito_tag :div, obj, :family_name %>
14
+ <% end %>
15
+
16
+ <%= scrivito_details_for 'Address' do %>
17
+ <%= scrivito_tag :div, obj, :address, data: {scrivito_editors_filter_context: {rich_snippet_filter: ['PostalAddress']}} %>
18
+ <% end %>
19
+
20
+ <%= scrivito_details_for 'Birth date' do %>
21
+ <%= scrivito_tag :div, obj, :birth_date %>
22
+ <% end %>
23
+
24
+ <%= scrivito_details_for 'Birth place' do %>
25
+ <%= scrivito_tag :div, obj, :birth_place, data: {scrivito_editors_filter_context: {rich_snippet_filter: ['PostalAddress']}} %>
26
+ <% end %>
27
+
28
+ <%= scrivito_details_for 'Death date' do %>
29
+ <%= scrivito_tag :div, obj, :death_date %>
30
+ <% end %>
31
+
32
+ <%= scrivito_details_for 'Death place' do %>
33
+ <%= scrivito_tag :div, obj, :death_place, data: {scrivito_editors_filter_context: {rich_snippet_filter: ['PostalAddress']}} %>
34
+ <% end %>
35
+
36
+ <%= scrivito_details_for 'Children' do %>
37
+ <%= scrivito_tag :div, obj, :childs, data: {scrivito_editors_filter_context: {rich_snippet_filter: ['Person']}} %>
38
+ <% end %>
39
+
40
+ <%= scrivito_details_for 'Gender' do %>
41
+ <%= scrivito_tag :div, obj, :gender %>
42
+ <% end %>
43
+
44
+ <%= scrivito_details_for 'Height' do %>
45
+ <%= scrivito_tag :div, obj, :height %>
46
+ <% end %>
47
+
48
+ <%= scrivito_details_for 'Nationality' do %>
49
+ <%= scrivito_tag :div, obj, :nationality %>
50
+ <% end %>
51
+
52
+ <%= scrivito_details_for 'mother' do %>
53
+ <%= scrivito_tag :div, obj, :mother, data: {scrivito_editors_filter_context: {rich_snippet_filter: ['Person']}} %>
54
+ <% end %>
55
+
56
+ <%= scrivito_details_for 'Father' do %>
57
+ <%= scrivito_tag :div, obj, :father, data: {scrivito_editors_filter_context: {rich_snippet_filter: ['Person']}} %>
58
+ <% end %>
59
+
60
+ <%= scrivito_details_for 'Siblings' do %>
61
+ <%= scrivito_tag :div, obj, :siblings, data: {scrivito_editors_filter_context: {rich_snippet_filter: ['Person']}} %>
62
+ <% end %>
63
+
64
+ <%= scrivito_details_for 'Telephone' do %>
65
+ <%= scrivito_tag :div, obj, :telephone %>
66
+ <% end %>
67
+
68
+ <%= scrivito_details_for 'Weight' do %>
69
+ <%= scrivito_tag :div, obj, :weight %>
70
+ <% end %>
71
+
72
+ <%= scrivito_details_for 'Work location' do %>
73
+ <%= scrivito_tag :div, obj, :work_location, data: {scrivito_editors_filter_context: {rich_snippet_filter: ['PostalAddress']}} %>
74
+ <% end %>
75
+
76
+ <%= scrivito_details_for 'Works for' do %>
77
+ <%= scrivito_tag :div, obj, :works_for, data: {scrivito_editors_filter_context: {rich_snippet_filter: ['Organization']}} %>
78
+ <% end %>
79
+ <% end %>
@@ -0,0 +1 @@
1
+ <%= render 'rich_snippet/person/details', obj: @obj %>
@@ -0,0 +1,39 @@
1
+ <%= render 'rich_snippet/thing/details', obj: obj, url_is_mandatory: false %>
2
+
3
+ <%= scrivito_details_for "Postal address attributes" do %>
4
+ <%= scrivito_details_for 'Country' do %>
5
+ <%= scrivito_tag :div, obj, :address_country %>
6
+ <% end %>
7
+
8
+ <%= scrivito_details_for 'Locality' do %>
9
+ <%= scrivito_tag :div, obj, :address_locality %>
10
+ <% end %>
11
+
12
+ <%= scrivito_details_for 'Region' do %>
13
+ <%= scrivito_tag :div, obj, :address_region %>
14
+ <% end %>
15
+
16
+ <%= scrivito_details_for 'Post Office Box Number' do %>
17
+ <%= scrivito_tag :div, obj, :post_office_box_number %>
18
+ <% end %>
19
+
20
+ <%= scrivito_details_for 'Postal Code' do %>
21
+ <%= scrivito_tag :div, obj, :postal_code %>
22
+ <% end %>
23
+
24
+ <%= scrivito_details_for 'Street Address' do %>
25
+ <%= scrivito_tag :div, obj, :street_address %>
26
+ <% end %>
27
+
28
+ <%= scrivito_details_for 'Email' do %>
29
+ <%= scrivito_tag :div, obj, :email %>
30
+ <% end %>
31
+
32
+ <%= scrivito_details_for 'Phone' do %>
33
+ <%= scrivito_tag :div, obj, :telephone %>
34
+ <% end %>
35
+
36
+ <%= scrivito_details_for 'Fax' do %>
37
+ <%= scrivito_tag :div, obj, :fax_number %>
38
+ <% end %>
39
+ <% end %>
@@ -0,0 +1 @@
1
+ <%= render 'rich_snippet/postal_address/details', obj: @obj %>
@@ -0,0 +1,55 @@
1
+ <%= render 'rich_snippet/thing/details', obj: obj, url_is_mandatory: true %>
2
+
3
+ <%= scrivito_details_for "Product attributes" do %>
4
+ <%= scrivito_details_for 'Offers' do %>
5
+ <%= scrivito_tag :div, obj, :offers, data: {scrivito_editors_filter_context: {rich_snippet_filter: ['Offer']}} %>
6
+ <% end %>
7
+
8
+ <%= scrivito_details_for 'Brand' do %>
9
+ <%= scrivito_tag :div, obj, :brand, data: {scrivito_editors_filter_context: {rich_snippet_filter: ['Organization']}} %>
10
+ <% end %>
11
+
12
+ <%= scrivito_details_for 'MPN' do %>
13
+ <%= scrivito_tag :div, obj, :mpn %>
14
+ <% end %>
15
+
16
+ <%= scrivito_details_for 'Awards' do %>
17
+ <%= scrivito_tag :div, obj, :awards %>
18
+ <% end %>
19
+
20
+ <%= scrivito_details_for 'Category' do %>
21
+ <%= scrivito_tag :div, obj, :category %>
22
+ <% end %>
23
+
24
+ <%= scrivito_details_for 'Color' do %>
25
+ <%= scrivito_tag :div, obj, :color %>
26
+ <% end %>
27
+
28
+ <%= scrivito_details_for 'Height' do %>
29
+ <%= scrivito_tag :div, obj, :height %>
30
+ <% end %>
31
+
32
+ <%= scrivito_details_for 'Width' do %>
33
+ <%= scrivito_tag :div, obj, :width %>
34
+ <% end %>
35
+
36
+ <%= scrivito_details_for 'Depth' do %>
37
+ <%= scrivito_tag :div, obj, :depth %>
38
+ <% end %>
39
+
40
+ <%= scrivito_details_for 'Weight' do %>
41
+ <%= scrivito_tag :div, obj, :weight %>
42
+ <% end %>
43
+
44
+ <%= scrivito_details_for 'Item condition' do %>
45
+ <%= scrivito_tag :div, obj, :item_condition %>
46
+ <% end %>
47
+
48
+ <%= scrivito_details_for 'Manufacturer' do %>
49
+ <%= scrivito_tag :div, obj, :manufacturer, data: {scrivito_editors_filter_context: {rich_snippet_filter: ['Organization']}} %>
50
+ <% end %>
51
+
52
+ <%= scrivito_details_for 'Release date' do %>
53
+ <%= scrivito_tag :div, obj, :release_date %>
54
+ <% end %>
55
+ <% end %>
@@ -0,0 +1 @@
1
+ <%= render 'rich_snippet/product/details', obj: @obj %>
@@ -0,0 +1,91 @@
1
+ <%= render 'rich_snippet/thing/details', obj: obj, url_is_mandatory: false %>
2
+
3
+ <%= scrivito_details_for "Product attributes" do %>
4
+ <%= scrivito_details_for 'Prep time' do %>
5
+ <%= scrivito_tag :div, obj, :prep_time %>
6
+ <% end %>
7
+
8
+ <%= scrivito_details_for 'Total time' do %>
9
+ <%= scrivito_tag :div, obj, :total_time %>
10
+ <% end %>
11
+
12
+ <%= scrivito_details_for 'Cooking time' do %>
13
+ <%= scrivito_tag :div, obj, :cook_time %>
14
+ <% end %>
15
+
16
+ <%= scrivito_details_for 'Cooking method' do %>
17
+ <%= scrivito_tag :div, obj, :cooking_method %>
18
+ <% end %>
19
+
20
+ <%= scrivito_details_for 'Recipe yield <small>Number og portions</small>'.html_safe do %>
21
+ <%= scrivito_tag :div, obj, :recipe_yield %>
22
+ <% end %>
23
+
24
+ <%= scrivito_details_for 'Recipe ingredients'.html_safe do %>
25
+ <%= scrivito_tag :div, obj, :recipe_ingredients %>
26
+ <% end %>
27
+
28
+ <%= scrivito_details_for 'Recipe cuisine' do %>
29
+ <%= scrivito_tag :div, obj, :recipe_cuisine %>
30
+ <% end %>
31
+
32
+ <%= scrivito_details_for 'Recipe category' do %>
33
+ <%= scrivito_tag :div, obj, :recipe_category %>
34
+ <% end %>
35
+
36
+ <%= scrivito_details_for 'Suitable for diet' do %>
37
+ <%= scrivito_tag :div, obj, :suitable_for_diet %>
38
+ <% end %>
39
+
40
+ <%= scrivito_details_for 'Recipe instructions' do %>
41
+ <%= scrivito_tag :div, obj, :recipe_instructions %>
42
+ <% end %>
43
+
44
+ <%= scrivito_details_for 'Author' do %>
45
+ <%= scrivito_tag :div, obj, :author, data: {scrivito_editors_filter_context: {rich_snippet_filter: ['Person']}} %>
46
+ <% end %>
47
+
48
+ <%= scrivito_details_for 'Calories <small>in calories</small>'.html_safe do %>
49
+ <%= scrivito_tag :div, obj, :calories %>
50
+ <% end %>
51
+
52
+ <%= scrivito_details_for 'Fat content <small>in g</small>'.html_safe do %>
53
+ <%= scrivito_tag :div, obj, :fat_content %>
54
+ <% end %>
55
+
56
+ <%= scrivito_details_for 'Carbohydrate content <small>in g</small>'.html_safe do %>
57
+ <%= scrivito_tag :div, obj, :carbohydrate_content %>
58
+ <% end %>
59
+
60
+ <%= scrivito_details_for 'Cholesterol content <small>in mg</small>'.html_safe do %>
61
+ <%= scrivito_tag :div, obj, :cholesterol_content %>
62
+ <% end %>
63
+
64
+ <%= scrivito_details_for 'Fiber content <small>in g</small>'.html_safe do %>
65
+ <%= scrivito_tag :div, obj, :fiber_content %>
66
+ <% end %>
67
+
68
+ <%= scrivito_details_for 'Protein content <small>in g</small>'.html_safe do %>
69
+ <%= scrivito_tag :div, obj, :protein_content %>
70
+ <% end %>
71
+
72
+ <%= scrivito_details_for 'Saturated_fat content <small>in g</small>'.html_safe do %>
73
+ <%= scrivito_tag :div, obj, :saturated_fat_content %>
74
+ <% end %>
75
+
76
+ <%= scrivito_details_for 'Serving size' do %>
77
+ <%= scrivito_tag :div, obj, :serving_size %>
78
+ <% end %>
79
+
80
+ <%= scrivito_details_for 'Sodium content <small>in g</small>'.html_safe do %>
81
+ <%= scrivito_tag :div, obj, :sodium_content %>
82
+ <% end %>
83
+
84
+ <%= scrivito_details_for 'Sugar content <small>in g</small>'.html_safe do %>
85
+ <%= scrivito_tag :div, obj, :sugar_content %>
86
+ <% end %>
87
+
88
+ <%= scrivito_details_for 'Trans fat content <small>in g</small>'.html_safe do %>
89
+ <%= scrivito_tag :div, obj, :trans_fat_content %>
90
+ <% end %>
91
+ <% end %>