tenon 1.1.8 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (579) hide show
  1. checksums.yaml +4 -4
  2. data/README.rdoc +768 -69
  3. data/Rakefile +7 -13
  4. data/app/assets/javascripts/tenon/application.js +4 -0
  5. data/app/controllers/tenon/assets_controller.rb +22 -23
  6. data/app/controllers/tenon/base_controller.rb +22 -13
  7. data/app/controllers/tenon/index_controller.rb +0 -4
  8. data/app/controllers/tenon/item_versions_controller.rb +20 -8
  9. data/app/controllers/tenon/resources_controller.rb +100 -30
  10. data/app/controllers/tenon/simple_resources_controller.rb +7 -7
  11. data/app/controllers/tenon/styleguides_controller.rb +10 -0
  12. data/app/decorators/tenon/application_decorator.rb +4 -8
  13. data/app/decorators/tenon/asset_decorator.rb +0 -25
  14. data/app/filterers/tenon/generic_filterer.rb +24 -0
  15. data/app/form_builders/tenon/form_builder.rb +189 -19
  16. data/app/helpers/tenon/active_link_to_helper.rb +9 -0
  17. data/app/helpers/tenon/application_helper.rb +4 -23
  18. data/app/helpers/tenon/asset_helper.rb +2 -2
  19. data/app/helpers/tenon/back_to_index_path_helper.rb +13 -0
  20. data/app/helpers/tenon/breadcrumbs_helper.rb +33 -0
  21. data/app/helpers/tenon/flash_helper.rb +14 -0
  22. data/app/helpers/tenon/icon_helper.rb +7 -0
  23. data/app/helpers/tenon/input_block_helper.rb +25 -0
  24. data/app/helpers/tenon/item_version_helper.rb +22 -9
  25. data/app/helpers/tenon/nav_helper.rb +21 -17
  26. data/app/helpers/tenon/piece_helper.rb +2 -7
  27. data/app/helpers/tenon/platform_hints_helper.rb +3 -5
  28. data/app/helpers/tenon/styleguide_helper.rb +15 -0
  29. data/app/helpers/tenon/tenon_content_helper.rb +11 -6
  30. data/app/helpers/tenon/tenon_helper.rb +19 -9
  31. data/app/models/tenon/application_record.rb +5 -0
  32. data/app/models/tenon/asset.rb +2 -2
  33. data/app/models/tenon/item_asset.rb +1 -1
  34. data/app/models/tenon/item_version.rb +1 -1
  35. data/app/models/tenon/styleguide.rb +11 -0
  36. data/app/models/tenon/tenon_content/piece.rb +13 -13
  37. data/app/models/tenon/tenon_content/row.rb +1 -1
  38. data/app/models/tenon/tenon_content/row_types/four_column_image.rb +4 -4
  39. data/app/models/tenon/tenon_content/row_types/four_column_image_and_text.rb +8 -8
  40. data/app/models/tenon/tenon_content/row_types/four_column_text.rb +4 -4
  41. data/app/models/tenon/tenon_content/row_types/full_width_embedded_content.rb +1 -1
  42. data/app/models/tenon/tenon_content/row_types/full_width_image.rb +1 -1
  43. data/app/models/tenon/tenon_content/row_types/full_width_text.rb +1 -1
  44. data/app/models/tenon/tenon_content/row_types/left_image_right_text.rb +2 -2
  45. data/app/models/tenon/tenon_content/row_types/left_text_right_image.rb +2 -2
  46. data/app/models/tenon/tenon_content/row_types/left_wrapped_image_with_text.rb +2 -2
  47. data/app/models/tenon/tenon_content/row_types/right_wrapped_image_with_text.rb +2 -2
  48. data/app/models/tenon/tenon_content/row_types/six_column_image.rb +6 -6
  49. data/app/models/tenon/tenon_content/row_types/six_column_image_and_text.rb +12 -12
  50. data/app/models/tenon/tenon_content/row_types/three_column_image.rb +3 -3
  51. data/app/models/tenon/tenon_content/row_types/three_column_image_and_text.rb +6 -6
  52. data/app/models/tenon/tenon_content/row_types/three_column_text.rb +3 -3
  53. data/app/models/tenon/tenon_content/row_types/two_column_image.rb +2 -2
  54. data/app/models/tenon/tenon_content/row_types/two_column_image_and_text.rb +4 -4
  55. data/app/models/tenon/tenon_content/row_types/two_column_text.rb +2 -2
  56. data/app/models/tenon/tenon_content/row_types/two_column_with_background_image.rb +3 -3
  57. data/app/models/tenon/tenon_content/row_types.rb +17 -17
  58. data/app/policies/my_settings_policy.rb +2 -0
  59. data/app/policies/tenon/application_policy.rb +63 -0
  60. data/app/policies/tenon/asset_policy.rb +4 -0
  61. data/app/policies/tenon/item_version_policy.rb +4 -0
  62. data/app/serializers/item_version_serializer.rb +23 -0
  63. data/app/serializers/tenon/application_serializer.rb +37 -0
  64. data/app/serializers/tenon/asset_serializer.rb +5 -0
  65. data/app/serializers/tenon/paginating_serializer.rb +18 -0
  66. data/app/views/layouts/tenon/application.html.haml +28 -18
  67. data/app/views/tenon/assets/_form.html.haml +29 -12
  68. data/app/views/tenon/assets/crop.html.haml +13 -13
  69. data/app/views/tenon/assets/edit.html.haml +1 -12
  70. data/app/views/tenon/assets/index.html.haml +5 -19
  71. data/app/views/tenon/assets/new.html.haml +1 -0
  72. data/app/views/tenon/fields/_asset.html.haml +26 -27
  73. data/app/views/tenon/fields/_base.html.haml +7 -0
  74. data/app/views/tenon/fields/_base_inline.html.haml +4 -0
  75. data/app/views/tenon/fields/_check_box.html.haml +9 -0
  76. data/app/views/tenon/fields/_collection_select.html.haml +4 -0
  77. data/app/views/tenon/fields/_color_field.html.haml +3 -0
  78. data/app/views/tenon/fields/_date_picker.html.haml +2 -0
  79. data/app/views/tenon/fields/_date_time_picker.html.haml +6 -0
  80. data/app/views/tenon/fields/_email_field.html.haml +2 -0
  81. data/app/views/tenon/fields/_inline_check_box.html.haml +5 -0
  82. data/app/views/tenon/fields/_inline_radio_button.html.haml +5 -0
  83. data/app/views/tenon/fields/_number_field.html.haml +2 -0
  84. data/app/views/tenon/fields/_password_field.html.haml +2 -0
  85. data/app/views/tenon/fields/_phone_field.html.haml +2 -0
  86. data/app/views/tenon/fields/_radio_button.html.haml +9 -0
  87. data/app/views/tenon/fields/_rich_text.html.haml +3 -6
  88. data/app/views/tenon/fields/_select.html.haml +3 -0
  89. data/app/views/tenon/fields/_text_area.html.haml +2 -0
  90. data/app/views/tenon/fields/_text_field.html.haml +2 -0
  91. data/app/views/tenon/fields/_title_text_field.html.haml +2 -0
  92. data/app/views/tenon/fields/_url_field.html.haml +2 -0
  93. data/app/views/tenon/index/index.html.haml +8 -29
  94. data/app/views/tenon/item_assets/new.html.haml +20 -22
  95. data/app/views/tenon/item_versions/_item_version.json.jbuilder +4 -4
  96. data/app/views/tenon/item_versions/index.html.haml +14 -6
  97. data/app/views/tenon/item_versions/new.html.haml +8 -10
  98. data/app/views/tenon/settings/_contact.html.haml +14 -19
  99. data/app/views/tenon/settings/_general.html.haml +15 -11
  100. data/app/views/tenon/settings/_seo.html.haml +10 -9
  101. data/app/views/tenon/settings/show.html.haml +12 -31
  102. data/app/views/tenon/shared/_account_dropdown.html.haml +6 -0
  103. data/app/views/tenon/shared/_app_info.html.haml +5 -0
  104. data/app/views/tenon/shared/_breadcrumbs.html.haml +1 -0
  105. data/app/views/tenon/shared/_burger.html.haml +5 -0
  106. data/app/views/tenon/shared/_default_form_toolbar.html.haml +26 -0
  107. data/app/views/tenon/shared/_draft_controls.html.haml +18 -0
  108. data/app/views/tenon/shared/_i18n_language_nav.html.haml +2 -2
  109. data/app/views/tenon/shared/_main_nav.html.haml +3 -14
  110. data/app/views/tenon/shared/_platform_hints.html.haml +15 -15
  111. data/app/views/tenon/shared/_seo_fields.html.haml +8 -6
  112. data/app/views/tenon/shared/_site_title.html.haml +6 -0
  113. data/app/views/tenon/shared/_util_nav.html.haml +4 -27
  114. data/app/views/tenon/shared/_version_warning.html.haml +11 -11
  115. data/app/views/tenon/styleguides/_buttons.html.haml +118 -0
  116. data/app/views/tenon/styleguides/_colors.html.haml +59 -0
  117. data/app/views/tenon/styleguides/_forms.html.haml +4 -0
  118. data/app/views/tenon/styleguides/_icons.html.haml +21 -0
  119. data/app/views/tenon/styleguides/_typography.html.haml +27 -0
  120. data/app/views/tenon/styleguides/buttons/_colors.html.haml +43 -0
  121. data/app/views/tenon/styleguides/buttons/_styles.html.haml +59 -0
  122. data/app/views/tenon/styleguides/colors/_helpers.html.haml +48 -0
  123. data/app/views/tenon/styleguides/colors/_variables.html.haml +31 -0
  124. data/app/views/tenon/styleguides/forms/_default.html.haml +92 -0
  125. data/app/views/tenon/styleguides/forms/_html5.html.haml +31 -0
  126. data/app/views/tenon/styleguides/forms/_tenon_content.html.haml +15 -0
  127. data/app/views/tenon/styleguides/index.html.haml +52 -0
  128. data/app/views/tenon/styleguides/typography/_blockquote.html.haml +7 -0
  129. data/app/views/tenon/styleguides/typography/_inline.html.haml +8 -0
  130. data/app/views/tenon/styleguides/typography/_lists.html.haml +40 -0
  131. data/app/views/tenon/styleguides/typography/_paragraphs.html.haml +17 -0
  132. data/app/views/tenon/styleguides/typography/_small.html.haml +18 -0
  133. data/app/views/tenon/styleguides/typography/_styles.html.haml +14 -0
  134. data/app/views/tenon/styleguides/typography/_variables.html.haml +43 -0
  135. data/app/views/tenon/tenon_content/_display.html.haml +2 -2
  136. data/app/views/tenon/tenon_content/_embed_modal.html.haml +3 -3
  137. data/app/views/tenon/tenon_content/_fields.html.haml +21 -35
  138. data/app/views/tenon/tenon_content/_row.html.haml +14 -13
  139. data/app/views/tenon/tenon_content/{_builder.html.haml → _tenon_content.html.haml} +2 -2
  140. data/app/views/tenon/tenon_content/piece_types/form/_background_image.html.haml +6 -6
  141. data/app/views/tenon/tenon_content/piece_types/form/_embedded_content.html.haml +2 -1
  142. data/app/views/tenon/tenon_content/piece_types/form/_image.html.haml +37 -29
  143. data/app/views/tenon/tenon_content/row_types/display/_four_column_image.html.haml +4 -4
  144. data/app/views/tenon/tenon_content/row_types/display/_four_column_image_and_text.html.haml +3 -3
  145. data/app/views/tenon/tenon_content/row_types/display/_four_column_text.html.haml +4 -4
  146. data/app/views/tenon/tenon_content/row_types/display/_full_width_embedded_content.html.haml +3 -3
  147. data/app/views/tenon/tenon_content/row_types/display/_full_width_image.html.haml +3 -3
  148. data/app/views/tenon/tenon_content/row_types/display/_full_width_text.html.haml +3 -3
  149. data/app/views/tenon/tenon_content/row_types/display/_left_image_right_text.html.haml +8 -8
  150. data/app/views/tenon/tenon_content/row_types/display/_left_text_right_image.html.haml +7 -7
  151. data/app/views/tenon/tenon_content/row_types/display/_left_wrapped_image_with_text.html.haml +6 -6
  152. data/app/views/tenon/tenon_content/row_types/display/_right_wrapped_image_with_text.html.haml +7 -7
  153. data/app/views/tenon/tenon_content/row_types/display/_six_column_image.html.haml +4 -4
  154. data/app/views/tenon/tenon_content/row_types/display/_six_column_image_and_text.html.haml +5 -5
  155. data/app/views/tenon/tenon_content/row_types/display/_three_column_image.html.haml +4 -4
  156. data/app/views/tenon/tenon_content/row_types/display/_three_column_image_and_text.html.haml +4 -4
  157. data/app/views/tenon/tenon_content/row_types/display/_three_column_text.html.haml +4 -4
  158. data/app/views/tenon/tenon_content/row_types/display/_two_column_image.html.haml +3 -3
  159. data/app/views/tenon/tenon_content/row_types/display/_two_column_image_and_text.html.haml +4 -4
  160. data/app/views/tenon/tenon_content/row_types/display/_two_column_text.html.haml +3 -3
  161. data/app/views/tenon/tenon_content/row_types/display/_two_column_with_background_image.html.haml +3 -3
  162. data/app/views/tenon/tenon_content/row_types/form/_four_column_image.html.haml +2 -2
  163. data/app/views/tenon/tenon_content/row_types/form/_four_column_image_and_text.html.haml +3 -3
  164. data/app/views/tenon/tenon_content/row_types/form/_four_column_text.html.haml +3 -3
  165. data/app/views/tenon/tenon_content/row_types/form/_full_width_embedded_content.html.haml +3 -3
  166. data/app/views/tenon/tenon_content/row_types/form/_full_width_image.html.haml +3 -3
  167. data/app/views/tenon/tenon_content/row_types/form/_full_width_text.html.haml +3 -3
  168. data/app/views/tenon/tenon_content/row_types/form/_left_image_right_text.html.haml +9 -8
  169. data/app/views/tenon/tenon_content/row_types/form/_left_text_right_image.html.haml +6 -6
  170. data/app/views/tenon/tenon_content/row_types/form/_left_wrapped_image_with_text.html.haml +7 -7
  171. data/app/views/tenon/tenon_content/row_types/form/_right_wrapped_image_with_text.html.haml +7 -7
  172. data/app/views/tenon/tenon_content/row_types/form/_six_column_image.html.haml +2 -2
  173. data/app/views/tenon/tenon_content/row_types/form/_six_column_image_and_text.html.haml +3 -3
  174. data/app/views/tenon/tenon_content/row_types/form/_three_column_image.html.haml +2 -2
  175. data/app/views/tenon/tenon_content/row_types/form/_three_column_image_and_text.html.haml +3 -3
  176. data/app/views/tenon/tenon_content/row_types/form/_three_column_text.html.haml +3 -3
  177. data/app/views/tenon/tenon_content/row_types/form/_two_column_image.html.haml +2 -2
  178. data/app/views/tenon/tenon_content/row_types/form/_two_column_image_and_text.html.haml +3 -3
  179. data/app/views/tenon/tenon_content/row_types/form/_two_column_text.html.haml +3 -3
  180. data/app/views/tenon/tenon_content/row_types/form/_two_column_with_background_image.html.haml +2 -2
  181. data/config/initializers/class_extensions/hash.rb +1 -1
  182. data/config/initializers/client_side_validations.rb +27 -0
  183. data/config/initializers/tenon.rb +0 -14
  184. data/config/routes.rb +10 -46
  185. data/db/migrate/20151117171000_drop_default_tenon_resources.rb +15 -0
  186. data/db/migrate/20160119185645_remove_tenon_users.rb +7 -0
  187. data/db/migrate/20160126123154_remove_tenon_callouts_subscribers.rb +8 -0
  188. data/db/migrate/20160126194219_convert_piece_size_to_int.rb +6 -0
  189. data/lib/ckeditor/plugins/pastefromword/filter/default.js +1 -1
  190. data/lib/generators/tenon/scaffold/scaffold_generator.rb +52 -27
  191. data/lib/generators/tenon/scaffold/templates/controller.rb +7 -4
  192. data/lib/generators/tenon/scaffold/templates/policy.rb +2 -0
  193. data/lib/generators/tenon/scaffold/templates/serializer.rb +2 -0
  194. data/lib/generators/tenon/scaffold/templates/view__form.html.haml +49 -54
  195. data/lib/generators/tenon/scaffold/templates/view_edit.html.haml +1 -8
  196. data/lib/generators/tenon/scaffold/templates/view_index.html.haml +8 -24
  197. data/lib/generators/tenon/scaffold/templates/view_new.html.haml +1 -8
  198. data/lib/tasks/tenon_tasks.rake +2 -2
  199. data/lib/templates/active_record/model/model.rb +12 -13
  200. data/lib/templates/migration/templates/create_table_migration.rb +1 -1
  201. data/lib/tenon/can_be_foreign.rb +1 -1
  202. data/lib/tenon/engine.rb +26 -32
  203. data/lib/tenon/filterers/base_filterer.rb +64 -0
  204. data/lib/tenon/has_history/attr_serializer.rb +6 -6
  205. data/lib/tenon/proxy_attachment.rb +2 -2
  206. data/lib/tenon/version.rb +1 -1
  207. data/lib/tenon.rb +1 -3
  208. data/vendor/assets/javascripts/bootstrap.modal.js +1 -1
  209. data/vendor/assets/javascripts/date_picker/picker.date.js +1429 -0
  210. data/vendor/assets/javascripts/date_picker/picker.js +1122 -0
  211. data/vendor/assets/javascripts/number-to-words.es6 +35 -0
  212. data/vendor/assets/stylesheets/bootstrap.scss +1 -1
  213. metadata +206 -972
  214. data/app/assets/images/tenon/icons/delete.png +0 -0
  215. data/app/assets/images/tenon/icons/edit.png +0 -0
  216. data/app/assets/images/tenon/icons/thumbdown.png +0 -0
  217. data/app/assets/images/tenon/icons/thumbup.png +0 -0
  218. data/app/assets/images/tenon/select2-spinner.gif +0 -0
  219. data/app/assets/images/tenon/select2.png +0 -0
  220. data/app/assets/images/tenon/select2x2.png +0 -0
  221. data/app/assets/javascripts/tenon/controllers/assets.js.coffee +0 -3
  222. data/app/assets/javascripts/tenon/controllers/index.js.coffee +0 -6
  223. data/app/assets/javascripts/tenon/controllers/tenon.js.coffee +0 -1
  224. data/app/assets/javascripts/tenon/features/asset_attachment.js.coffee +0 -37
  225. data/app/assets/javascripts/tenon/features/asset_cropping.js.coffee +0 -49
  226. data/app/assets/javascripts/tenon/features/asset_detachment.js.coffee +0 -11
  227. data/app/assets/javascripts/tenon/features/asset_list_post_crop_handler.js.coffee +0 -15
  228. data/app/assets/javascripts/tenon/features/asset_uploader.js.coffee +0 -88
  229. data/app/assets/javascripts/tenon/features/box_toggles.js.coffee +0 -17
  230. data/app/assets/javascripts/tenon/features/cocoon_hooks.js.coffee +0 -12
  231. data/app/assets/javascripts/tenon/features/date_time_picker.js.coffee +0 -25
  232. data/app/assets/javascripts/tenon/features/editor.js.coffee +0 -24
  233. data/app/assets/javascripts/tenon/features/file_select_widget.js.erb +0 -39
  234. data/app/assets/javascripts/tenon/features/flash.js.coffee +0 -13
  235. data/app/assets/javascripts/tenon/features/focus_first_field.js.coffee +0 -8
  236. data/app/assets/javascripts/tenon/features/hamburger_navigation.js.coffee +0 -26
  237. data/app/assets/javascripts/tenon/features/header_menu.js.coffee +0 -20
  238. data/app/assets/javascripts/tenon/features/i18n_fields.js.coffee +0 -23
  239. data/app/assets/javascripts/tenon/features/infinite_loading.js.coffee +0 -12
  240. data/app/assets/javascripts/tenon/features/item_version_autosave.js.coffee +0 -35
  241. data/app/assets/javascripts/tenon/features/item_version_index_handler.js.coffee +0 -3
  242. data/app/assets/javascripts/tenon/features/main_menu.js.coffee +0 -11
  243. data/app/assets/javascripts/tenon/features/modal_forms.js.coffee +0 -44
  244. data/app/assets/javascripts/tenon/features/modal_windows.js.coffee +0 -104
  245. data/app/assets/javascripts/tenon/features/multiple_asset_attachment.js.coffee +0 -8
  246. data/app/assets/javascripts/tenon/features/nested_fields.js +0 -95
  247. data/app/assets/javascripts/tenon/features/nested_lists.js +0 -10
  248. data/app/assets/javascripts/tenon/features/nested_set_writer.js.coffee +0 -65
  249. data/app/assets/javascripts/tenon/features/new_item_version_handler.js.coffee +0 -32
  250. data/app/assets/javascripts/tenon/features/pagination.js.coffee +0 -21
  251. data/app/assets/javascripts/tenon/features/protect_changes.js.coffee +0 -25
  252. data/app/assets/javascripts/tenon/features/quick_search.js.coffee +0 -41
  253. data/app/assets/javascripts/tenon/features/record_approval.js.coffee +0 -33
  254. data/app/assets/javascripts/tenon/features/record_boolean_toggle.js.coffee +0 -37
  255. data/app/assets/javascripts/tenon/features/record_deletion.js.coffee +0 -24
  256. data/app/assets/javascripts/tenon/features/record_list.js.coffee +0 -86
  257. data/app/assets/javascripts/tenon/features/record_list_updater.js.coffee +0 -56
  258. data/app/assets/javascripts/tenon/features/s3_direct_upload.js.coffee +0 -43
  259. data/app/assets/javascripts/tenon/features/sidebar_active_links.js.coffee +0 -20
  260. data/app/assets/javascripts/tenon/features/sortable_nested_fields.js.coffee +0 -17
  261. data/app/assets/javascripts/tenon/features/tenon_content/aesthetics.js.coffee +0 -31
  262. data/app/assets/javascripts/tenon/features/tenon_content/asset_attachment.js.coffee +0 -15
  263. data/app/assets/javascripts/tenon/features/tenon_content/asset_link.js.coffee +0 -11
  264. data/app/assets/javascripts/tenon/features/tenon_content/base.js.coffee +0 -16
  265. data/app/assets/javascripts/tenon/features/tenon_content/bottombar_toggler.js.coffee +0 -15
  266. data/app/assets/javascripts/tenon/features/tenon_content/caption_toggler.js.coffee +0 -11
  267. data/app/assets/javascripts/tenon/features/tenon_content/column_sizing.js.coffee +0 -53
  268. data/app/assets/javascripts/tenon/features/tenon_content/column_swap.js.coffee +0 -44
  269. data/app/assets/javascripts/tenon/features/tenon_content/editor.js.coffee +0 -34
  270. data/app/assets/javascripts/tenon/features/tenon_content/embedded_content_modal_handler.js.coffee +0 -12
  271. data/app/assets/javascripts/tenon/features/tenon_content/image_asset_link.js.coffee +0 -5
  272. data/app/assets/javascripts/tenon/features/tenon_content/image_controls.js.coffee +0 -63
  273. data/app/assets/javascripts/tenon/features/tenon_content/image_links.js.coffee +0 -54
  274. data/app/assets/javascripts/tenon/features/tenon_content/library.js.coffee +0 -39
  275. data/app/assets/javascripts/tenon/features/tenon_content/library_filter.js.coffee +0 -17
  276. data/app/assets/javascripts/tenon/features/tenon_content/pop_out.js.coffee +0 -46
  277. data/app/assets/javascripts/tenon/features/tenon_content/post_crop_handler.js.coffee +0 -22
  278. data/app/assets/javascripts/tenon/features/tenon_content/sidebar_navigation.js.coffee +0 -26
  279. data/app/assets/javascripts/tenon/features/tenon_content/sortable.js.coffee +0 -18
  280. data/app/assets/javascripts/tenon/features/tenon_content/stretch_to_fill.js.coffee +0 -50
  281. data/app/assets/javascripts/tenon/features/tenon_content/wrapped_sizing.js.coffee +0 -48
  282. data/app/assets/javascripts/tenon/features/tenon_content.js.coffee +0 -1
  283. data/app/assets/javascripts/tenon/features/video_feeds.js.coffee +0 -4
  284. data/app/assets/javascripts/tenon/manifest.json +0 -44
  285. data/app/assets/javascripts/tenon/medium-on-tenon.js +0 -1465
  286. data/app/assets/javascripts/tenon/templates/assets/asset_field.jst.eco +0 -17
  287. data/app/assets/javascripts/tenon/templates/assets/asset_progress.jst.eco +0 -8
  288. data/app/assets/javascripts/tenon/templates/assets/asset_row.jst.eco +0 -21
  289. data/app/assets/javascripts/tenon/templates/assets/asset_select.jst.eco +0 -1
  290. data/app/assets/javascripts/tenon/templates/comments/comment_row.jst.eco +0 -23
  291. data/app/assets/javascripts/tenon/templates/contacts/contact_row.jst.eco +0 -56
  292. data/app/assets/javascripts/tenon/templates/errors.jst.eco +0 -13
  293. data/app/assets/javascripts/tenon/templates/events/event_row.jst.eco +0 -22
  294. data/app/assets/javascripts/tenon/templates/galleries/gallery_row.jst.eco +0 -12
  295. data/app/assets/javascripts/tenon/templates/item_versions/item_version_row.jst.eco +0 -22
  296. data/app/assets/javascripts/tenon/templates/modal.jst.eco +0 -14
  297. data/app/assets/javascripts/tenon/templates/pages/page_row.jst.eco +0 -21
  298. data/app/assets/javascripts/tenon/templates/post_categories/post_category_row.jst.eco +0 -12
  299. data/app/assets/javascripts/tenon/templates/posts/post_row.jst.eco +0 -30
  300. data/app/assets/javascripts/tenon/templates/redirects/redirect_row.jst.eco +0 -18
  301. data/app/assets/javascripts/tenon/templates/tenon_callouts/tenon_callout_row.jst.eco +0 -19
  302. data/app/assets/javascripts/tenon/templates/tenon_content/popped_out.jst.eco +0 -6
  303. data/app/assets/javascripts/tenon/templates/users/user_row.jst.eco +0 -21
  304. data/app/assets/javascripts/tenon/tenon.js +0 -68
  305. data/app/assets/javascripts/tenon/tenon_dispatcher.js.coffee +0 -25
  306. data/app/assets/javascripts/tenon/tenon_manifest.js +0 -45
  307. data/app/assets/stylesheets/tenon/colors-custom.scss +0 -25
  308. data/app/assets/stylesheets/tenon/colors-named.scss +0 -22
  309. data/app/assets/stylesheets/tenon/helpers.scss +0 -28
  310. data/app/assets/stylesheets/tenon/layout/assets.scss +0 -49
  311. data/app/assets/stylesheets/tenon/layout/breakpoints.scss +0 -48
  312. data/app/assets/stylesheets/tenon/layout/global.scss +0 -36
  313. data/app/assets/stylesheets/tenon/layout/grid.scss +0 -145
  314. data/app/assets/stylesheets/tenon/layout/main-nav.scss +0 -149
  315. data/app/assets/stylesheets/tenon/layout/margins.scss +0 -3
  316. data/app/assets/stylesheets/tenon/layout/mobile.scss +0 -5
  317. data/app/assets/stylesheets/tenon/layout/sidebar.scss +0 -102
  318. data/app/assets/stylesheets/tenon/layout/util-nav.scss +0 -51
  319. data/app/assets/stylesheets/tenon/mixins.scss +0 -81
  320. data/app/assets/stylesheets/tenon/styleguide.scss +0 -6
  321. data/app/assets/stylesheets/tenon/tenon.scss +0 -71
  322. data/app/assets/stylesheets/tenon/typography.scss +0 -65
  323. data/app/assets/stylesheets/tenon/ui/alerts.scss +0 -65
  324. data/app/assets/stylesheets/tenon/ui/asset-attachment.scss +0 -136
  325. data/app/assets/stylesheets/tenon/ui/asset-cropping.scss +0 -51
  326. data/app/assets/stylesheets/tenon/ui/asset-uploads.scss +0 -26
  327. data/app/assets/stylesheets/tenon/ui/buttons.scss +0 -65
  328. data/app/assets/stylesheets/tenon/ui/callouts.scss +0 -26
  329. data/app/assets/stylesheets/tenon/ui/comments.scss +0 -57
  330. data/app/assets/stylesheets/tenon/ui/forms.scss +0 -204
  331. data/app/assets/stylesheets/tenon/ui/generic-loader.scss +0 -21
  332. data/app/assets/stylesheets/tenon/ui/header-tools.scss +0 -116
  333. data/app/assets/stylesheets/tenon/ui/i18n.scss +0 -18
  334. data/app/assets/stylesheets/tenon/ui/list-style-toggle.scss +0 -39
  335. data/app/assets/stylesheets/tenon/ui/login.scss +0 -97
  336. data/app/assets/stylesheets/tenon/ui/medium-editor.scss +0 -114
  337. data/app/assets/stylesheets/tenon/ui/modals.scss +0 -179
  338. data/app/assets/stylesheets/tenon/ui/pagination.scss +0 -113
  339. data/app/assets/stylesheets/tenon/ui/progress-bars.scss +0 -131
  340. data/app/assets/stylesheets/tenon/ui/quick-search.scss +0 -20
  341. data/app/assets/stylesheets/tenon/ui/record-grids.scss +0 -95
  342. data/app/assets/stylesheets/tenon/ui/record-lists.scss +0 -154
  343. data/app/assets/stylesheets/tenon/ui/section-headers.scss +0 -30
  344. data/app/assets/stylesheets/tenon/ui/select2-custom.scss +0 -70
  345. data/app/assets/stylesheets/tenon/ui/tables.scss +0 -19
  346. data/app/assets/stylesheets/tenon/ui/tabs.scss +0 -7
  347. data/app/assets/stylesheets/tenon/ui/tenon-content-library.scss +0 -80
  348. data/app/assets/stylesheets/tenon/ui/tenon-content-popped-out.scss +0 -92
  349. data/app/assets/stylesheets/tenon/ui/tenon-content.scss +0 -318
  350. data/app/assets/stylesheets/tenon/ui/thinking.scss +0 -3
  351. data/app/assets/stylesheets/tenon/ui/toolbox.scss +0 -31
  352. data/app/assets/stylesheets/tenon/z-indexes.scss +0 -35
  353. data/app/assets/stylesheets/tenon_addons.scss +0 -1
  354. data/app/controllers/tenon/comments_controller.rb +0 -51
  355. data/app/controllers/tenon/contacts_controller.rb +0 -65
  356. data/app/controllers/tenon/events_controller.rb +0 -9
  357. data/app/controllers/tenon/galleries_controller.rb +0 -9
  358. data/app/controllers/tenon/pages_controller.rb +0 -51
  359. data/app/controllers/tenon/post_categories_controller.rb +0 -9
  360. data/app/controllers/tenon/posts_controller.rb +0 -28
  361. data/app/controllers/tenon/redirects_controller.rb +0 -25
  362. data/app/controllers/tenon/tenon_callouts_controller.rb +0 -7
  363. data/app/controllers/tenon/users_controller.rb +0 -64
  364. data/app/decorators/tenon/comment_decorator.rb +0 -22
  365. data/app/decorators/tenon/contact_decorator.rb +0 -13
  366. data/app/decorators/tenon/event_decorator.rb +0 -11
  367. data/app/decorators/tenon/gallery_decorator.rb +0 -4
  368. data/app/decorators/tenon/page_decorator.rb +0 -11
  369. data/app/decorators/tenon/post_category_decorator.rb +0 -4
  370. data/app/decorators/tenon/post_decorator.rb +0 -4
  371. data/app/decorators/tenon/redirect_decorator.rb +0 -2
  372. data/app/decorators/tenon/tenon_callout_decorator.rb +0 -4
  373. data/app/decorators/tenon/user_decorator.rb +0 -4
  374. data/app/mailers/tenon/comment_mailer.rb +0 -16
  375. data/app/mailers/tenon/contact_mailer.rb +0 -15
  376. data/app/models/ability.rb +0 -32
  377. data/app/models/tenon/comment.rb +0 -47
  378. data/app/models/tenon/comment_subscriber.rb +0 -7
  379. data/app/models/tenon/contact.rb +0 -46
  380. data/app/models/tenon/event.rb +0 -45
  381. data/app/models/tenon/gallery.rb +0 -15
  382. data/app/models/tenon/page.rb +0 -105
  383. data/app/models/tenon/photo.rb +0 -10
  384. data/app/models/tenon/post.rb +0 -35
  385. data/app/models/tenon/post_category.rb +0 -7
  386. data/app/models/tenon/redirect.rb +0 -17
  387. data/app/models/tenon/role.rb +0 -8
  388. data/app/models/tenon/role_assignment.rb +0 -6
  389. data/app/models/tenon/s3_direct_upload.rb +0 -75
  390. data/app/models/tenon/tenon_callout.rb +0 -16
  391. data/app/models/tenon/user.rb +0 -60
  392. data/app/views/devise/confirmations/new.html.erb +0 -12
  393. data/app/views/devise/confirmations/new.html.haml +0 -0
  394. data/app/views/devise/mailer/confirmation_instructions.html.haml +0 -7
  395. data/app/views/devise/mailer/reset_password_instructions.html.haml +0 -15
  396. data/app/views/devise/mailer/unlock_instructions.html.haml +0 -9
  397. data/app/views/devise/passwords/edit.html.haml +0 -22
  398. data/app/views/devise/passwords/new.html.haml +0 -17
  399. data/app/views/devise/registrations/edit.html.haml +0 -0
  400. data/app/views/devise/registrations/new.html.haml +0 -22
  401. data/app/views/devise/sessions/new.html.haml +0 -28
  402. data/app/views/devise/shared/_links.erb +0 -19
  403. data/app/views/devise/shared/_links.haml +0 -0
  404. data/app/views/devise/unlocks/new.html.erb +0 -12
  405. data/app/views/devise/unlocks/new.html.haml +0 -0
  406. data/app/views/layouts/tenon/login.html.haml +0 -19
  407. data/app/views/tenon/assets/_asset.json.jbuilder +0 -7
  408. data/app/views/tenon/assets/_sidebar_index.html.haml +0 -18
  409. data/app/views/tenon/assets/create.json.jbuilder +0 -1
  410. data/app/views/tenon/assets/index.json.jbuilder +0 -5
  411. data/app/views/tenon/assets/update.json.jbuilder +0 -1
  412. data/app/views/tenon/comment_mailer/comment_notification.html.haml +0 -7
  413. data/app/views/tenon/comments/_sidebar_index.html.haml +0 -22
  414. data/app/views/tenon/comments/index.html.haml +0 -19
  415. data/app/views/tenon/comments/index.json.jbuilder +0 -22
  416. data/app/views/tenon/contact_mailer/contact_notification.html.haml +0 -15
  417. data/app/views/tenon/contacts/_sidebar_index.html.haml +0 -32
  418. data/app/views/tenon/contacts/index.html.haml +0 -19
  419. data/app/views/tenon/contacts/index.json.jbuilder +0 -15
  420. data/app/views/tenon/events/_form.html.haml +0 -44
  421. data/app/views/tenon/events/edit.html.haml +0 -8
  422. data/app/views/tenon/events/index.html.haml +0 -23
  423. data/app/views/tenon/events/index.json.jbuilder +0 -16
  424. data/app/views/tenon/events/new.html.haml +0 -8
  425. data/app/views/tenon/galleries/_form.html.haml +0 -38
  426. data/app/views/tenon/galleries/_photo_fields.html.haml +0 -3
  427. data/app/views/tenon/galleries/edit.html.haml +0 -8
  428. data/app/views/tenon/galleries/index.html.haml +0 -22
  429. data/app/views/tenon/galleries/index.json.jbuilder +0 -15
  430. data/app/views/tenon/galleries/new.html.haml +0 -8
  431. data/app/views/tenon/pages/_form.html.haml +0 -58
  432. data/app/views/tenon/pages/edit.html.haml +0 -8
  433. data/app/views/tenon/pages/index.html.haml +0 -23
  434. data/app/views/tenon/pages/index.json.jbuilder +0 -22
  435. data/app/views/tenon/pages/new.html.haml +0 -8
  436. data/app/views/tenon/post_categories/_form.html.haml +0 -11
  437. data/app/views/tenon/post_categories/_post_category.json.jbuilder +0 -2
  438. data/app/views/tenon/post_categories/create.json.jbuilder +0 -1
  439. data/app/views/tenon/post_categories/edit.html.haml +0 -1
  440. data/app/views/tenon/post_categories/index.html.haml +0 -30
  441. data/app/views/tenon/post_categories/index.json.jbuilder +0 -5
  442. data/app/views/tenon/post_categories/update.json.jbuilder +0 -1
  443. data/app/views/tenon/posts/_form.html.haml +0 -65
  444. data/app/views/tenon/posts/edit.html.haml +0 -8
  445. data/app/views/tenon/posts/index.html.haml +0 -27
  446. data/app/views/tenon/posts/index.json.jbuilder +0 -20
  447. data/app/views/tenon/posts/new.html.haml +0 -8
  448. data/app/views/tenon/redirects/_form.html.haml +0 -42
  449. data/app/views/tenon/redirects/_redirect.json.jbuilder +0 -3
  450. data/app/views/tenon/redirects/edit.html.haml +0 -8
  451. data/app/views/tenon/redirects/index.html.haml +0 -29
  452. data/app/views/tenon/redirects/index.json.jbuilder +0 -5
  453. data/app/views/tenon/redirects/new.html.haml +0 -8
  454. data/app/views/tenon/shared/_posts_nav.html.haml +0 -8
  455. data/app/views/tenon/shared/menu_items/_assets.html.haml +0 -3
  456. data/app/views/tenon/shared/menu_items/_comments.html.haml +0 -2
  457. data/app/views/tenon/shared/menu_items/_events.html.haml +0 -6
  458. data/app/views/tenon/shared/menu_items/_galleries.html.haml +0 -6
  459. data/app/views/tenon/shared/menu_items/_pages.html.haml +0 -6
  460. data/app/views/tenon/shared/menu_items/_posts.html.haml +0 -7
  461. data/app/views/tenon/shared/menu_items/_settings.html.haml +0 -2
  462. data/app/views/tenon/shared/menu_items/_users.html.haml +0 -2
  463. data/app/views/tenon/shared/section_header/_quick_search.html.haml +0 -3
  464. data/app/views/tenon/shared/section_header/_sidebar_toggle.html.haml +0 -1
  465. data/app/views/tenon/tenon_callouts/_form.html.haml +0 -45
  466. data/app/views/tenon/tenon_callouts/_tenon_callout.json.jbuilder +0 -1
  467. data/app/views/tenon/tenon_callouts/edit.html.haml +0 -8
  468. data/app/views/tenon/tenon_callouts/index.html.haml +0 -24
  469. data/app/views/tenon/tenon_callouts/index.json.jbuilder +0 -5
  470. data/app/views/tenon/tenon_callouts/new.html.haml +0 -8
  471. data/app/views/tenon/users/_form.html.haml +0 -50
  472. data/app/views/tenon/users/edit.html.haml +0 -8
  473. data/app/views/tenon/users/index.html.haml +0 -23
  474. data/app/views/tenon/users/index.json.jbuilder +0 -28
  475. data/app/views/tenon/users/new.html.haml +0 -8
  476. data/config/initializers/devise.rb +0 -258
  477. data/config/locales/devise.en.yml +0 -60
  478. data/config/locales/tenon.en.yml +0 -313
  479. data/db/seeds.rb +0 -47
  480. data/lib/generators/tenon/scaffold/templates/view__item.json.jbuilder +0 -1
  481. data/lib/generators/tenon/scaffold/templates/view_index.json.jbuilder +0 -5
  482. data/lib/generators/tenon/scaffold/templates/view_item_row.jst.eco +0 -13
  483. data/lib/generators/tenon/scaffold_small/scaffold_small_generator.rb +0 -8
  484. data/lib/generators/tenon/scaffold_small/templates/controller.rb +0 -19
  485. data/lib/generators/tenon/scaffold_small/templates/decorator.rb +0 -2
  486. data/lib/generators/tenon/scaffold_small/templates/view__form.html.haml +0 -26
  487. data/lib/generators/tenon/scaffold_small/templates/view__item.json.jbuilder +0 -2
  488. data/lib/generators/tenon/scaffold_small/templates/view_create.json.jbuilder +0 -1
  489. data/lib/generators/tenon/scaffold_small/templates/view_index.html.haml +0 -27
  490. data/lib/generators/tenon/scaffold_small/templates/view_index.json.jbuilder +0 -5
  491. data/lib/generators/tenon/scaffold_small/templates/view_item_row.jst.eco +0 -12
  492. data/lib/generators/tenon/scaffold_small/templates/view_update.json.jbuilder +0 -1
  493. data/lib/tenon/can_have_comments.rb +0 -16
  494. data/lib/tenon/config/events.rb +0 -29
  495. data/lib/tenon/factories/comments.rb +0 -10
  496. data/lib/tenon/factories/contacts.rb +0 -9
  497. data/lib/tenon/factories/events.rb +0 -7
  498. data/lib/tenon/factories/galleries.rb +0 -5
  499. data/lib/tenon/factories/pages.rb +0 -5
  500. data/lib/tenon/factories/posts.rb +0 -10
  501. data/lib/tenon/factories/redirects.rb +0 -9
  502. data/lib/tenon/factories/tenon_callouts.rb +0 -9
  503. data/lib/tenon/factories/users.rb +0 -26
  504. data/lib/tenon/warning_generator.rb +0 -29
  505. data/spec/controllers/tenon/assets_controller_spec.rb +0 -262
  506. data/spec/controllers/tenon/comments_controller_spec.rb +0 -173
  507. data/spec/controllers/tenon/contacts_controller_spec.rb +0 -174
  508. data/spec/controllers/tenon/index_controller_spec.rb +0 -31
  509. data/spec/controllers/tenon/item_assets_controller_spec.rb +0 -29
  510. data/spec/controllers/tenon/pages_controller_spec.rb +0 -67
  511. data/spec/controllers/tenon/posts_controller_spec.rb +0 -31
  512. data/spec/controllers/tenon/resources_controller_spec.rb +0 -352
  513. data/spec/controllers/tenon/settings_controller_spec.rb +0 -65
  514. data/spec/controllers/tenon/simple_resources_controller_spec.rb +0 -42
  515. data/spec/controllers/tenon/users_controller_spec.rb +0 -112
  516. data/spec/decorators/tenon/application_decorator_spec.rb +0 -75
  517. data/spec/decorators/tenon/asset_decorator_spec.rb +0 -101
  518. data/spec/decorators/tenon/comment_decorator_spec.rb +0 -43
  519. data/spec/decorators/tenon/contact_decorator_spec.rb +0 -24
  520. data/spec/decorators/tenon/event_decorator_spec.rb +0 -26
  521. data/spec/decorators/tenon/page_decorator_spec.rb +0 -23
  522. data/spec/decorators/tenon/tenon_content/row_type_decorator_spec.rb +0 -20
  523. data/spec/features/settings_spec.rb +0 -75
  524. data/spec/features/tenon/assets_spec.rb +0 -88
  525. data/spec/features/tenon/comments_spec.rb +0 -51
  526. data/spec/features/tenon/contacts_spec.rb +0 -51
  527. data/spec/features/tenon/events_spec.rb +0 -104
  528. data/spec/features/tenon/galleries_spec.rb +0 -107
  529. data/spec/features/tenon/i18n_spec.rb +0 -106
  530. data/spec/features/tenon/pages_spec.rb +0 -97
  531. data/spec/features/tenon/post_categories_spec.rb +0 -91
  532. data/spec/features/tenon/posts_spec.rb +0 -93
  533. data/spec/features/tenon/tenon_callouts_spec.rb +0 -101
  534. data/spec/features/tenon/users_spec.rb +0 -98
  535. data/spec/fixtures/files/test.png +0 -0
  536. data/spec/lib/tenon/asset_style_generator_spec.rb +0 -84
  537. data/spec/lib/tenon/can_be_foreign_spec.rb +0 -20
  538. data/spec/lib/tenon/can_have_comments_spec.rb +0 -22
  539. data/spec/lib/tenon/has_asset_spec.rb +0 -46
  540. data/spec/lib/tenon/has_history/attr_serializer_spec.rb +0 -63
  541. data/spec/lib/tenon/i18n_lookup_spec.rb +0 -88
  542. data/spec/lib/tenon/proxy_attachment_spec.rb +0 -96
  543. data/spec/lib/tenon/reorderable_spec.rb +0 -25
  544. data/spec/lib/tenon/tenon_content_spec.rb +0 -22
  545. data/spec/lib/tenon/warning_generator_spec.rb +0 -153
  546. data/spec/models/tenon/asset_spec.rb +0 -98
  547. data/spec/models/tenon/comment_spec.rb +0 -81
  548. data/spec/models/tenon/contact_spec.rb +0 -62
  549. data/spec/models/tenon/event_spec.rb +0 -79
  550. data/spec/models/tenon/gallery_spec.rb +0 -12
  551. data/spec/models/tenon/item_asset_spec.rb +0 -19
  552. data/spec/models/tenon/my_settings_spec.rb +0 -27
  553. data/spec/models/tenon/page_spec.rb +0 -60
  554. data/spec/models/tenon/post_spec.rb +0 -48
  555. data/spec/models/tenon/redirect_spec.rb +0 -31
  556. data/spec/models/tenon/tenon_callout_spec.rb +0 -10
  557. data/spec/models/tenon/tenon_content/row_spec.rb +0 -34
  558. data/spec/models/tenon/user_spec.rb +0 -59
  559. data/spec/services/tenon/redirector_spec.rb +0 -30
  560. data/spec/spec_helper.rb +0 -79
  561. data/spec/support/integration_example_group.rb +0 -35
  562. data/spec/support/request_helpers.rb +0 -10
  563. data/vendor/assets/javascripts/backstretch.js +0 -4
  564. data/vendor/assets/javascripts/bootstrap.collapse.js +0 -179
  565. data/vendor/assets/javascripts/bootstrap.datetimepicker.js +0 -954
  566. data/vendor/assets/javascripts/bootstrap.tabs.js +0 -135
  567. data/vendor/assets/javascripts/cufon/Aller_400.font.js +0 -7
  568. data/vendor/assets/javascripts/cufon/Aller_700.font.js +0 -7
  569. data/vendor/assets/javascripts/cufon/cufon.js +0 -7
  570. data/vendor/assets/javascripts/jquery.corner.js +0 -249
  571. data/vendor/assets/javascripts/jquery.hoverIntent.js +0 -115
  572. data/vendor/assets/javascripts/jquery.radioSlider.js +0 -55
  573. data/vendor/assets/javascripts/jscrollpane.js +0 -1435
  574. data/vendor/assets/javascripts/select2.js +0 -3
  575. data/vendor/assets/javascripts/underscore.inflection.js +0 -177
  576. data/vendor/assets/stylesheets/bootstrap.datetimepicker.css +0 -152
  577. data/vendor/assets/stylesheets/bootstrap.tables.scss +0 -201
  578. data/vendor/assets/stylesheets/jscrollpane.scss +0 -20
  579. data/vendor/assets/stylesheets/select2.css +0 -1
