georgia 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (366) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +27 -0
  4. data/Rakefile +27 -0
  5. data/app/assets/fonts/georgia/signika-bold-webfont.eot +0 -0
  6. data/app/assets/fonts/georgia/signika-bold-webfont.svg +1711 -0
  7. data/app/assets/fonts/georgia/signika-bold-webfont.ttf +0 -0
  8. data/app/assets/fonts/georgia/signika-bold-webfont.woff +0 -0
  9. data/app/assets/fonts/georgia/signika-light-webfont.eot +0 -0
  10. data/app/assets/fonts/georgia/signika-light-webfont.svg +1680 -0
  11. data/app/assets/fonts/georgia/signika-light-webfont.ttf +0 -0
  12. data/app/assets/fonts/georgia/signika-light-webfont.woff +0 -0
  13. data/app/assets/fonts/georgia/signika-regular-webfont.eot +0 -0
  14. data/app/assets/fonts/georgia/signika-regular-webfont.svg +1746 -0
  15. data/app/assets/fonts/georgia/signika-regular-webfont.ttf +0 -0
  16. data/app/assets/fonts/georgia/signika-regular-webfont.woff +0 -0
  17. data/app/assets/images/georgia/bg-body-bar.jpg +0 -0
  18. data/app/assets/images/georgia/checkmark.png +0 -0
  19. data/app/assets/images/georgia/content-types/avi.jpg +0 -0
  20. data/app/assets/images/georgia/content-types/css.jpg +0 -0
  21. data/app/assets/images/georgia/content-types/csv.jpg +0 -0
  22. data/app/assets/images/georgia/content-types/doc.jpg +0 -0
  23. data/app/assets/images/georgia/content-types/docx.jpg +0 -0
  24. data/app/assets/images/georgia/content-types/eps.jpg +0 -0
  25. data/app/assets/images/georgia/content-types/gif.jpg +0 -0
  26. data/app/assets/images/georgia/content-types/gz.jpg +0 -0
  27. data/app/assets/images/georgia/content-types/html.jpg +0 -0
  28. data/app/assets/images/georgia/content-types/jpg.jpg +0 -0
  29. data/app/assets/images/georgia/content-types/mp3.jpg +0 -0
  30. data/app/assets/images/georgia/content-types/ods.jpg +0 -0
  31. data/app/assets/images/georgia/content-types/odt.jpg +0 -0
  32. data/app/assets/images/georgia/content-types/pdf.jpg +0 -0
  33. data/app/assets/images/georgia/content-types/png.jpg +0 -0
  34. data/app/assets/images/georgia/content-types/ppt.jpg +0 -0
  35. data/app/assets/images/georgia/content-types/pptx.jpg +0 -0
  36. data/app/assets/images/georgia/content-types/rar.jpg +0 -0
  37. data/app/assets/images/georgia/content-types/tar.jpg +0 -0
  38. data/app/assets/images/georgia/content-types/txt.jpg +0 -0
  39. data/app/assets/images/georgia/content-types/wav.jpg +0 -0
  40. data/app/assets/images/georgia/content-types/xls.jpg +0 -0
  41. data/app/assets/images/georgia/content-types/zip.jpg +0 -0
  42. data/app/assets/images/georgia/down_arrow.gif +0 -0
  43. data/app/assets/images/georgia/grippy_large.png +0 -0
  44. data/app/assets/images/georgia/indeterminate.png +0 -0
  45. data/app/assets/images/georgia/logo.png +0 -0
  46. data/app/assets/images/georgia/select2-spinner.gif +0 -0
  47. data/app/assets/images/georgia/select2.png +0 -0
  48. data/app/assets/images/georgia/select2x2.png +0 -0
  49. data/app/assets/images/georgia/transparent.jpg +0 -0
  50. data/app/assets/images/georgia/up_arrow.gif +0 -0
  51. data/app/assets/images/ui-bg_glass_75_ffffff_1x400.png +0 -0
  52. data/app/assets/javascripts/georgia/application.js +20 -0
  53. data/app/assets/javascripts/georgia/bootstrap-vendor.js.coffee +13 -0
  54. data/app/assets/javascripts/georgia/ckeditor/config.js +22 -0
  55. data/app/assets/javascripts/georgia/components/asset-replacer.js.coffee +25 -0
  56. data/app/assets/javascripts/georgia/components/asset-uploader.js.coffee +44 -0
  57. data/app/assets/javascripts/georgia/components/flash.js.coffee +15 -0
  58. data/app/assets/javascripts/georgia/components/forms/menu.js.coffee +66 -0
  59. data/app/assets/javascripts/georgia/components/forms/revision.js.coffee +22 -0
  60. data/app/assets/javascripts/georgia/components/forms/spinning.js.coffee +51 -0
  61. data/app/assets/javascripts/georgia/components/media-library.js.coffee +57 -0
  62. data/app/assets/javascripts/georgia/components/portlets/link.js.coffee +14 -0
  63. data/app/assets/javascripts/georgia/components/portlets/slide.js.coffee +38 -0
  64. data/app/assets/javascripts/georgia/components/portlets/widget.js.coffee +47 -0
  65. data/app/assets/javascripts/georgia/components/position_sort.js.coffee +20 -0
  66. data/app/assets/javascripts/georgia/components/tables/checkbox.js.coffee +123 -0
  67. data/app/assets/javascripts/georgia/components/tables/media.js.coffee +59 -0
  68. data/app/assets/javascripts/georgia/components/tables/messages.js.coffee +59 -0
  69. data/app/assets/javascripts/georgia/components/tables/pages.js.coffee +93 -0
  70. data/app/assets/javascripts/georgia/components/tags.js.coffee +36 -0
  71. data/app/assets/javascripts/georgia/components/widget.js.coffee +32 -0
  72. data/app/assets/javascripts/georgia/featured-image.js.coffee +8 -0
  73. data/app/assets/javascripts/georgia/keybindings.js.coffee +42 -0
  74. data/app/assets/javascripts/georgia/toggle.js.coffee +4 -0
  75. data/app/assets/javascripts/georgia/vendor/bootstrap-datetimepicker.js +28 -0
  76. data/app/assets/javascripts/georgia/vendor/jquery.mjs.nestedSortable.js +608 -0
  77. data/app/assets/javascripts/georgia/vendor/jquery.ui.touch-punch.js +160 -0
  78. data/app/assets/javascripts/georgia/vendor/moment.js +6 -0
  79. data/app/assets/stylesheets/georgia/application.css.scss +16 -0
  80. data/app/assets/stylesheets/georgia/components/_box.scss +29 -0
  81. data/app/assets/stylesheets/georgia/components/_button.scss +60 -0
  82. data/app/assets/stylesheets/georgia/components/_checkbox.scss +48 -0
  83. data/app/assets/stylesheets/georgia/components/_form.scss +8 -0
  84. data/app/assets/stylesheets/georgia/components/_help.scss +4 -0
  85. data/app/assets/stylesheets/georgia/components/_icon.scss +7 -0
  86. data/app/assets/stylesheets/georgia/components/_input.scss +48 -0
  87. data/app/assets/stylesheets/georgia/components/_label.scss +4 -0
  88. data/app/assets/stylesheets/georgia/components/_modal.scss +14 -0
  89. data/app/assets/stylesheets/georgia/components/_nav-list.scss +13 -0
  90. data/app/assets/stylesheets/georgia/components/_note.scss +31 -0
  91. data/app/assets/stylesheets/georgia/components/_portlet.scss +57 -0
  92. data/app/assets/stylesheets/georgia/components/_progress.scss +4 -0
  93. data/app/assets/stylesheets/georgia/components/_state.scss +17 -0
  94. data/app/assets/stylesheets/georgia/components/_table.scss +8 -0
  95. data/app/assets/stylesheets/georgia/components/_transparent.scss +3 -0
  96. data/app/assets/stylesheets/georgia/layout/_base.scss +94 -0
  97. data/app/assets/stylesheets/georgia/layout/_devise.scss +5 -0
  98. data/app/assets/stylesheets/georgia/mixins/_clearfix.scss +12 -0
  99. data/app/assets/stylesheets/georgia/mixins/_ellipsis.scss +8 -0
  100. data/app/assets/stylesheets/georgia/mixins/_inflectors.scss +1 -0
  101. data/app/assets/stylesheets/georgia/mixins/_opacity.scss +6 -0
  102. data/app/assets/stylesheets/georgia/mixins/_utilities.scss +13 -0
  103. data/app/assets/stylesheets/georgia/modules/_facets.scss +4 -0
  104. data/app/assets/stylesheets/georgia/modules/_footer.scss +9 -0
  105. data/app/assets/stylesheets/georgia/modules/_form_with_helpers.scss +17 -0
  106. data/app/assets/stylesheets/georgia/modules/_header.scss +66 -0
  107. data/app/assets/stylesheets/georgia/modules/_link.scss +51 -0
  108. data/app/assets/stylesheets/georgia/modules/_login.scss +7 -0
  109. data/app/assets/stylesheets/georgia/modules/_media.scss +55 -0
  110. data/app/assets/stylesheets/georgia/modules/_menu.scss +7 -0
  111. data/app/assets/stylesheets/georgia/modules/_message.scss +53 -0
  112. data/app/assets/stylesheets/georgia/modules/_notifications.scss +26 -0
  113. data/app/assets/stylesheets/georgia/modules/_pages.scss +7 -0
  114. data/app/assets/stylesheets/georgia/modules/_pagination.scss +41 -0
  115. data/app/assets/stylesheets/georgia/modules/_results.scss +46 -0
  116. data/app/assets/stylesheets/georgia/modules/_revision.scss +18 -0
  117. data/app/assets/stylesheets/georgia/modules/_sidebar.scss +71 -0
  118. data/app/assets/stylesheets/georgia/modules/_slide.scss +11 -0
  119. data/app/assets/stylesheets/georgia/modules/_subpage.scss +25 -0
  120. data/app/assets/stylesheets/georgia/modules/_users.scss +3 -0
  121. data/app/assets/stylesheets/georgia/modules/_widget.scss +45 -0
  122. data/app/assets/stylesheets/georgia/overrides/_select2.scss +5 -0
  123. data/app/assets/stylesheets/georgia/settings/_base.scss +6 -0
  124. data/app/assets/stylesheets/georgia/settings/_colors.scss +41 -0
  125. data/app/assets/stylesheets/georgia/settings/_fonts.scss +3 -0
  126. data/app/assets/stylesheets/georgia/settings/_z-index.scss +7 -0
  127. data/app/assets/stylesheets/georgia/vendor/_autocomplete.scss +50 -0
  128. data/app/assets/stylesheets/georgia/vendor/_bootstrap-datetimepicker.scss +174 -0
  129. data/app/assets/stylesheets/georgia/vendor/_select2.scss +18 -0
  130. data/app/assets/stylesheets/georgia/vendor/_tooltip.scss +98 -0
  131. data/app/controllers/georgia/api/media_controller.rb +18 -0
  132. data/app/controllers/georgia/api/tags_controller.rb +22 -0
  133. data/app/controllers/georgia/application_controller.rb +25 -0
  134. data/app/controllers/georgia/concerns/frontendable.rb +45 -0
  135. data/app/controllers/georgia/concerns/helpers.rb +28 -0
  136. data/app/controllers/georgia/dashboard_controller.rb +14 -0
  137. data/app/controllers/georgia/links_controller.rb +13 -0
  138. data/app/controllers/georgia/media_controller.rb +101 -0
  139. data/app/controllers/georgia/menus_controller.rb +80 -0
  140. data/app/controllers/georgia/messages_controller.rb +74 -0
  141. data/app/controllers/georgia/pages_controller.rb +180 -0
  142. data/app/controllers/georgia/revisions_controller.rb +89 -0
  143. data/app/controllers/georgia/slides_controller.rb +13 -0
  144. data/app/controllers/georgia/ui_associations_controller.rb +12 -0
  145. data/app/controllers/georgia/users/sessions_controller.rb +7 -0
  146. data/app/controllers/georgia/users_controller.rb +51 -0
  147. data/app/controllers/georgia/widgets_controller.rb +67 -0
  148. data/app/controllers/messages_controller.rb +29 -0
  149. data/app/decorators/ckeditor/asset_decorator.rb +13 -0
  150. data/app/decorators/ckeditor/assets_decorator.rb +4 -0
  151. data/app/decorators/ckeditor/picture_decorator.rb +9 -0
  152. data/app/decorators/ckeditor/pictures_decorator.rb +4 -0
  153. data/app/decorators/georgia/application_decorator.rb +6 -0
  154. data/app/decorators/georgia/link_decorator.rb +9 -0
  155. data/app/decorators/georgia/links_decorator.rb +4 -0
  156. data/app/decorators/georgia/message_decorator.rb +21 -0
  157. data/app/decorators/georgia/messages_decorator.rb +4 -0
  158. data/app/decorators/georgia/page_decorator.rb +31 -0
  159. data/app/decorators/georgia/pages_decorator.rb +4 -0
  160. data/app/decorators/georgia/revision_decorator.rb +28 -0
  161. data/app/decorators/georgia/slide_decorator.rb +4 -0
  162. data/app/decorators/georgia/widget_decorator.rb +4 -0
  163. data/app/decorators/pagination_decorator.rb +3 -0
  164. data/app/decorators/sunspot/highlighted_hit_decorator.rb +29 -0
  165. data/app/helpers/georgia/checkboxes_helper.rb +13 -0
  166. data/app/helpers/georgia/devise_helper.rb +15 -0
  167. data/app/helpers/georgia/facets_helper.rb +35 -0
  168. data/app/helpers/georgia/forms_helper.rb +68 -0
  169. data/app/helpers/georgia/header_helper.rb +10 -0
  170. data/app/helpers/georgia/internationalization_helper.rb +32 -0
  171. data/app/helpers/georgia/menus_helper.rb +20 -0
  172. data/app/helpers/georgia/messages_helper.rb +9 -0
  173. data/app/helpers/georgia/meta_tags_helper.rb +22 -0
  174. data/app/helpers/georgia/modals_helper.rb +7 -0
  175. data/app/helpers/georgia/pages_helper.rb +22 -0
  176. data/app/helpers/georgia/pagination_helper.rb +10 -0
  177. data/app/helpers/georgia/routes_helper.rb +25 -0
  178. data/app/helpers/georgia/sidebar_helper.rb +13 -0
  179. data/app/helpers/georgia/states_helper.rb +17 -0
  180. data/app/helpers/georgia/twitter_helper.rb +24 -0
  181. data/app/helpers/georgia/ui_helper.rb +51 -0
  182. data/app/mailers/georgia/notifier.rb +33 -0
  183. data/app/models/ability.rb +19 -0
  184. data/app/models/ckeditor/asset.rb +61 -0
  185. data/app/models/ckeditor/attachment_file.rb +7 -0
  186. data/app/models/ckeditor/picture.rb +15 -0
  187. data/app/models/georgia/clone.rb +101 -0
  188. data/app/models/georgia/concerns/cacheable.rb +18 -0
  189. data/app/models/georgia/concerns/contentable.rb +22 -0
  190. data/app/models/georgia/concerns/indexable.rb +67 -0
  191. data/app/models/georgia/concerns/orderable.rb +21 -0
  192. data/app/models/georgia/concerns/publishable.rb +35 -0
  193. data/app/models/georgia/concerns/revisionable.rb +38 -0
  194. data/app/models/georgia/concerns/slugable.rb +46 -0
  195. data/app/models/georgia/concerns/statable.rb +64 -0
  196. data/app/models/georgia/concerns/taggable.rb +19 -0
  197. data/app/models/georgia/concerns/templatable.rb +20 -0
  198. data/app/models/georgia/concerns/treeable.rb +26 -0
  199. data/app/models/georgia/content.rb +15 -0
  200. data/app/models/georgia/link.rb +27 -0
  201. data/app/models/georgia/menu.rb +13 -0
  202. data/app/models/georgia/message.rb +47 -0
  203. data/app/models/georgia/page.rb +20 -0
  204. data/app/models/georgia/revision.rb +22 -0
  205. data/app/models/georgia/role.rb +10 -0
  206. data/app/models/georgia/slide.rb +13 -0
  207. data/app/models/georgia/status.rb +29 -0
  208. data/app/models/georgia/ui_association.rb +27 -0
  209. data/app/models/georgia/ui_section.rb +12 -0
  210. data/app/models/georgia/user.rb +27 -0
  211. data/app/models/georgia/widget.rb +32 -0
  212. data/app/parsers/georgia/menu_ancestry_parser.rb +41 -0
  213. data/app/policies/georgia/policy.rb +17 -0
  214. data/app/policies/georgia/revision_policy.rb +53 -0
  215. data/app/presenters/georgia/active_facet_presenter.rb +25 -0
  216. data/app/presenters/georgia/facet_presenter.rb +26 -0
  217. data/app/presenters/georgia/link_portlet.rb +101 -0
  218. data/app/presenters/georgia/list_facet_presenter.rb +32 -0
  219. data/app/presenters/georgia/media_library_presenter.rb +44 -0
  220. data/app/presenters/georgia/message_actions_presenter.rb +51 -0
  221. data/app/presenters/georgia/page_actions_presenter.rb +94 -0
  222. data/app/presenters/georgia/pagination_presenter.rb +58 -0
  223. data/app/presenters/georgia/portlet.rb +30 -0
  224. data/app/presenters/georgia/presenter.rb +17 -0
  225. data/app/presenters/georgia/sidebar_link_presenter.rb +55 -0
  226. data/app/presenters/georgia/single_active_facet_presenter.rb +10 -0
  227. data/app/presenters/georgia/slide_portlet.rb +79 -0
  228. data/app/presenters/georgia/subpage_portlet.rb +36 -0
  229. data/app/presenters/georgia/warning_message.rb +55 -0
  230. data/app/presenters/georgia/widget_portlet.rb +75 -0
  231. data/app/sweepers/navigation_sweeper.rb +12 -0
  232. data/app/uploaders/ckeditor_attachment_file_uploader.rb +16 -0
  233. data/app/uploaders/ckeditor_picture_uploader.rb +36 -0
  234. data/app/uploaders/georgia/attachment_uploader.rb +16 -0
  235. data/app/views/georgia/api/media/pictures.html.erb +17 -0
  236. data/app/views/georgia/ckeditor/assets/_asset.html.erb +23 -0
  237. data/app/views/georgia/ckeditor/attachment_files/_attachment_file.html.erb +1 -0
  238. data/app/views/georgia/ckeditor/pictures/_picture.html.erb +26 -0
  239. data/app/views/georgia/dashboard/panels/_messages.html.erb +30 -0
  240. data/app/views/georgia/dashboard/panels/_reviews.html.erb +24 -0
  241. data/app/views/georgia/dashboard/show.html.erb +18 -0
  242. data/app/views/georgia/header/_dashboard.html.erb +1 -0
  243. data/app/views/georgia/header/_media.html.erb +3 -0
  244. data/app/views/georgia/header/_messages.html.erb +3 -0
  245. data/app/views/georgia/header/_navigation.html.erb +3 -0
  246. data/app/views/georgia/header/_pages.html.erb +3 -0
  247. data/app/views/georgia/header/_users.html.erb +3 -0
  248. data/app/views/georgia/header/_widgets.html.erb +3 -0
  249. data/app/views/georgia/links/show.html.erb +1 -0
  250. data/app/views/georgia/media/_header.html.erb +27 -0
  251. data/app/views/georgia/media/create.js.erb +1 -0
  252. data/app/views/georgia/media/edit.html.erb +74 -0
  253. data/app/views/georgia/media/search.html.erb +36 -0
  254. data/app/views/georgia/media/sidebar/_facets.html.erb +12 -0
  255. data/app/views/georgia/menus/_menu.html.erb +7 -0
  256. data/app/views/georgia/menus/create.js.erb +5 -0
  257. data/app/views/georgia/menus/edit.html.erb +37 -0
  258. data/app/views/georgia/menus/index.html.erb +36 -0
  259. data/app/views/georgia/messages/_message.html.erb +26 -0
  260. data/app/views/georgia/messages/destroy.js.erb +3 -0
  261. data/app/views/georgia/messages/search.html.erb +58 -0
  262. data/app/views/georgia/messages/show.html.erb +46 -0
  263. data/app/views/georgia/notifier/notify_admins.html.erb +10 -0
  264. data/app/views/georgia/notifier/notify_editors.html.erb +10 -0
  265. data/app/views/georgia/notifier/notify_support.html.erb +9 -0
  266. data/app/views/georgia/pages/_header.html.erb +22 -0
  267. data/app/views/georgia/pages/_page.html.erb +19 -0
  268. data/app/views/georgia/pages/_subpage.html.erb +1 -0
  269. data/app/views/georgia/pages/create.js.erb +6 -0
  270. data/app/views/georgia/pages/search.html.erb +32 -0
  271. data/app/views/georgia/pages/settings.html.erb +79 -0
  272. data/app/views/georgia/pages/templates/_custom.html.erb +7 -0
  273. data/app/views/georgia/pages/templates/_default.html.erb +7 -0
  274. data/app/views/georgia/pages/templates/_one-column.html.erb +7 -0
  275. data/app/views/georgia/pages/templates/_sidebar-left.html.erb +10 -0
  276. data/app/views/georgia/pages/templates/_sidebar-right.html.erb +10 -0
  277. data/app/views/georgia/revisions/_revision.html.erb +11 -0
  278. data/app/views/georgia/revisions/edit.html.erb +36 -0
  279. data/app/views/georgia/revisions/fields/_content.html.erb +43 -0
  280. data/app/views/georgia/revisions/fields/_slides.html.erb +19 -0
  281. data/app/views/georgia/revisions/fields/_template.html.erb +8 -0
  282. data/app/views/georgia/revisions/fields/_ui_section.html.erb +14 -0
  283. data/app/views/georgia/revisions/fields/_widgets.html.erb +11 -0
  284. data/app/views/georgia/revisions/index.html.erb +25 -0
  285. data/app/views/georgia/shared/_messages.html.erb +11 -0
  286. data/app/views/georgia/shared/modals/_media_library.html.erb +35 -0
  287. data/app/views/georgia/shared/modals/_menu.html.erb +20 -0
  288. data/app/views/georgia/shared/modals/_page.html.erb +20 -0
  289. data/app/views/georgia/shared/modals/_progress.html.erb +15 -0
  290. data/app/views/georgia/shared/modals/_widget.html.erb +24 -0
  291. data/app/views/georgia/shared/search/_messages.html.erb +4 -0
  292. data/app/views/georgia/slides/new.html.erb +1 -0
  293. data/app/views/georgia/ui_associations/new.html.erb +1 -0
  294. data/app/views/georgia/users/_form.html.erb +27 -0
  295. data/app/views/georgia/users/_user.html.erb +9 -0
  296. data/app/views/georgia/users/edit.html.erb +22 -0
  297. data/app/views/georgia/users/index.html.erb +25 -0
  298. data/app/views/georgia/users/new.html.erb +19 -0
  299. data/app/views/georgia/users/registrations/new.html.erb +20 -0
  300. data/app/views/georgia/users/sessions/new.html.erb +17 -0
  301. data/app/views/georgia/widgets/_widget.html.erb +35 -0
  302. data/app/views/georgia/widgets/create.js.erb +5 -0
  303. data/app/views/georgia/widgets/index.html.erb +31 -0
  304. data/app/views/layouts/georgia/_footer.html.erb +7 -0
  305. data/app/views/layouts/georgia/_head.html.erb +15 -0
  306. data/app/views/layouts/georgia/_header.html.erb +40 -0
  307. data/app/views/layouts/georgia/_messages.html.erb +7 -0
  308. data/app/views/layouts/georgia/_sidebar.html.erb +9 -0
  309. data/app/views/layouts/georgia/application.html.erb +16 -0
  310. data/app/views/layouts/georgia/devise.html.erb +11 -0
  311. data/app/views/menus/_dropdown_group.html.erb +10 -0
  312. data/app/views/menus/_dropdown_link.html.erb +3 -0
  313. data/app/views/menus/_dropdown_menu.html.erb +11 -0
  314. data/app/views/menus/_link.html.erb +1 -0
  315. data/app/views/menus/_menu.html.erb +7 -0
  316. data/app/views/messages/create.js.erb +0 -0
  317. data/app/workers/spam_worker.rb +12 -0
  318. data/config/initializers/acts_as_taggable_on.rb +19 -0
  319. data/config/initializers/ckeditor.rb +18 -0
  320. data/config/initializers/devise.rb +254 -0
  321. data/config/initializers/inflections.rb +3 -0
  322. data/config/initializers/revisions.rb +5 -0
  323. data/config/initializers/simple_form.rb +79 -0
  324. data/config/locales/georgia.en.yml +4 -0
  325. data/config/routes.rb +79 -0
  326. data/db/migrate/001_create_ckeditor_assets.rb +25 -0
  327. data/db/migrate/002_create_georgia_contents.rb +18 -0
  328. data/db/migrate/003_create_georgia_links.rb +12 -0
  329. data/db/migrate/004_create_georgia_menus.rb +10 -0
  330. data/db/migrate/005_create_georgia_messages.rb +21 -0
  331. data/db/migrate/006_create_georgia_pages.rb +21 -0
  332. data/db/migrate/007_create_georgia_revisions.rb +12 -0
  333. data/db/migrate/008_create_georgia_roles.rb +10 -0
  334. data/db/migrate/009_create_georgia_slides.rb +11 -0
  335. data/db/migrate/010_create_georgia_ui_associations.rb +13 -0
  336. data/db/migrate/011_create_georgia_ui_sections.rb +9 -0
  337. data/db/migrate/012_create_georgia_users.rb +24 -0
  338. data/db/migrate/013_create_georgia_widgets.rb +9 -0
  339. data/db/migrate/014_create_roles_users.rb +11 -0
  340. data/db/migrate/015_create_tags.rb +20 -0
  341. data/lib/generators/georgia/install/install_generator.rb +60 -0
  342. data/lib/generators/georgia/install/templates/Procfile +1 -0
  343. data/lib/generators/georgia/install/templates/README +14 -0
  344. data/lib/generators/georgia/install/templates/app/controllers/pages_controller.rb +13 -0
  345. data/lib/generators/georgia/install/templates/config/initializers/georgia.rb +15 -0
  346. data/lib/generators/georgia/upgrade/templates/add_anti_spam_to_messages.rb +12 -0
  347. data/lib/generators/georgia/upgrade/templates/add_contents_counter_cache_to_images.rb +15 -0
  348. data/lib/generators/georgia/upgrade/templates/add_public_to_georgia_pages.rb +8 -0
  349. data/lib/generators/georgia/upgrade/templates/add_state_to_georgia_pages.rb +13 -0
  350. data/lib/generators/georgia/upgrade/templates/create_georgia_revisions.rb +12 -0
  351. data/lib/generators/georgia/upgrade/upgrade_generator.rb +34 -0
  352. data/lib/georgia.rb +23 -0
  353. data/lib/georgia/assets.rb +8 -0
  354. data/lib/georgia/assets/cloud_files_connection.rb +22 -0
  355. data/lib/georgia/assets/transferable_picture.rb +51 -0
  356. data/lib/georgia/engine.rb +58 -0
  357. data/lib/georgia/paths.rb +22 -0
  358. data/lib/georgia/version.rb +3 -0
  359. data/lib/tasks/assets.rake +106 -0
  360. data/lib/tasks/georgia.rake +61 -0
  361. data/lib/tasks/install.rake +19 -0
  362. data/lib/tasks/sidekiq.rake +8 -0
  363. data/lib/tasks/solr.rake +30 -0
  364. data/lib/tasks/upgrade.rake +39 -0
  365. data/lib/templates/erb/scaffold/_form.html.erb +13 -0
  366. metadata +857 -0
