forgeos_cms 1.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (294) hide show
  1. data/LICENSE +2 -0
  2. data/README.textile +42 -0
  3. data/app/assets/images/forgeos/admin/favicon.gif +0 -0
  4. data/app/assets/javascripts/forgeos/admin/functions/forgeos_cms/carousels.js +56 -0
  5. data/app/assets/javascripts/forgeos/admin/functions/forgeos_cms/menus.js +93 -0
  6. data/app/assets/javascripts/forgeos/admin/functions/forgeos_cms/overlay.js +86 -0
  7. data/app/assets/javascripts/forgeos/admin/functions/forgeos_cms/trees.js +8 -0
  8. data/app/assets/javascripts/forgeos/admin/functions/forgeos_cms/widget_actualities.js +117 -0
  9. data/app/assets/javascripts/forgeos/admin/inits/forgeos_cms/carousels.js +131 -0
  10. data/app/assets/javascripts/forgeos/admin/inits/forgeos_cms/menus.js +294 -0
  11. data/app/assets/javascripts/forgeos/admin/inits/forgeos_cms/overlays.js +71 -0
  12. data/app/assets/javascripts/forgeos/admin/inits/forgeos_cms/trees.js +94 -0
  13. data/app/assets/javascripts/forgeos/admin/inits/forgeos_cms/widget_actualities.js +23 -0
  14. data/app/assets/javascripts/forgeos/admin/inits/forgeos_cms/widget_faq.js +13 -0
  15. data/app/assets/stylesheets/forgeos/admin/base.css.sass +2 -0
  16. data/app/assets/stylesheets/forgeos/admin/forgeos_cms/_all.css.sass +1 -0
  17. data/app/assets/stylesheets/forgeos/admin/forgeos_cms/_blocks.css.sass +220 -0
  18. data/app/assets/stylesheets/forgeos/jstree/themes/association_page/bubble-quantity-products.png +0 -0
  19. data/app/assets/stylesheets/forgeos/jstree/themes/association_page/check-checked.png +0 -0
  20. data/app/assets/stylesheets/forgeos/jstree/themes/association_page/check-unchecked.png +0 -0
  21. data/app/assets/stylesheets/forgeos/jstree/themes/association_page/context.gif +0 -0
  22. data/app/assets/stylesheets/forgeos/jstree/themes/association_page/create.png +0 -0
  23. data/app/assets/stylesheets/forgeos/jstree/themes/association_page/dark-blue-minus.png +0 -0
  24. data/app/assets/stylesheets/forgeos/jstree/themes/association_page/dark-blue-plus.png +0 -0
  25. data/app/assets/stylesheets/forgeos/jstree/themes/association_page/dot.gif +0 -0
  26. data/app/assets/stylesheets/forgeos/jstree/themes/association_page/f.png +0 -0
  27. data/app/assets/stylesheets/forgeos/jstree/themes/association_page/fminus.gif +0 -0
  28. data/app/assets/stylesheets/forgeos/jstree/themes/association_page/fminus_rtl.gif +0 -0
  29. data/app/assets/stylesheets/forgeos/jstree/themes/association_page/folder.png +0 -0
  30. data/app/assets/stylesheets/forgeos/jstree/themes/association_page/fplus.gif +0 -0
  31. data/app/assets/stylesheets/forgeos/jstree/themes/association_page/fplus_rtl.gif +0 -0
  32. data/app/assets/stylesheets/forgeos/jstree/themes/association_page/lastli.gif +0 -0
  33. data/app/assets/stylesheets/forgeos/jstree/themes/association_page/lastli_rtl.gif +0 -0
  34. data/app/assets/stylesheets/forgeos/jstree/themes/association_page/li.gif +0 -0
  35. data/app/assets/stylesheets/forgeos/jstree/themes/association_page/remove.png +0 -0
  36. data/app/assets/stylesheets/forgeos/jstree/themes/association_page/rename.png +0 -0
  37. data/app/assets/stylesheets/forgeos/jstree/themes/association_page/style.css.sass +219 -0
  38. data/app/assets/stylesheets/forgeos/jstree/themes/association_page/throbber.gif +0 -0
  39. data/app/assets/stylesheets/forgeos/jstree/themes/block_category/brown-minus.png +0 -0
  40. data/app/assets/stylesheets/forgeos/jstree/themes/block_category/brown-plus.png +0 -0
  41. data/app/assets/stylesheets/forgeos/jstree/themes/block_category/bubble-quantity-products.png +0 -0
  42. data/app/assets/stylesheets/forgeos/jstree/themes/block_category/context.gif +0 -0
  43. data/app/assets/stylesheets/forgeos/jstree/themes/block_category/create.png +0 -0
  44. data/app/assets/stylesheets/forgeos/jstree/themes/block_category/dot.gif +0 -0
  45. data/app/assets/stylesheets/forgeos/jstree/themes/block_category/f.png +0 -0
  46. data/app/assets/stylesheets/forgeos/jstree/themes/block_category/fminus.gif +0 -0
  47. data/app/assets/stylesheets/forgeos/jstree/themes/block_category/fminus_rtl.gif +0 -0
  48. data/app/assets/stylesheets/forgeos/jstree/themes/block_category/fplus.gif +0 -0
  49. data/app/assets/stylesheets/forgeos/jstree/themes/block_category/fplus_rtl.gif +0 -0
  50. data/app/assets/stylesheets/forgeos/jstree/themes/block_category/lastli.gif +0 -0
  51. data/app/assets/stylesheets/forgeos/jstree/themes/block_category/lastli_rtl.gif +0 -0
  52. data/app/assets/stylesheets/forgeos/jstree/themes/block_category/li.gif +0 -0
  53. data/app/assets/stylesheets/forgeos/jstree/themes/block_category/remove.png +0 -0
  54. data/app/assets/stylesheets/forgeos/jstree/themes/block_category/rename.png +0 -0
  55. data/app/assets/stylesheets/forgeos/jstree/themes/block_category/style.css.sass +138 -0
  56. data/app/assets/stylesheets/forgeos/jstree/themes/block_category/throbber.gif +0 -0
  57. data/app/assets/stylesheets/forgeos/jstree/themes/menu-tree/big-drag-and-drop.png +0 -0
  58. data/app/assets/stylesheets/forgeos/jstree/themes/menu-tree/bubble-quantity-products.png +0 -0
  59. data/app/assets/stylesheets/forgeos/jstree/themes/menu-tree/check-checked.png +0 -0
  60. data/app/assets/stylesheets/forgeos/jstree/themes/menu-tree/check-unchecked.png +0 -0
  61. data/app/assets/stylesheets/forgeos/jstree/themes/menu-tree/context.gif +0 -0
  62. data/app/assets/stylesheets/forgeos/jstree/themes/menu-tree/create.png +0 -0
  63. data/app/assets/stylesheets/forgeos/jstree/themes/menu-tree/dark-blue-minus.png +0 -0
  64. data/app/assets/stylesheets/forgeos/jstree/themes/menu-tree/dark-blue-plus.png +0 -0
  65. data/app/assets/stylesheets/forgeos/jstree/themes/menu-tree/dot.gif +0 -0
  66. data/app/assets/stylesheets/forgeos/jstree/themes/menu-tree/drag-drop.png +0 -0
  67. data/app/assets/stylesheets/forgeos/jstree/themes/menu-tree/f.png +0 -0
  68. data/app/assets/stylesheets/forgeos/jstree/themes/menu-tree/fminus.gif +0 -0
  69. data/app/assets/stylesheets/forgeos/jstree/themes/menu-tree/fminus_rtl.gif +0 -0
  70. data/app/assets/stylesheets/forgeos/jstree/themes/menu-tree/folder.png +0 -0
  71. data/app/assets/stylesheets/forgeos/jstree/themes/menu-tree/fplus.gif +0 -0
  72. data/app/assets/stylesheets/forgeos/jstree/themes/menu-tree/fplus_rtl.gif +0 -0
  73. data/app/assets/stylesheets/forgeos/jstree/themes/menu-tree/lastli.gif +0 -0
  74. data/app/assets/stylesheets/forgeos/jstree/themes/menu-tree/lastli_rtl.gif +0 -0
  75. data/app/assets/stylesheets/forgeos/jstree/themes/menu-tree/li.gif +0 -0
  76. data/app/assets/stylesheets/forgeos/jstree/themes/menu-tree/remove.png +0 -0
  77. data/app/assets/stylesheets/forgeos/jstree/themes/menu-tree/rename.png +0 -0
  78. data/app/assets/stylesheets/forgeos/jstree/themes/menu-tree/style.css.sass +186 -0
  79. data/app/assets/stylesheets/forgeos/jstree/themes/menu-tree/throbber.gif +0 -0
  80. data/app/assets/stylesheets/forgeos/jstree/themes/page_category/brown-minus.png +0 -0
  81. data/app/assets/stylesheets/forgeos/jstree/themes/page_category/brown-plus.png +0 -0
  82. data/app/assets/stylesheets/forgeos/jstree/themes/page_category/bubble-quantity-products.png +0 -0
  83. data/app/assets/stylesheets/forgeos/jstree/themes/page_category/context.gif +0 -0
  84. data/app/assets/stylesheets/forgeos/jstree/themes/page_category/create.png +0 -0
  85. data/app/assets/stylesheets/forgeos/jstree/themes/page_category/dot.gif +0 -0
  86. data/app/assets/stylesheets/forgeos/jstree/themes/page_category/f.png +0 -0
  87. data/app/assets/stylesheets/forgeos/jstree/themes/page_category/fminus.gif +0 -0
  88. data/app/assets/stylesheets/forgeos/jstree/themes/page_category/fminus_rtl.gif +0 -0
  89. data/app/assets/stylesheets/forgeos/jstree/themes/page_category/fplus.gif +0 -0
  90. data/app/assets/stylesheets/forgeos/jstree/themes/page_category/fplus_rtl.gif +0 -0
  91. data/app/assets/stylesheets/forgeos/jstree/themes/page_category/lastli.gif +0 -0
  92. data/app/assets/stylesheets/forgeos/jstree/themes/page_category/lastli_rtl.gif +0 -0
  93. data/app/assets/stylesheets/forgeos/jstree/themes/page_category/li.gif +0 -0
  94. data/app/assets/stylesheets/forgeos/jstree/themes/page_category/remove.png +0 -0
  95. data/app/assets/stylesheets/forgeos/jstree/themes/page_category/rename.png +0 -0
  96. data/app/assets/stylesheets/forgeos/jstree/themes/page_category/style.css.sass +138 -0
  97. data/app/assets/stylesheets/forgeos/jstree/themes/page_category/throbber.gif +0 -0
  98. data/app/controllers/actualities_controller.rb +11 -0
  99. data/app/controllers/admin/actualities_controller.rb +100 -0
  100. data/app/controllers/admin/base_controller.rb +11 -0
  101. data/app/controllers/admin/carousels_controller.rb +101 -0
  102. data/app/controllers/admin/import_controller.rb +20 -0
  103. data/app/controllers/admin/menus_controller.rb +104 -0
  104. data/app/controllers/admin/newsletters_controller.rb +110 -0
  105. data/app/controllers/admin/pages_controller.rb +169 -0
  106. data/app/controllers/admin/static_content_blocks_controller.rb +174 -0
  107. data/app/controllers/admin/statistics_controller.rb +29 -0
  108. data/app/controllers/admin/widget_actualities_controller.rb +101 -0
  109. data/app/controllers/admin/widget_faqs_controller.rb +71 -0
  110. data/app/controllers/admin/widgets_controller.rb +83 -0
  111. data/app/controllers/forgeos/application_controller.rb +21 -0
  112. data/app/controllers/newsletters_controller.rb +11 -0
  113. data/app/controllers/pages_controller.rb +24 -0
  114. data/app/controllers/search_controller.rb +7 -0
  115. data/app/helpers/application_helper.rb +43 -0
  116. data/app/helpers/menu_helper.rb +46 -0
  117. data/app/helpers/routes_helper.rb +19 -0
  118. data/app/models/actuality.rb +21 -0
  119. data/app/models/block.rb +65 -0
  120. data/app/models/block_category.rb +7 -0
  121. data/app/models/carousel.rb +14 -0
  122. data/app/models/carousel_item.rb +12 -0
  123. data/app/models/category_link.rb +2 -0
  124. data/app/models/comment.rb +6 -0
  125. data/app/models/external_link.rb +5 -0
  126. data/app/models/faq.rb +10 -0
  127. data/app/models/link_page.rb +2 -0
  128. data/app/models/menu.rb +30 -0
  129. data/app/models/menu_category.rb +7 -0
  130. data/app/models/menu_link.rb +57 -0
  131. data/app/models/newsletter.rb +5 -0
  132. data/app/models/page.rb +85 -0
  133. data/app/models/page_category.rb +11 -0
  134. data/app/models/page_col.rb +14 -0
  135. data/app/models/page_link.rb +17 -0
  136. data/app/models/page_sweeper.rb +54 -0
  137. data/app/models/static_content_block.rb +2 -0
  138. data/app/models/static_content_category.rb +2 -0
  139. data/app/models/widget.rb +2 -0
  140. data/app/models/widget_actuality.rb +19 -0
  141. data/app/models/widget_category.rb +2 -0
  142. data/app/models/widget_faq.rb +12 -0
  143. data/app/views/actualities/rss.rxml +20 -0
  144. data/app/views/admin/actualities/_form.html.haml +38 -0
  145. data/app/views/admin/actualities/_tabs.html.haml +5 -0
  146. data/app/views/admin/actualities/edit.html.haml +3 -0
  147. data/app/views/admin/actualities/index.html.haml +10 -0
  148. data/app/views/admin/actualities/index.json.erb +34 -0
  149. data/app/views/admin/actualities/new.html.haml +3 -0
  150. data/app/views/admin/blocks/_associated_pages.html.haml +33 -0
  151. data/app/views/admin/blocks/_tabs.html.haml +8 -0
  152. data/app/views/admin/carousels/_attachments_popups.html.haml +81 -0
  153. data/app/views/admin/carousels/_form.html.haml +95 -0
  154. data/app/views/admin/carousels/_form_item.html.haml +54 -0
  155. data/app/views/admin/carousels/_item.html.haml +25 -0
  156. data/app/views/admin/carousels/edit.html.haml +1 -0
  157. data/app/views/admin/carousels/new.html.haml +1 -0
  158. data/app/views/admin/carousels/show.html.haml +40 -0
  159. data/app/views/admin/categories/_block.html.haml +4 -0
  160. data/app/views/admin/categories/_list_blocks.html.haml +13 -0
  161. data/app/views/admin/categories/_list_pages.html.haml +13 -0
  162. data/app/views/admin/categories/_page.html.haml +2 -0
  163. data/app/views/admin/dashboard/index.html.haml +19 -0
  164. data/app/views/admin/menu_links/_show.html.haml +8 -0
  165. data/app/views/admin/menus/_empty_menu_link.html.haml +45 -0
  166. data/app/views/admin/menus/_form.html.haml +27 -0
  167. data/app/views/admin/menus/_form_menu_links.html.haml +60 -0
  168. data/app/views/admin/menus/_lang_switcher.html.haml +2 -0
  169. data/app/views/admin/menus/_tabs.html.haml +5 -0
  170. data/app/views/admin/menus/_types_popups.html.haml +21 -0
  171. data/app/views/admin/menus/edit.html.haml +1 -0
  172. data/app/views/admin/menus/index.html.haml +13 -0
  173. data/app/views/admin/menus/index.json.erb +31 -0
  174. data/app/views/admin/menus/new.html.haml +1 -0
  175. data/app/views/admin/menus/show.html.haml +22 -0
  176. data/app/views/admin/newsletters/_form.html.haml +19 -0
  177. data/app/views/admin/newsletters/_tabs.html.haml +3 -0
  178. data/app/views/admin/newsletters/edit.html.haml +2 -0
  179. data/app/views/admin/newsletters/index.html.haml +14 -0
  180. data/app/views/admin/newsletters/index.json.erb +22 -0
  181. data/app/views/admin/newsletters/new.html.haml +2 -0
  182. data/app/views/admin/pages/_block_popup.html.haml +18 -0
  183. data/app/views/admin/pages/_blocks.html.haml +29 -0
  184. data/app/views/admin/pages/_codes.html.haml +33 -0
  185. data/app/views/admin/pages/_form.html.haml +15 -0
  186. data/app/views/admin/pages/_general.html.haml +64 -0
  187. data/app/views/admin/pages/_seo.html.haml +31 -0
  188. data/app/views/admin/pages/_tabs.html.haml +5 -0
  189. data/app/views/admin/pages/_tabs_show.html.haml +9 -0
  190. data/app/views/admin/pages/edit.html.haml +1 -0
  191. data/app/views/admin/pages/index.html.haml +13 -0
  192. data/app/views/admin/pages/index.json.erb +37 -0
  193. data/app/views/admin/pages/new.html.haml +2 -0
  194. data/app/views/admin/pages/show.html.haml +100 -0
  195. data/app/views/admin/static_content_blocks/_form.html.haml +41 -0
  196. data/app/views/admin/static_content_blocks/edit.html.haml +1 -0
  197. data/app/views/admin/static_content_blocks/index.html.haml +16 -0
  198. data/app/views/admin/static_content_blocks/index.json.erb +28 -0
  199. data/app/views/admin/static_content_blocks/new.html.haml +1 -0
  200. data/app/views/admin/static_content_blocks/show.html.haml +23 -0
  201. data/app/views/admin/statistics/index.html.haml +57 -0
  202. data/app/views/admin/users/_tabs.html.haml +3 -0
  203. data/app/views/admin/widget_actualities/_form.html.haml +87 -0
  204. data/app/views/admin/widget_actualities/_form_item.html.haml +28 -0
  205. data/app/views/admin/widget_actualities/_item.html.haml +11 -0
  206. data/app/views/admin/widget_actualities/_tabs.html.haml +8 -0
  207. data/app/views/admin/widget_actualities/edit.html.haml +2 -0
  208. data/app/views/admin/widget_actualities/new.html.haml +2 -0
  209. data/app/views/admin/widget_actualities/show.html.haml +39 -0
  210. data/app/views/admin/widget_faqs/_form.html.haml +68 -0
  211. data/app/views/admin/widget_faqs/_tabs.html.haml +8 -0
  212. data/app/views/admin/widget_faqs/edit.html.haml +2 -0
  213. data/app/views/admin/widget_faqs/new.html.haml +2 -0
  214. data/app/views/admin/widgets/_tabs.html.haml +8 -0
  215. data/app/views/admin/widgets/index.html.haml +28 -0
  216. data/app/views/admin/widgets/index.json.erb +27 -0
  217. data/app/views/layouts/admin/_menu.html.haml +0 -0
  218. data/app/views/layouts/application.html.haml +21 -0
  219. data/app/views/pages/_linked_pages.html.haml +4 -0
  220. data/app/views/pages/_page.html.haml +15 -0
  221. data/app/views/pages/show.html.haml +9 -0
  222. data/app/views/search/index.html.haml +8 -0
  223. data/config/locales/activerecord/en.yml +48 -0
  224. data/config/locales/activerecord/fr.yml +77 -0
  225. data/config/locales/admin/actuality/en.yml +30 -0
  226. data/config/locales/admin/actuality/fr.yml +30 -0
  227. data/config/locales/admin/block/en.yml +38 -0
  228. data/config/locales/admin/block/fr.yml +38 -0
  229. data/config/locales/admin/carousel/en.yml +24 -0
  230. data/config/locales/admin/carousel/fr.yml +24 -0
  231. data/config/locales/admin/menu/en.yml +33 -0
  232. data/config/locales/admin/menu/fr.yml +38 -0
  233. data/config/locales/admin/newsletter/en.yml +30 -0
  234. data/config/locales/admin/newsletter/fr.yml +30 -0
  235. data/config/locales/admin/page/en.yml +77 -0
  236. data/config/locales/admin/page/fr.yml +77 -0
  237. data/config/locales/admin/section/en.yml +23 -0
  238. data/config/locales/admin/section/fr.yml +23 -0
  239. data/config/locales/admin/static_content_block/en.yml +43 -0
  240. data/config/locales/admin/static_content_block/fr.yml +42 -0
  241. data/config/locales/admin/widget/en.yml +34 -0
  242. data/config/locales/admin/widget/fr.yml +34 -0
  243. data/config/locales/admin/widget_actuality/en.yml +23 -0
  244. data/config/locales/admin/widget_actuality/fr.yml +23 -0
  245. data/config/locales/admin/widget_faq/en.yml +22 -0
  246. data/config/locales/admin/widget_faq/fr.yml +30 -0
  247. data/config/locales/common/en.yml +208 -0
  248. data/config/locales/common/fr.yml +209 -0
  249. data/config/routes.rb +73 -0
  250. data/db/fixtures/menu_link_translations.yml +5 -0
  251. data/db/fixtures/menu_links.yml +5 -0
  252. data/db/fixtures/menus.yml +3 -0
  253. data/db/fixtures/page_translations.yml +19 -0
  254. data/db/fixtures/pages.yml +5 -0
  255. data/db/fixtures/people.yml +11 -0
  256. data/db/migrate/20091009134405_create_actualities.rb +18 -0
  257. data/db/migrate/20091009134503_create_blocks.rb +15 -0
  258. data/db/migrate/20091009134510_create_blocks_pages.rb +13 -0
  259. data/db/migrate/20091009134518_create_carousel_items.rb +17 -0
  260. data/db/migrate/20091009134729_create_pages.rb +18 -0
  261. data/db/migrate/20091009134736_create_pages_links.rb +12 -0
  262. data/db/migrate/20091027153116_create_menus.rb +14 -0
  263. data/db/migrate/20091027153659_create_menu_links.rb +19 -0
  264. data/db/migrate/20091208113459_create_page_translations.rb +9 -0
  265. data/db/migrate/20091208113460_create_block_translations.rb +9 -0
  266. data/db/migrate/20091208113461_create_menu_link_translations.rb +9 -0
  267. data/db/migrate/20091208170256_remove_translations_to_page.rb +10 -0
  268. data/db/migrate/20091208170257_remove_translations_to_block.rb +9 -0
  269. data/db/migrate/20091208170258_remove_translations_to_menu_link.rb +9 -0
  270. data/db/migrate/20100203102853_add_actuality_translations.rb +9 -0
  271. data/db/migrate/20100203102914_add_carousel_item_translations.rb +9 -0
  272. data/db/migrate/20100203125804_remove_translated_columns_to_actualities.rb +9 -0
  273. data/db/migrate/20100203125820_remove_translated_columns_to_carousel_items.rb +10 -0
  274. data/db/migrate/20100405095844_create_page_cols_table.rb +12 -0
  275. data/db/migrate/20100405101416_create_blocks_page_cols.rb +13 -0
  276. data/db/migrate/20100407093551_create_table_translation_for_page_cols.rb +13 -0
  277. data/db/migrate/20100413134832_add_index_on_menu_links.rb +11 -0
  278. data/db/migrate/20100501150819_add_code_to_pages.rb +13 -0
  279. data/db/migrate/20100511161012_create_faqs.rb +13 -0
  280. data/db/migrate/20100526163534_add_popup_to_menu_link.rb +9 -0
  281. data/db/migrate/20100929183346_change_answer_type.rb +9 -0
  282. data/db/migrate/20101015095242_update_actualities.rb +11 -0
  283. data/db/migrate/20101216155044_create_newsletter.rb +12 -0
  284. data/db/migrate/20110310092311_add_indexes_to_menu.rb +9 -0
  285. data/db/migrate/20110408133955_add_summary_to_menu_link_translations.rb +7 -0
  286. data/lib/forgeos/admin_menu.rb +14 -0
  287. data/lib/forgeos/cms.rb +8 -0
  288. data/lib/forgeos/cms/engine.rb +8 -0
  289. data/lib/forgeos/cms/statistics.rb +16 -0
  290. data/lib/forgeos_cms.rb +3 -0
  291. data/lib/tasks/install.rake +9 -0
  292. data/lib/tasks/upgrade.rake +22 -0
  293. data/recipes/deploy.rb +14 -0
  294. metadata +375 -0