@@ -1,10 +1,11 @@
1
- .form-group
2
- %label= t('tenon.settings.meta_keywords')
3
- .explanation= t('tenon.settings.these_meta_keywords_will')
4
- = text_area_tag "settings[seo_keywords]", Tenon::MySettings.seo_keywords
5
-
6
- .form-group
7
- %label= t('tenon.settings.meta_description')
8
- .explanation= t('tenon.settings.this_description_will_show_up')
9
- = text_area_tag "settings[seo_description]", Tenon::MySettings.seo_description
1
+ .panel-label SEO
2
+ .panel
3
+ .panel__content
4
+ .row
5
+ .inner6
6
+ = input_block 'META Keywords', explanation: 'These META keywords will be used by some search engines when crawling your site. Separate keywords with a comma. Note: Google does not factor in keywords when calculating your rank. Other search engines may or may not.' do
7
+ = text_area_tag "settings[seo_keywords]", Tenon::MySettings.seo_keywords, class: 'input-block__multiline-text-field'
10
8
 
9
+ .inner6.omega
10
+ = input_block 'META Description', explanation: 'This description will show up on search engines and in some cases will affect your rank. It should be no longer than 150-160 characters (about the length of a tweet.)' do
11
+ = text_area_tag "settings[seo_description]", Tenon::MySettings.seo_description, class: 'input-block__multiline-text-field'
@@ -1,31 +1,12 @@
1
- - content_for :sidebar do
2
- .sidebar
3
- .content
4
- %h2= t('tenon.settings.settings')
5
-
6
- %h4= t('tenon.settings.sections')
7
- %nav
8
- %ul
9
- %li.active= link_to t('tenon.settings.general_settings'), '#general', data: {toggle: 'tab'}
10
- %li= link_to t('tenon.settings.contact_management'), '#contact', data: {toggle: 'tab'}
11
- %li= link_to t('tenon.common.search_optimization'), '#seo', data: {toggle: 'tab'}
12
-
13
- %header
14
- %h1= t('tenon.settings.site_settings')
15
-
16
- .tools
17
- = render "tenon/shared/section_header/sidebar_toggle"
18
-
19
- .main-content
20
- = form_tag({ :action => :update }, :method => "PUT") do
21
- .fields.large.tabs
22
- #general.tab-pane.active= render :partial => 'general'
23
- #contact.tab-pane= render :partial => 'contact'
24
- #seo.tab-pane= render :partial => 'seo'
25
-
26
- .fields.small
27
- %h4.box-label= t('tenon.common.actions')
28
- .box
29
- .content
30
- %button.btn.btn-primary.btn-block.submit{ data: { disable_with: t('tenon.common.please_wait') } }= t('tenon.common.save')
31
-
1
+ .drawer-pusher
2
+ = form_tag({ action: :update }, method: 'PUT') do
3
+ .toolbar.bg-color-primary-dk10
4
+ = render 'tenon/shared/breadcrumbs'
5
+ .actions
6
+ - if policy(@post).publish?
7
+ %button.action__btn.btn-flat.submit{ data: { disable_with: 'Please wait...' } } Save
8
+
9
+ %main
10
+ = render partial: 'general'
11
+ = render partial: 'contact'
12
+ = render partial: 'seo'
@@ -0,0 +1,6 @@
1
+ %ul.dropdown
2
+ %li.dropdown__divider
3
+ %li.dropdown__item
4
+ = active_link_to destroy_user_session_path, method: :delete, class: 'dropdown__action action-icon' do
5
+ = i('exit_to_app')
6
+ %span Logout
@@ -0,0 +1,5 @@
1
+ .app-info
2
+ = link_to '/tenon', class: 'app-info__link' do
3
+ .app-info__icon power_settings_new
4
+ .app-info__primary Application Title
5
+ .app-info__secondary Secondary Info
@@ -0,0 +1 @@
1
+ = react_component 'Breadcrumbs', breadcrumbs: breadcrumb_links
@@ -0,0 +1,5 @@
1
+ - if content_for?(:back_button)
2
+ = yield :back_button
3
+
4
+ = link_to '#', class: ['main-nav-toggle', 'toggle-drawer', ('hide-on-min' if content_for?(:back_button))], data: { target: 'main-nav' } do
5
+ .burger
@@ -0,0 +1,26 @@
1
+ - content_for :back_button do
2
+ = link_to back_to_index_path(obj), class: 'back-button' do
3
+ %i.material-icon arrow_back
4
+
5
+ .toolbar
6
+ .hide-on-min= render 'tenon/shared/breadcrumbs'
7
+ .toolbar__content
8
+ .toolbar__actions.toolbar__actions--right
9
+ - if policy(obj).publish?
10
+ .toolbar__action
11
+ %button.btn.btn--toolbar.submit{ data: { disable_with: "Please wait..." } } Save
12
+
13
+ .toolbar__action
14
+ %a.toolbar__action-icon.dropdown-button{ href: '#!', data: { dropdown_activate: true } }
15
+ = i('more_vert')
16
+
17
+ %ul.dropdown#form-dropdown
18
+ - if policy(Tenon::ItemVersion).create?
19
+ = render 'tenon/shared/draft_controls', obj: obj
20
+
21
+ - if obj.persisted? && policy(obj).destroy?
22
+ %li.dropdown__divider
23
+ %li.dropdown__item
24
+ = link_to obj, data: { method: :delete, confirm: 'Are you sure you want to delete this?' }, class: 'dropdown__action action-icon delete-link' do
25
+ = i('delete')
26
+ %span Delete
@@ -0,0 +1,18 @@
1
+ %li.dropdown__item.dropdown__item--label.last-autosave
2
+ Draft Versions
3
+
4
+ %li.dropdown__item
5
+ = link_to new_item_version_path(item_type: class_for(obj), item_id: obj.id), data: { modal_remote: true, modal_handler: 'NewItemVersionHandler', modal_title: 'Save Draft', dropdown_dismiss: true }, class: 'dropdown__action action-icon' do
6
+ = i('cloud_upload')
7
+ %span Save Draft
8
+
9
+ %li.dropdown__item
10
+ = link_to item_versions_path(item_type: obj.class.to_s, item_id: obj.id), data: { modal_remote: true, modal_handler: 'ItemVersionIndexHandler', modal_title: 'Load Draft', dropdown_dismiss: true }, class: 'dropdown__action action-icon' do
11
+ = i('cloud_download')
12
+ %span Load Draft
13
+
14
+ - if params[:version]
15
+ %li.dropdown__item
16
+ = link_to item_version_active_path(obj), class: 'dropdown__action action-icon' do
17
+ = i('star')
18
+ %span Load Active Version
@@ -1,6 +1,6 @@
1
- %h4= t('tenon.common.languages')
1
+ %h4 Languages
2
2
  %nav.i18n-nav