@@ -0,0 +1,7 @@
1
+ .menu {
2
+ border-bottom: 1px solid #cbcbcb;
3
+ line-height: 50px;
4
+ }
5
+ .menu-name {
6
+ display: inline-block;
7
+ }
@@ -0,0 +1,53 @@
1
+ %clickable {
2
+ a { display: block; }
3
+ }
4
+ .message-name, .message-message, .message-attachment, .message-phone, .message-timestamp {
5
+ @extend %clickable;
6
+ }
7
+ .message-timestamp {
8
+ @extend .timestamp--long;
9
+ }
10
+
11
+ .message-info {
12
+ line-height: 30px;
13
+ padding: 10px 0;
14
+ margin-bottom: 20px;
15
+ border-top: 1px solid #cbcbcb;
16
+ border-bottom: 1px solid #cbcbcb;
17
+ }
18
+ .message-additional-info {
19
+ padding: 10px 0;
20
+ margin: 20px 0;
21
+ border-top: 1px solid #cbcbcb;
22
+ border-bottom: 1px solid #cbcbcb;
23
+ }
24
+ .message-status {
25
+ width: 1px;
26
+ border-right: 3px solid;
27
+ padding: 0 !important;
28
+ margin: 0;
29
+ &.spam { border-color: $red; }
30
+ &.clean { border-color: $green; }
31
+ }
32
+
33
+ .message-name span {
34
+ @extend .ellipsis;
35
+ width: 160px;
36
+ max-width: 160px;
37
+ }
38
+
39
+ .phone {
40
+ @extend .ellipsis;
41
+ width: 120px;
42
+ max-width: 120px;
43
+ }
44
+
45
+ .message-attachment {
46
+ @extend .tiny;
47
+ }
48
+
49
+ .message-message span {
50
+ @extend .nowrap;
51
+ @extend .ellipsis;
52
+ max-width: 800px;
53
+ }
@@ -0,0 +1,26 @@
1
+ .flash-container {
2
+ display: none;
3
+ cursor: pointer;
4
+ margin: 0;
5
+ text-align: center;
6
+ color: #fff;
7
+ position: fixed;
8
+ bottom: 0;
9
+ width: 100%;
10
+ opacity: 0.8;
11
+ z-index: 100;
12
+ font-size: 1.2em;
13
+
14
+ .flash-notice, .flash-alert {
15
+ padding: 12px;
16
+ }
17
+
18
+ .flash-notice {
19
+ background: #49C;
20
+ text-shadow: 0 1px 1px #178;
21
+ }
22
+ .flash-alert {
23
+ background: #C67;
24
+ text-shadow: 0 1px 1px #945;
25
+ }
26
+ }
@@ -0,0 +1,7 @@
1
+ .page-title {display: block; font-weight: bold;}
2
+ .page.private, .page.private a {
3
+ color: #bbb;
4
+ }
5
+ .page, .page a {
6
+ color: #2b2b2b;
7
+ }
@@ -0,0 +1,41 @@
1
+ .pagination {
2
+ height: 36px;
3
+ margin: 18px 0;
4
+ }
5
+ .pagination {
6
+ ul {
7
+ list-style: none outside none;
8
+ }
9
+ span, li {
10
+ float: left;
11
+ text-decoration: none;
12
+ border: 1px solid #ddd;
13
+ border-left-width: 0;
14
+ }
15
+ span:first-child, li:first-child { border-left-width: 1px; }
16
+ a, .current, .gap {
17
+ display: block;
18
+ padding: 0 14px;
19
+ line-height: 34px;
20
+ }
21
+ }
22
+ .pagination a:hover,
23
+ .pagination .active a {
24
+ background-color: #f5f5f5;
25
+ }
26
+ .pagination .current, .pagination .active a {
27
+ color: #999999;
28
+ background-color: transparent;
29
+ cursor: default;
30
+ }
31
+
32
+ .pagination-count {
33
+ margin-right: 10px;
34
+ font-weight: normal;
35
+ font-size: 0.9em;
36
+ }
37
+
38
+ .header-pagination a {
39
+ @extend .btn-pagination;
40
+ margin-left: 2px;
41
+ }
@@ -0,0 +1,46 @@
1
+ .table-results {
2
+ tr:first-child td {
3
+ border-top: 1px solid #ddd;
4
+ }
5
+ th { text-align: left; }
6
+ td, th {
7
+ padding: 10px 4px;
8
+ border-bottom: 1px solid #ddd;
9
+ }
10
+ .tiny {
11
+ @extend .nowrap;
12
+ width: 25px;
13
+ max-width: 25px;
14
+ }
15
+ .checkbox-cell {
16
+ width: 35px;
17
+ text-align: center;
18
+ }
19
+ .media-link {
20
+ width: 65px;
21
+ height: 65px;
22
+ }
23
+ .small {
24
+ @extend .nowrap;
25
+ width: 70px;
26
+ max-width: 70px;
27
+ }
28
+ .thumbnail-cell {
29
+ width: 65px;
30
+ }
31
+ .timestamp {
32
+ @extend .nowrap;
33
+ width: 100px;
34
+ max-width: 100px;
35
+ text-align: right;
36
+ font-size: 0.9em;
37
+ }
38
+ .timestamp--long {
39
+ @extend .timestamp;
40
+ width: 125px;
41
+ max-width: 125px;
42
+ }
43
+ .label {
44
+ margin-right: 4px;
45
+ }
46
+ }
@@ -0,0 +1,18 @@
1
+ .revision {
2
+ @include clearfix;
3
+ margin: 10px 0;
4
+ border-bottom: 1px solid #cbcbcb;
5
+ padding: 10px 0;
6
+ }
7
+ .js-revision-form .header-title {
8
+ i, input { display: none; }
9
+ i {
10
+ font-size: 0.75em;
11
+ float: right;
12
+ }
13
+ }
14
+ .header-title .title-truncated {
15
+ max-width: 750px;
16
+ @extend .ellipsis;
17
+ }
18
+ .header-title a.title-truncated { float: left; }
@@ -0,0 +1,71 @@
1
+ #sidebar {
2
+ position: fixed;
3
+ z-index: $z-sidebar;
4
+ top: $height-header;
5
+ bottom: 0;
6
+ width: $width-sidebar;
7
+ background-color: $bg-sidebar;
8
+ background-color: $bg-sidebar-rgba;
9
+ overflow-y: auto;
10
+ box-sizing: border-box;
11
+ border-right: 1px solid #e2e2e2;
12
+ }
13
+
14
+ #sidebar {
15
+ .nav-list {
16
+ background-color: $bg-sidebar-navlist;
17
+ .sidebar-link-name {
18
+ display: inline-block;
19
+ }
20
+ li {
21
+ a {
22
+ display: block;
23
+ text-decoration: none;
24
+ border-bottom: 1px solid #e2e2e2;
25
+ font-weight: 400;
26
+ padding: 12px 15px 10px;
27
+ margin: 0;
28
+ &:hover {
29
+ background-color: #eee;
30
+ text-decoration: none;
31
+ .icon { color: #a2a2a2; }
32
+ }
33
+ }
34
+ }
35
+ li.active {
36
+ > a {
37
+ background-color: $bg-sidebar-active;
38
+ border-bottom-color: transparent;
39
+ color: #FFF;
40
+ border: none;
41
+ }
42
+ .icon { color: #FFF; }
43
+ }
44
+ }
45
+ .submenu {
46
+ list-style: none outside none;
47
+ margin: 0;
48
+ padding: 0;
49
+ .title { padding-left: 35px; }
50
+ li a {
51
+ padding: 6px 15px 5px 25px;
52
+ h5 {margin: 0;}
53
+ }
54
+ li.active > a {
55
+ background-color: #eee;
56
+ color: $font-link;
57
+ }
58
+ }
59
+ .icon {
60
+ font-size: 1.2em;
61
+ display: inline-block;
62
+ text-align: center;
63
+ width: 1.25em;
64
+ margin-right: 5px;
65
+ color: #bbb;
66
+ }
67
+ .arrow {
68
+ float: right;
69
+ line-height: 35px;
70
+ }
71
+ }
@@ -0,0 +1,11 @@
1
+ .slide {
2
+ width: 85%;
3
+ display: inline-block;
4
+ margin: 5px 0;
5
+ }
6
+ .slide-image {
7
+ @include span-columns(3);
8
+ }
9
+ .slide-text {
10
+ @include span-columns(9);
11
+ }
@@ -0,0 +1,25 @@
1
+ .subpage {
2
+ cursor: move;
3
+ padding: 5px;
4
+ border: 1px solid #EEE;
5
+ background-color: #FFF;
6
+ margin-bottom: 2px;
7
+ }
8
+
9
+ .subpage-handle {
10
+ float: left;
11
+ padding: 10px;
12
+ }
13
+
14
+ .subpage-edit-link {
15
+ float: right;
16
+ padding: 10px;
17
+ }
18
+
19
+ .subpage-info__title {
20
+ margin: 0;
21
+ }
22
+
23
+ .subpage-info__url {
24
+ display: inline-block;
25
+ }
@@ -0,0 +1,3 @@
1
+ .user-name {
2
+ display: block;
3
+ }
@@ -0,0 +1,45 @@
1
+ .widgets {
2
+ padding-left: 110px;
3
+ }
4
+
5
+ .widget {
6
+ @extend .box;
7
+ margin-bottom: 20px;
8
+ }
9
+
10
+ fieldset .widget {
11
+ @include span-columns(6);
12
+ }
13
+
14
+ .widget-header {
15
+ @extend .box-header;
16
+ margin-bottom: 0;
17
+ }
18
+ .widget-title {
19
+ @extend .box-title;
20
+ }
21
+ .widget-content {
22
+ @extend .box-content;
23
+ height: 200px;
24
+ }
25
+ .widget-footer {
26
+ @extend .box-footer;
27
+ .widget-action {
28
+ margin-left: 10px;
29
+ }
30
+ .widget-featured {
31
+ float: left;
32
+ text-align: left;
33
+ }
34
+ }
35
+ .widget-title--ellipsed {
36
+ @extend .widget-title;
37
+ @extend .ellipsis;
38
+ width: 250px;
39
+ }
40
+
41
+ .widget-form {
42
+ .widget-title {
43
+ input {width: 100%;}
44
+ }
45
+ }
@@ -0,0 +1,5 @@
1
+ .select2-container {
2
+ padding: 0;
3
+ border: 0;
4
+ height: auto;
5
+ }
@@ -0,0 +1,6 @@
1
+ $width-sidebar: 180px;
2
+
3
+ $height-header: 56px;
4
+ $height-footer: 50px;
5
+
6
+ $padding-main: 2%;
@@ -0,0 +1,41 @@
1
+ $white: #FFF;
2
+ $light_blue: #7ebde5;
3
+ $light_grey: #eaebed;
4
+ $grey: #575757;
5
+
6
+ $red: #e02222;
7
+ $orange: #ed661d;
8
+ $yellow: #edb12d;
9
+ $green: #00ad61;
10
+ $teal: #28b779;
11
+ $black: #2b2b2b;
12
+ $beige: #f3e6ce;
13
+ $blue: #0362fd;
14
+
15
+ $bg-header: #28b779;
16
+ $bg-header-active: #16CA7C;
17
+ $bg-header-main: #ecf5fb;
18
+ $bg-header-main-rgba: rgba(236,245,251,0.9);
19
+ $bg-sidebar: $bg-header-main;
20
+ $bg-sidebar-rgba: $bg-header-main-rgba;
21
+ $bg-sidebar-navlist: $white;
22
+ $bg-sidebar-active: #2862a1;
23
+ $bg-devised: $black;
24
+ $bg-input: $white;
25
+ $bg-input-login: $white;
26
+ $bg-footer: $white;
27
+ $bg-sidebar: #fafafa;
28
+
29
+ $btn-primary: #2862a1;
30
+ $btn-inverse: #575757;
31
+
32
+ $font: $black;
33
+ $font-muted: $grey;
34
+ $font-link: $black;
35
+ $font-input: $black;
36
+ $font-input-login: $black;
37
+ $font-header: #125437;
38
+
39
+ $border-header: #28888f;
40
+ $border-header-main: darken($light_grey, 5%);
41
+ $border-input: darken($light_grey, 5%);
@@ -0,0 +1,3 @@
1
+ @include font-face(Signika, "georgia/signika-regular-webfont", normal, $asset-pipeline: true);
2
+ @include font-face(SignikaBold, "georgia/signika-bold-webfont", normal, $asset-pipeline: true);
3
+ @include font-face(SignikaLight, "georgia/signika-light-webfont", normal, $asset-pipeline: true);
@@ -0,0 +1,7 @@
1
+ $z-header: 100;
2
+ $z-header-main: 1;
3
+ $z-sidebar: 2;
4
+
5
+ $z-backdrop: 201;
6
+ $z-modal: 202;
7
+ $z-btn--close: 203;