File without changes
@@ -0,0 +1,21 @@
1
+ !!!
2
+ %html{ "xml:lang" => I18n.locale, :lang => I18n.locale, :xmlns => "http://www.w3.org/1999/xhtml" }
3
+ %head
4
+ %meta{ :content => "text/html; charset=utf-8", "http-equiv" => "Content-Type" }
5
+ %title
6
+ = yield :title
7
+ |
8
+ = Setting.first.name
9
+ - if kw = yield(:meta_keywords) and !kw.blank?
10
+ %meta{ :name => 'keywords', :content => kw}
11
+ - if desc = yield(:meta_description) and !desc.blank?
12
+ %meta{ :name => 'description', :content => desc }
13
+ %meta{ :name => 'generator', :content => 'Forgeos Cms 0.9.5' }
14
+ = yield :meta
15
+
16
+ %link{ :href => "favicon.ico", :rel => "icon", :type => "image/x-icon" }
17
+ %link{ :href => "favicon.ico", :rel => "shortcut icon", :type => "image/x-icon" }
18
+ = stylesheet_link_tag 'application'
19
+ %body
20
+ = display_menu(@menu) if @menu
21
+ = yield
@@ -0,0 +1,4 @@
1
+ .linked_pages
2
+ - unless linked_pages.blank?
3
+ #{t('linked_pages').capitalize} :
4
+ = linked_pages.collect{ |page| link_to_page(page) }.join(', ')
@@ -0,0 +1,15 @@
1
+ - object.blocks.each do |block|
2
+ - case block
3
+ - when Carousel
4
+ .carousel-list
5
+ %ul{ :id => "carousel_#{block.id}" }
6
+ - block.items.each do |item|
7
+ %li
8
+ = link_to image_tag(item.picture.public_filename(:normal), :alt => item.picture.name ), item.url
9
+ %span= item.title
10
+ - else
11
+ %div{ :id => "block_#{block.id}" }= block.content
12
+ %div{ :id => "page_#{object.id}" }= object.content
13
+
14
+ = render :partial => 'linked_pages', :locals => { :linked_pages => object.linked_pages }
15
+ = statistics_collector_tag(object)
@@ -0,0 +1,9 @@
1
+ - if @page
2
+ = render @page
3
+ - if @page.meta_info
4
+ - content_for :title, @page.meta_info.title
5
+ - content_for :meta_description, @page.meta_info.description
6
+ - content_for :meta_keywords, @page.meta_info.keywords
7
+
8
+ - else
9
+ = I18n.t('page_not_found').capitalize
@@ -0,0 +1,8 @@
1
+ .inner-content
2
+ .cart-step-content
3
+ - if @items.empty?
4
+ = t(:page_not_found)
5
+ - else
6
+ %ul
7
+ - @items.each do |item|
8
+ %li= link_to item.title, item.url
@@ -0,0 +1,48 @@
1
+ # Active record
2
+ en:
3
+ activerecord:
4
+ models:
5
+ block: block
6
+ carousel_item: carousel item
7
+ page: page
8
+ section: section
9
+ right: right
10
+ role: role
11
+ static_content_block: static content
12
+ carousel: carousel
13
+ widget_actuality: widget actualities
14
+ errors:
15
+ models:
16
+ section:
17
+ attributes:
18
+ base:
19
+ section_and_parent_must_be_differents: "section can't be its own parent"
20
+ parent_must_be_top_section: "parent section can't be a sub section"
21
+ messages:
22
+ has_single_key: is protected
23
+ attributes:
24
+ admin:
25
+ lastname: firstname
26
+ firstname: lastname
27
+ password: password
28
+ password_confirmation: password confirmation
29
+ email: email
30
+ block:
31
+ the_block: a block
32
+ title: title
33
+ content: content
34
+ page:
35
+ the_page: a page
36
+ title: title
37
+ content: content
38
+ url: url
39
+ single_key: unique identifier
40
+ right:
41
+ name: name
42
+ action_name: action name
43
+ controller_name: controller name
44
+ role:
45
+ name: name
46
+ section:
47
+ title: title
48
+ url: url
@@ -0,0 +1,77 @@
1
+ fr:
2
+ # Active record
3
+ fr:
4
+ activerecord:
5
+ models:
6
+ block: bloc
7
+ carousel_item: élément de carrousel
8
+ page: page
9
+ section: section
10
+ right: droit
11
+ role: rôle
12
+ static_content_block: contenu statique
13
+ carousel: carrousel
14
+ widget_actuality: "widget d'actualités"
15
+ errors:
16
+ models:
17
+ section:
18
+ attributes:
19
+ base:
20
+ section_and_parent_must_be_differents: 'la section parent ne peut pas être la section courante'
21
+ parent_must_be_top_section: 'la section parente ne peut pas être une sous-section'
22
+ messages:
23
+ confirmation: 'ne correspond pas avec la confirmation'
24
+ accepted: 'doit être accepté(e)'
25
+ blank: 'ne peut pas être vide'
26
+ too_short: 'est trop court'
27
+ too_long: 'est trop long'
28
+ wrong_length:
29
+ one: 'est de la mauvaise longueur (devrait être 1 caractère)'
30
+ other: 'est de la mauvaise longueur (devrait être %{count} caractères)'
31
+ taken: 'est déjà pris'
32
+ invalid: 'est invalide'
33
+ inclusion: "n'est pas inclus dans la liste"
34
+ exclusion: 'est réservé'
35
+ not_a_number: "n'est pas un nombre"
36
+ greater_than: 'doit être plus grand que %{count}'
37
+ greater_than_or_equal_to: 'doit être plus grand ou égal à %{count}'
38
+ equal_to: 'doit être égal à %{count}'
39
+ less_than: 'doit être plus petit que %{count}'
40
+ less_than_or_equal_to: 'doit être plus petit ou égal à %{count}'
41
+ odd: 'doit être paire'
42
+ even: 'doit être impaire'
43
+ # specific
44
+ has_single_key: 'est protégé(e)'
45
+ template:
46
+ header:
47
+ one: "1 erreur a empêché la sauvegarde de l'élément %{model}"
48
+ other: "%{count}} erreurs ont empêché la sauvegarde de l'élément {{model}"
49
+ body: 'Une erreur est survenue pour les champs suivants :'
50
+
51
+
52
+ attributes:
53
+ admin:
54
+ lastname: 'nom'
55
+ firstname: 'prénom'
56
+ password: 'mot de passe'
57
+ password_confirmation: 'confirmation mot de passe'
58
+ email: 'e-mail'
59
+ block:
60
+ the_block: 'le bloc'
61
+ title: 'titre'
62
+ content: 'contenu'
63
+ page:
64
+ the_page: 'la page'
65
+ title: 'titre'
66
+ content: 'contenu'
67
+ url: 'url'
68
+ single_key: 'identifiant unique'
69
+ right:
70
+ name: 'nom'
71
+ action_name: "nom de l'action"
72
+ controller_name: 'nom du contrôleur'
73
+ role:
74
+ name: 'nom'
75
+ section:
76
+ title: 'titre'
77
+ url: 'url'
@@ -0,0 +1,30 @@
1
+ en:
2
+ actuality:
3
+ one: 'actuality'
4
+ other: 'actualities'
5
+ author: 'author'
6
+ date: 'date'
7
+ show: 'show actualities'
8
+ none: 'no actualities'
9
+ add_comment: 'add a comment'
10
+ name: actuality title
11
+ create:
12
+ action: 'add an actuality'
13
+ success: 'the actuality was successfuly created'
14
+ failed: 'a problem occured during the actuality creation'
15
+ update:
16
+ success: 'the actuality was successfully updated'
17
+ failed: 'a problem occured during the actuality update'
18
+ action: 'edit actuality'
19
+ destroy:
20
+ action: 'delete the actuality'
21
+ success: 'the actuality was successfully deleted'
22
+ failed: 'a problem occured during the actuality deletion'
23
+ confirm: 'are you sure that you want to delete this actuality?'
24
+ picture:
25
+ change: change the picture
26
+ add: add a picture
27
+ create: add a picture
28
+ name: picture
29
+ visual:
30
+ add: add a picture
@@ -0,0 +1,30 @@
1
+ fr:
2
+ actuality:
3
+ one: 'actualité'
4
+ other: 'actualités'
5
+ author: 'auteur'
6
+ date: 'date'
7
+ show: "voir l'actualité"
8
+ none: 'aucune actualité'
9
+ add_comment: 'commenter'
10
+ name: "titre de l'actualité"
11
+ create:
12
+ action: 'ajouter une actualité'
13
+ success: "l'actualité a bien été créé"
14
+ failed: "un problème est survenu lors de la création de l'actualité"
15
+ update:
16
+ action: "éditer l'actualité"
17
+ success: "l'actualité a bien été mis à jour"
18
+ failed: "un problème est survenu lors de la mise à jour de l'actualité"
19
+ destroy:
20
+ action: "supprimer l'actualité"
21
+ success: "l'actualité a bien été supprimé"
22
+ failed: "un problème est survenu lors de la suppression de l'actualité"
23
+ confirm: 'êtes-vous sûr de vouloir supprimer cette actualité ?'
24
+ picture:
25
+ change: changer la photo
26
+ add: ajouter une photo
27
+ create: ajouter une photo
28
+ name: "photo de l'article"
29
+ visual:
30
+ add: ajouter une photo
@@ -0,0 +1,38 @@
1
+ en:
2
+ block:
3
+ one: 'block'
4
+ other: 'blocks'
5
+ all: 'all blocks'
6
+ list: 'list of blocks'
7
+ none: 'no blocks'
8
+ show: "show block"
9
+ not_exist: 'the requested block does not exist'
10
+ link:
11
+ create:
12
+ action: 'link block to pages'
13
+ success: 'the block links were successfully created'
14
+ failed: "this block can't be linked to a page"
15
+ page_not_exist: 'the linked page does not exist'
16
+ update:
17
+ success: 'the block links were successfully updated'
18
+ failed: "the block links can't be updated"
19
+ destroy:
20
+ success: 'the block was successfully removed from this page'
21
+ create:
22
+ success: 'the block was successfully created'
23
+ failed: 'a problem occured during the block creation'
24
+ action: 'create block'
25
+ update:
26
+ success: 'the block was successfully updated'
27
+ failed: 'a problem occured during the block update'
28
+ action:
29
+ one: 'edit block'
30
+ other: 'edit blocks'
31
+ destroy:
32
+ success: 'the block was successfully deleted'
33
+ failed: 'a problem occured during the block deletion'
34
+ confirm: 'are you sure that you want to delete this block?'
35
+ confirm_associated: 'Are you sure that you want to delete this block? (it will be removed from all its associated pages)'
36
+ moved:
37
+ down: 'the block was successfully moved down'
38
+ up: 'the block was successfully moved up'
@@ -0,0 +1,38 @@
1
+ fr:
2
+ block:
3
+ one: bloc
4
+ other: blocs
5
+ all: tous les blocs
6
+ list: liste des blocs
7
+ none: aucun bloc
8
+ show: voir le bloc
9
+ not_exist: "le bloc sélectioné n'existe pas"
10
+ link:
11
+ create:
12
+ action: 'associer le bloc à des pages'
13
+ success: 'les liens de ce bloc statique ont bien été créés'
14
+ failed: 'ce bloc statique ne peut pas être lié à une image'
15
+ page_not_exist: "la page liée n'existe pas"
16
+ update:
17
+ success: 'les liens de ce bloc statique ont bien été modifiés'
18
+ failed: 'un problème est survenu lors de la mise à jour des liens du bloc statique'
19
+ destroy:
20
+ success: 'le bloc statique a bien été enlevé de cette page'
21
+ create:
22
+ success: 'le bloc statique a bien été créé'
23
+ failed: 'un problème est survenu lors de la création du bloc statique'
24
+ action: 'créer un bloc statique'
25
+ update:
26
+ success: 'le bloc statique a bien été mis à jour'
27
+ failed: 'un problème est survenu lors de la mise à jour du bloc statique'
28
+ action:
29
+ one: 'éditer le bloc statique'
30
+ other: 'éditer les blocs statiques'
31
+ destroy:
32
+ success: 'le bloc statique a bien été supprimé'
33
+ failed: 'un problème est survenu lors de la suppression du bloc statique'
34
+ confirm: 'êtes-vous sûr de vouloir supprimer ce bloc statique ?'
35
+ confirm_associated: 'êtes-vous sûr de vouloir supprimer ce bloc statique ? (il sera supprimé de toutes les pages associées)'
36
+ moved:
37
+ down: 'le bloc a bien été déplacé vers le bas'
38
+ up: 'le bloc a bien été déplacé vers le haut'
@@ -0,0 +1,24 @@
1
+ en:
2
+ carousel:
3
+ one: 'carousel'
4
+ other: 'carousels'
5
+ none: 'no carousels'
6
+ not_exist: 'the requested carousel does not exist'
7
+ list: 'list of carousels'
8
+ show: 'show carousel'
9
+ change_picture: 'change picture'
10
+ create:
11
+ action: 'create carousel'
12
+ success: 'the carousel was successfully created'
13
+ failed: "the carousel can't be created"
14
+ update:
15
+ action: 'edit carousel'
16
+ success: 'the carousel was successfully updated'
17
+ failed: "the carousel can't be updated"
18
+ destroy:
19
+ confirm: 'are you sure that you want to delete this carousel?'
20
+ success: 'the carousel was successfully deleted'
21
+ failed: "the carousel can't be deleted"
22
+ link:
23
+ create:
24
+ failed: 'the linked carousel does not exist'
@@ -0,0 +1,24 @@
1
+ fr:
2
+ carousel:
3
+ one: 'carrousel'
4
+ other: 'carrousels'
5
+ none: 'aucun carrousel'
6
+ not_exist: "le carrousel sélectionné n'existe pas"
7
+ list: 'liste des carrousels'
8
+ show: 'voir le carrousel'
9
+ change_picture: "changer l'image"
10
+ create:
11
+ action: 'créer un carrousel'
12
+ success: 'le carrousel a bien été créé'
13
+ failed: 'un problème est survenu lors de la création du carrousel'
14
+ update:
15
+ action: 'éditer le carrousel'
16
+ success: 'le carrousel a bien été mis à jour'
17
+ failed: 'un problème est survenu lors de la mise à jour du carrousel'
18
+ destroy:
19
+ confirm: 'êtes-vous sûr de vouloir supprimer ce carrousel ?'
20
+ success: 'le carrousel a bien été supprimé'
21
+ failed: 'un problème est survenu lors de la suppression du carrousel'
22
+ link:
23
+ create:
24
+ failed: "le carrousel lié n'existe pas"
@@ -0,0 +1,33 @@
1
+ en:
2
+ menu:
3
+ one: menu
4
+ other: menus
5
+ none: no menus
6
+ all: all menus
7
+ show: show menu
8
+ back: back to menus list
9
+ duplicate: duplicate menu
10
+ not_exist: the requested menu does not exist
11
+ create:
12
+ success: the menu was successfully created
13
+ failed: a problem occured during the menu creation
14
+ action: create menu
15
+ update:
16
+ success: the menu was successfully updated
17
+ failed: a problem occured during the menu update
18
+ action: edit menu
19
+ destroy:
20
+ success: the menu was successfully deleted
21
+ failed: a problem occured during the menu deletion
22
+ confirm: are you sure that you want to delete this menu?
23
+ action: delete menu
24
+ link:
25
+ title: link title
26
+ add: add link
27
+ change: change
28
+ linked_to: linked to
29
+ visibility: visibility
30
+ popup: open in popup ?
31
+ clickable: this item is clickable
32
+ show: show in menu
33
+ hide: hidde in menu
@@ -0,0 +1,38 @@
1
+ fr:
2
+ menu:
3
+ one: menu
4
+ other: menus
5
+ none: aucun menu
6
+ all: tous les menus
7
+ show: voir le menu
8
+ back: retour vers les menus
9
+ duplicate: dupliquer le menu
10
+ not_exist: "le menu sélectionné n'existe pas"
11
+ create:
12
+ success: le menu a bien été créé
13
+ failed: un problème est survenu lors de la création du menu
14
+ action: créer un menu
15
+ update:
16
+ success: le menu a bien été mis à jour
17
+ failed: un problème est survenu lors de la mise à jour du menu
18
+ action: éditer le menu
19
+ destroy:
20
+ success: le menu a bien été supprimé
21
+ failed: un problème est survenu lors de la suppression du menu
22
+ confirm: êtes-vous sûr de vouloir supprimer ce menu ?
23
+ action: supprimer le menu
24
+ link:
25
+ title: titre du lien
26
+ add: ajouter un lien
27
+ change: changer
28
+ linked_to: lié à
29
+ visibility: visibilité
30
+ popup: nouvelle fenêtre/onglet ?
31
+ clickable: ce lien est cliquable
32
+ show: affiché
33
+ hide: caché
34
+ helpers:
35
+ label:
36
+ menu_links_attributes:
37
+ popup: nouvel onglet ?
38
+ summary: résumé