3
3
  %ul
4
- %li.active= link_to t('tenon.common.english'), '#', data: { 'i18n-lang' => 'en' }
4
+ %li.active= link_to 'English', '#', data: { 'i18n-lang' => 'en' }
5
5
  - Tenon.config.languages.each do |title, lang|
6
6
  %li= link_to title, '#', data: { 'i18n-lang' => lang }
@@ -1,14 +1,3 @@
1
- .nav-holder
2
- %nav.main-nav
3
- %ul
4
- = nav_item t('tenon.common.home'), root_path, 'dashboard'
5
- = nav_item t('tenon.asset_library.asset_library'), assets_path, 'picture-o'
6
- = nav_item t('tenon.comments.comments'), comments_path, 'comment'
7
- = nav_item t('tenon.pages.pages'), pages_path, 'file'
8
- = nav_item t('tenon.posts.posts'), posts_path, 'file-text', active: ['post_categories'].include?(controller_name)
9
- = nav_item t('tenon.users.users'), users_path, 'user'
10
- = nav_item t('tenon.events.events'), events_path, 'calendar'
11
- = nav_item t('tenon.galleries.galleries'), galleries_path, 'th'
12
- = nav_item t('tenon.contacts.contacts'), contacts_path, 'envelope'
13
- = nav_item t('tenon.redirects.redirects'), redirects_path, 'exchange'
14
- = nav_item t('tenon.settings.settings'), settings_path, 'gear'
1
+ %ul.main-nav__list
2
+ - if policy(Tenon::Asset).index?
3
+ = nav_item 'Asset Library', assets_path, 'photo_library'
@@ -1,25 +1,25 @@
1
1
  -# Android
2
2
  -# https://developer.chrome.com/multidevice/android/installtohomescreen
3
3
  -# http://updates.html5rocks.com/2014/11/Support-for-theme-color-in-Chrome-39-for-Android
4
- %meta{ :content => color, :name => 'theme-color' }
5
- %meta{ :content => 'yes', :name => 'mobile-web-app-capable' }
6
- %link{ :rel => 'icon', :sizes => '192x192', :href => image_path('tenon/icon-192x192.png') }
7
- %link{ :rel => 'manifest', :href => '/assets/javascripts/manifest.json' }
4
+ %meta{ content: color, name: 'theme-color' }
5
+ %meta{ content: 'yes', name: 'mobile-web-app-capable' }
6
+ %link{ rel: 'icon', sizes: '192x192', href: image_path('tenon/icon-192x192.png') }
7
+ %link{ rel: 'manifest', href: '/assets/javascripts/manifest.json' }
8
8
 
9
9
  -# iOS
10
10
  -# https://developer.apple.com/library/safari/documentation/AppleApplications/Reference/SafariHTMLRef/Articles/MetaTags.html
11
- %link{ :rel => 'apple-touch-icon', :sizes => '57x57', :href => image_path('tenon/icon-57x57.png') }
12
- %link{ :rel => 'apple-touch-icon', :sizes => '72x72', :href => image_path('tenon/icon-72x72.png') }
13
- %link{ :rel => 'apple-touch-icon', :sizes => '114x114', :href => image_path('tenon/icon-114x114.png') }
14
- %link{ :rel => 'apple-touch-icon', :sizes => '144x144', :href => image_path('tenon/icon-144x144.png') }
15
- %meta{ :content => 'yes', :name => 'apple-mobile-web-app-capable' }
16
- %meta{ :content => 'default', :name => 'apple-mobile-web-app-status-bar-style' }
11
+ %link{ rel: 'apple-touch-icon', sizes: '57x57', href: image_path('tenon/icon-57x57.png') }
12
+ %link{ rel: 'apple-touch-icon', sizes: '72x72', href: image_path('tenon/icon-72x72.png') }
13
+ %link{ rel: 'apple-touch-icon', sizes: '114x114', href: image_path('tenon/icon-114x114.png') }
14
+ %link{ rel: 'apple-touch-icon', sizes: '144x144', href: image_path('tenon/icon-144x144.png') }
15
+ %meta{ content: 'yes', name: 'apple-mobile-web-app-capable' }
16
+ %meta{ content: 'default', name: 'apple-mobile-web-app-status-bar-style' }
17
17
 
18
18
  -# Windows
19
19
  -# http://msdn.microsoft.com/en-us/library/ie/gg491732(v=vs.85).aspx
20
20
  -# http://blogs.msdn.com/b/ie/archive/2012/06/08/high-quality-visuals-for-pinned-sites-in-windows-8.aspx
21
- %meta{ :content => Tenon::MySettings.site_title ? Tenon::MySettings.site_title : 'Tenon', :name => 'application-name' }
22
- %meta{ :content => Tenon::MySettings.site_title ? Tenon::MySettings.site_title : 'Tenon', :name => 'msapplication-tooltip' }
23
- %meta{ :content => color, :name => 'msapplication-navbutton-color' }
24
- %meta{ :content => color, :name => 'msapplication-TileColor' }
25
- %meta{ :content => image_path('tenon/icon-144x144.png'), :name => 'msapplication-TileImage' }
21
+ %meta{ content: Tenon::MySettings.site_title ? Tenon::MySettings.site_title : 'Tenon', name: 'application-name' }
22
+ %meta{ content: Tenon::MySettings.site_title ? Tenon::MySettings.site_title : 'Tenon', name: 'msapplication-tooltip' }
23
+ %meta{ content: color, name: 'msapplication-navbutton-color' }
24
+ %meta{ content: color, name: 'msapplication-TileColor' }
25
+ %meta{ content: image_path('tenon/icon-144x144.png'), name: 'msapplication-TileImage' }
@@ -1,6 +1,8 @@
1
- .form-group
2
- = f.text_field :seo_title, :class => "title", :style => "width: 100%;", :label => t('tenon.settings.title_tag'), :'data-popover' => true, :explanation => t('tenon.settings.this_is_the_title_that_will_show'), :'data-placement' => 'bottom'
3
- .form-group
4
- = f.text_area :seo_keywords, :style => "width: 100%;", :rows => 5, :label => t('tenon.settings.meta_keywords'), :'data-popover' => true, :explanation => t('tenon.settings.these_meta_keywords_will'), :'data-placement' => 'bottom'
5
- .form-group
6
- = f.text_area :seo_description, :style => "width: 100%;", :rows => 5, :label => t('tenon.settings.meta_description'), :'data-popover' => true, :explanation => t('tenon.settings.this_description_will_show_up'), :'data-placement' => 'bottom'
1
+ = f.text_field :seo_title, label: 'Title Tag', explanation: 'This is the title that will show on search engine results and in the title bar of a visitor\'s browser. By default, this will use the item\'s title.', placeholder: ''
2
+
3
+ .row
4
+ .inner6
5
+ = f.text_area :seo_keywords, label: 'META Keywords', explanation: 'These META keywords will be used by some search engines when crawling your site. Separate keywords with a comma. Note: Google does not factor in keywords when calculating your rank. Other search engines may or may not.', dataplacement: 'bottom'
6
+
7
+ .inner6.omega
8
+ = f.text_area :seo_description, label: 'META Description', explanation: 'This description will show up on search engines and in some cases will affect your rank. It should be no longer than 150-160 characters (about the length of a tweet.)'
@@ -0,0 +1,6 @@
1
+ - unless Tenon::MySettings.site_title.blank?
2
+ .site-title.left
3
+ - if Rails.application.routes.named_routes.helpers.include?(:root_path)
4
+ = link_to Tenon::MySettings.site_title, main_app.root_path
5
+ - else
6
+ = Tenon::MySettings.site_title
@@ -1,28 +1,5 @@
1
- %util-nav
2
- #logo= link_to image_tag('tenon/tenon_icon.png'), tenon.root_path
3
- - unless Tenon::MySettings.site_title.blank?
4
- .site-title
5
- - if Rails.application.routes.named_routes.helpers.include?(:root_path)
6
- = link_to Tenon::MySettings.site_title, main_app.root_path
7
- - else
8
- = Tenon::MySettings.site_title
1
+ .util-nav{ class: (modifier if local_assigns[:modifier]) }
2
+ = link_to '#!', class: 'util-nav__action-icon dropdown-button', data: { dropdown_activate: true } do
3
+ = i('person')
9
4
 
10
- .tools
11
- .header-button.hamburger.mobile= link_to fa_icon('fw bars'), '#'
12
-
13
- .header-menu.hamburger-toggle
14
- = link_to '#', class: 'user-menu', data: { icon: 'user' } do
15
- .header-icon
16
- .mobile= fa_icon('fw user')
17
- .tablet= fa_icon('fw caret-down')
18
- .header-label= current_user.email
19
-
20
- %ul
21
- %li
22
- = link_to edit_user_path(current_user) do
23
- .header-icon= fa_icon('fw gear')
24
- .header-label= t('tenon.users.edit_info')
25
- %li
26
- = link_to destroy_user_session_path, method: :delete do
27
- .header-icon= fa_icon('fw sign-out')
28
- .header-label= t('tenon.users.sign_out')
5
+ = render 'tenon/shared/account_dropdown'
@@ -1,13 +1,13 @@
1
- .flash.flash-notice
2
- %p= t('tenon.item_versions.you_are_viewing_a_draft')
1
+ .note
2
+ .note__icon announcement
3
3
 
4
- %p= t('tenon.item_versions.auto_saving_is_disabled')
4
+ .note__text
5
+ You are viewing a draft version of this resource. Hitting save will replace the active version with this version. Auto-saving is disabled when you are viewing a draft version.
5
6
 
6
- %p
7
- %small
8
- = t('tenon.item_versions.draft')
9
- - unless @item_version.title.blank?
10
- %strong "#{@item_version.title}"
11
- #{t('tenon.item_versions.was_created_on')} #{@item_version.created_at.strftime('%m/%d/%Y')} #{t('tenon.common.at')} #{@item_version.created_at.strftime('%l:%M %p')}
12
- #{t('tenon.item_versions.by')} #{@item_version.user.try(:email)}
13
- =link_to fa_icon('times'), '#', id: 'flash-dismiss'
7
+ .note__secondary
8
+ - if @item_version.title.present?
9
+ %strong #{@item_version.title}
10
+ - else
11
+ Draft
12
+ was created on #{@item_version.created_at.strftime('%m/%d/%Y at %l:%M %p')}
13
+ by #{@item_version.user.try(:email)}
@@ -0,0 +1,118 @@
1
+ %section
2
+ %a.scroll-target{name: 'buttons'}
3
+ %h3.color-black Buttons
4
+ %p
5
+ Use these classes on any HTML element that you would like to look and
6
+ act like a button.
7
+
8
+ %a.scroll-target{name: 'buttons__standard'}
9
+ %h3.color-black Standard Button
10
+ .panel--padded
11
+ %h4 Primary
12
+ %p
13
+ %button{type: 'button', class: 'btn'}
14
+ Button
15
+ %p
16
+ %a{href: '#', class: 'btn'}
17
+ Link
18
+ %code
19
+ %p= "<button type='button' class='btn'>Button</button>"
20
+ %p= "<a href='#' class='btn'>Link</a>"
21
+
22
+ %h4 Secondary
23
+ %p
24
+ %button{type: 'button', class: 'btn btn--secondary'}
25
+ Button
26
+ %p
27
+ %a{href: '#', class: 'btn btn--secondary'}
28
+ Link
29
+ %code
30
+ %p= "<button type='button' class='btn btn--secondary'>Button</button>"
31
+ %p= "<a href='#' class='btn btn--secondary'>Link</a>"
32
+
33
+ %h4 White
34
+ %p
35
+ %button{type: 'button', class: 'btn btn--white'}
36
+ Button
37
+ %p
38
+ %a{href: '#', class: 'btn btn--white'}
39
+ Link
40
+ %code
41
+ %p= "<button type='button' class='btn btn-secondary'>Button</button>"
42
+ %p= "<a href='#' class='btn btn-secondary'>Link</a>"
43
+
44
+
45
+ %section
46
+ %a.scroll-target{name: 'buttons__flat'}
47
+ %h3.color-black Flat Button
48
+ %p Same as the standard button, but without depth.
49
+ .panel--padded
50
+ %h4 Primary
51
+ %p
52
+ %button{type: 'button', class: 'btn btn--flat'}
53
+ Button
54
+ %p
55
+ %a{href: '#', class: 'btn btn--flat'}
56
+ Link
57
+ %code
58
+ %p= "<button type='button' class='btn btn--flat'>Button</button>"
59
+ %p= "<a href='#' class='btn-flat'>Link</a>"
60
+
61
+ %h4 Secondary
62
+ %p
63
+ %button{type: 'button', class: 'btn btn--flat btn--secondary'}
64
+ Button
65
+ %p
66
+ %a{href: '#', class: 'btn btn--flat btn--secondary'}
67
+ Link
68
+ %code
69
+ %p= "<button type='button' class='btn btn--flat btn--secondary'>Button</button>"
70
+ %p= "<a href='#' class='btn btn--flat btn--secondary'>Link</a>"
71
+
72
+ %h4 White
73
+ %p
74
+ %button{type: 'button', class: 'btn btn--flat btn--white'}
75
+ Button
76
+ %p
77
+ %a{href: '#', class: 'btn btn--flat btn--white'}
78
+ Link
79
+ %code
80
+ %p= "<button type='button' class='btn btn--flat btn--white'>Button</button>"
81
+ %p= "<a href='#' class='btn btn--flat btn--white'>Link</a>"
82
+
83
+ %section
84
+ %a.scroll-target{name: 'buttons__block'}
85
+ %h3 Block Button
86
+ %p
87
+ Apply the .btn--block class to any button that should fit the width of
88
+ the parent container.
89
+
90
+ .panel--padded
91
+ %p
92
+ %button{type: 'button', class: 'btn btn--block'}
93
+ Button
94
+ %p
95
+ %a{href: '#', class: 'btn btn--block'}
96
+ Link
97
+ %code
98
+ %p= "<button type='button' class='btn btn--block'>Button</button>"
99
+ %p= "<a href='#' class='btn btn-block'>Link</a>"
100
+
101
+ %section
102
+ %a.scroll-target{name: 'buttons__fab'}
103
+ %h3.color-black Floating Action Button
104
+ %p
105
+ A Material design pattern, the
106
+ = link_to "floating action button", 'https://www.google.com/design/spec/components/buttons-floating-action-button.html#buttons-floating-action-button-large-screens', target: '_'
107
+ triggers the primary action of the page it lives on.
108
+ .panel--padded
109
+ %p
110
+ %a{href: '#', class: 'fab'}
111
+ = i('add')
112
+ %p
113
+ %a{href: '#', class: 'fab fab--primary'}
114
+ = i('edit')
115
+
116
+ %code
117
+ %p= "<a href='#' class='fab'><i class='material-icon'>add</i></a>"
118
+ %p= "<a href='#' class='fab fab--primary'><i class='material-icon'>edit</i></a>"
@@ -0,0 +1,59 @@
1
+ %section
2
+ %a.scroll-target{name: 'colors'}
3
+ %h3.color-black Colors
4
+
5
+ .panel.panel--padded
6
+ %h4 Neutral colors
7
+ .styleguide-colors
8
+ .styleguide-color-block
9
+ %span.styleguide-color.bg-color-black
10
+ %label.input-block__label
11
+ Black
12
+ .styleguide-color-block
13
+ %span.styleguide-color.bg-color-white
14
+ %label.input-block__label
15
+ White
16
+ .styleguide-color-block
17
+ %span.styleguide-color.bg-color-grey
18
+ %label.input-block__label
19
+ Grey
20
+ .spacer
21
+
22
+ %h4 Base colors
23
+ .styleguide-colors
24
+ .styleguide-color-block
25
+ .styleguide-color.bg-color-primary
26
+ %label.input-block__label
27
+ Primary
28
+ .styleguide-color-block
29
+ .styleguide-color.bg-color-secondary
30
+ %label.input-block__label
31
+ Secondary
32
+ .styleguide-color-block
33
+ .styleguide-color.bg-color-accent
34
+ %label.input-block__label
35
+ Accent
36
+ .spacer
37
+
38
+ %h4 Notification colors
39
+ .styleguide-colors
40
+ .styleguide-color-block
41
+ .styleguide-color.bg-color-required
42
+ %label.input-block__label
43
+ Required
44
+ .styleguide-color-block
45
+ .styleguide-color.bg-color-error
46
+ %label.input-block__label
47
+ Error
48
+ .styleguide-color-block
49
+ .styleguide-color.bg-color-success
50
+ %label.input-block__label
51
+ Success
52
+ .styleguide-color-block
53
+ .styleguide-color.bg-color-warning
54
+ %label.input-block__label
55
+ Warning
56
+ .spacer
57
+
58
+ = render 'tenon/styleguides/colors/variables'
59
+ = render 'tenon/styleguides/colors/helpers'
@@ -0,0 +1,4 @@
1
+ = form_for @mock, url: styleguides_path, builder: Tenon::FormBuilder do |f|
2
+ = render partial: 'tenon/styleguides/forms/default', locals: {f: f}
3
+ = render partial: 'tenon/styleguides/forms/html5', locals: {f: f}
4
+ =# render partial: 'tenon/styleguides/forms/tenon_content', locals: {f: f}
@@ -0,0 +1,21 @@
1
+ %section
2
+ %a.scroll-target{name: 'icons'}
3
+ %h3.color-black Icons
4
+ %p
5
+ All icons are using Google's
6
+ = link_to 'Materialize Font', 'https://design.google.com/icons', target: '_'
7
+ = "and can be easily added to any page using the ruby helper or an <i> element."
8
+ %br/
9
+ %em.font-smaller Note: Icon names with more than one word must be connected with an underscore.
10
+
11
+ .panel.panel--padded
12
+ - ['volume_up', 'volume_down', 'volume_mute', 'volume_off'].each do |icon|
13
+ %p
14
+ = i(icon)
15
+ %code.expandable
16
+ = expandable_toggle
17
+ %p= "<i class='material-icon'>#{icon}</i>"
18
+ %br/
19
+ %p
20
+ %span.color-primary Ruby:
21
+ = "i('#{icon}')"
@@ -0,0 +1,27 @@
1
+ %section
2
+ %a.scroll-target{name: 'typography'}
3
+ %a.scroll-target{name: 'typography__headings'}
4
+ %h3.color-black Headers
5
+ %p Includes mixins, variables and a class helpers for each.
6
+
7
+ .panel.panel--padded
8
+ - (1..6).each do |h|
9
+ %p{class: "font-h#{h}"} The quick brown fox jumps over the lazy dog.
10
+ %code.expandable
11
+ = expandable_toggle
12
+ %p= "<h#{h}>The quick brown fox jumps over the lazy dog.</h#{h}>"
13
+ %br/
14
+ %p
15
+ %span.color-primary Silent class:
16
+ = "@extend %font-h#{h};"
17
+ %p
18
+ %span.color-primary Variables:
19
+ = "$h#{h}-size, $h#{h}-line-height"
20
+
21
+ = render 'tenon/styleguides/typography/paragraphs'
22
+ = render 'tenon/styleguides/typography/small'
23
+ = render 'tenon/styleguides/typography/blockquote'
24
+ = render 'tenon/styleguides/typography/lists'
25
+ = render 'tenon/styleguides/typography/inline'
26
+ = render 'tenon/styleguides/typography/styles'
27
+ = render 'tenon/styleguides/typography/variables'
@@ -0,0 +1,43 @@
1
+ %section
2
+ %a.scroll-target{name: 'buttons'}
3
+ %a.scroll-target{name: 'button__styles'}
4
+ %h3.color-black Button Colors
5
+ -# %p
6
+ -# Use these classes on any HTML element that you would like to look and
7
+ -# act like a button. Can be used with any button color class below.
8
+ -#
9
+ -# .panel.panel--padded
10
+ -# %mh4 Standard Button
11
+ -# %p
12
+ -# %button{type: 'button', class: 'btn'}
13
+ -# Button
14
+ -# %p
15
+ -# %a{href: '#', class: 'btn'}
16
+ -# Link
17
+ -# %code
18
+ -# %p= "<button type='button' class='btn'>Button</button>"
19
+ -# %p= "<a href='#' class='btn'>Link</a>"
20
+ -#
21
+ -# %h4 Flat Button
22
+ -# %p Same as the standard button, but without depth.
23
+ -# %p
24
+ -# %button{type: 'button', class: 'btn btn-flat'}
25
+ -# Button
26
+ -# %p
27
+ -# %a{href: '#', class: 'btn btn-flat'}
28
+ -# Link
29
+ -# %code
30
+ -# %p= "<button type='button' class='btn btn-flat'>Button</button>"
31
+ -# %p= "<a href='#' class='btn btn-flat'>Link</a>"
32
+ -#
33
+ -# %h4 Block Button
34
+ -# %p Same as the standard button, but with display:block;
35
+ -# %p
36
+ -# %button{type: 'button', class: 'btn btn-block'}
37
+ -# Button
38
+ -# %p
39
+ -# %a{href: '#', class: 'btn btn-block'}
40
+ -# Link
41
+ -# %code
42
+ -# %p= "<button type='button' class='btn btn-block'>Button</button>"
43
+ -# %p= "<a href='#' class='btn btn-block'>Link</a>"
@@ -0,0 +1,59 @@
1
+ %section
2
+ %a.scroll-target{name: 'buttons'}
3
+ %a.scroll-target{name: 'button__styles'}
4
+ %h3.color-black Button Styles
5
+ %p
6
+ Use these classes on any HTML element that you would like to look and
7
+ act like a button. Can be used with any button color class below.
8
+
9
+ .panel.panel--padded
10
+ %h4 Standard Button
11
+ %p
12
+ %button{ type: 'button', class: 'btn' }
13
+ Button
14
+ %p
15
+ %a{ href: '#', class: 'btn' }
16
+ Link
17
+ %code
18
+ %p= "<button type='button' class='btn'>Button</button>"
19
+ %p= "<a href='#' class='btn'>Link</a>"
20
+
21
+ %h4 Flat Button
22
+ %p Same as the standard button, but without depth.
23
+ %p
24
+ %button{ type: 'button', class: 'btn btn-flat' }
25
+ Button
26
+ %p
27
+ %a{ href: '#', class: 'btn btn-flat' }
28
+ Link
29
+ %code
30
+ %p= "<button type='button' class='btn btn-flat'>Button</button>"
31
+ %p= "<a href='#' class='btn btn-flat'>Link</a>"
32
+
33
+ %h4 Block Button
34
+ %p Same as the standard button, but with display:block;
35
+ %p
36
+ %button{ type: 'button', class: 'btn btn-block' }
37
+ Button
38
+ %p
39
+ %a{ href: '#', class: 'btn btn-block' }
40
+ Link
41
+ %code
42
+ %p= "<button type='button' class='btn btn-block'>Button</button>"
43
+ %p= "<a href='#' class='btn btn-block'>Link</a>"
44
+
45
+ %h4 Floating Action Button
46
+ %p
47
+ A Material design pattern, the
48
+ = link_to "floating action button", 'https://www.google.com/design/spec/components/buttons-floating-action-button.html#buttons-floating-action-button-large-screens', target: '_'
49
+ triggers the primary action of the page it lives on.
50
+ %p
51
+ %a{ href: '#', class: 'btn-fab' }
52
+ = i('add')
53
+ %p
54
+ %a{ href: '#', class: 'btn-fab-reverse' }
55
+ = i('edit')
56
+
57
+ %code
58
+ %p= "<a href='#' class='btn-fab'><i class='material-icon'>add</i></a>"
59
+ %p= "<a href='#' class='btn-fab-reverse'><i class='material-icon'>edit</i></a>"