activeadmin 3.2.5 → 4.0.0.beta1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of activeadmin might be problematic. Click here for more details.

Files changed (339) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +2 -86
  3. data/CONTRIBUTING.md +25 -108
  4. data/README.md +19 -32
  5. data/app/assets/config/active_admin_manifest.js +2 -0
  6. data/app/controllers/active_admin/base_controller/menu.rb +39 -0
  7. data/{lib → app/controllers}/active_admin/base_controller.rb +46 -18
  8. data/{lib → app/controllers}/active_admin/page_controller.rb +0 -4
  9. data/{lib → app/controllers}/active_admin/resource_controller/action_builder.rb +1 -1
  10. data/{lib → app/controllers}/active_admin/resource_controller/data_access.rb +2 -2
  11. data/{lib → app/controllers}/active_admin/resource_controller/decorators.rb +1 -1
  12. data/{lib → app/controllers}/active_admin/resource_controller/scoping.rb +1 -1
  13. data/{lib → app/controllers}/active_admin/resource_controller/streaming.rb +2 -2
  14. data/app/controllers/active_admin/resource_controller.rb +102 -0
  15. data/app/helpers/active_admin/auto_link_helper.rb +66 -0
  16. data/app/helpers/active_admin/breadcrumb_helper.rb +41 -0
  17. data/app/helpers/active_admin/display_helper.rb +117 -0
  18. data/app/helpers/active_admin/form_helper.rb +95 -0
  19. data/app/helpers/active_admin/index_helper.rb +40 -0
  20. data/app/helpers/active_admin/layout_helper.rb +63 -0
  21. data/app/javascript/active_admin/features/batch_actions.js +89 -0
  22. data/app/javascript/active_admin/features/dark_mode_toggle.js +37 -0
  23. data/app/javascript/active_admin/features/filters.js +34 -0
  24. data/app/javascript/active_admin/features/has_many.js +28 -0
  25. data/app/javascript/active_admin/features/main_menu.js +12 -0
  26. data/app/javascript/active_admin/features/per_page.js +9 -0
  27. data/app/javascript/active_admin/utils/dom.js +17 -0
  28. data/app/javascript/active_admin.js +10 -0
  29. data/app/views/active_admin/_flash_messages.html.erb +22 -0
  30. data/app/views/active_admin/_html_head.html.erb +13 -0
  31. data/app/views/active_admin/_main_navigation.html.erb +28 -0
  32. data/app/views/active_admin/_page_header.html.erb +27 -0
  33. data/app/views/active_admin/_sidebar.html.erb +5 -0
  34. data/app/views/active_admin/_site_footer.html.erb +7 -0
  35. data/app/views/active_admin/_site_header.html.erb +30 -0
  36. data/app/views/active_admin/devise/confirmations/new.html.erb +5 -3
  37. data/app/views/active_admin/devise/passwords/edit.html.erb +5 -3
  38. data/app/views/active_admin/devise/passwords/new.html.erb +5 -4
  39. data/app/views/active_admin/devise/registrations/new.html.erb +6 -4
  40. data/app/views/active_admin/devise/sessions/new.html.erb +6 -4
  41. data/app/views/active_admin/devise/shared/_links.erb +3 -1
  42. data/app/views/active_admin/devise/unlocks/new.html.erb +6 -4
  43. data/app/views/{kaminari/active_admin_countless → active_admin/kaminari}/_gap.html.erb +3 -1
  44. data/app/views/active_admin/kaminari/_next_page.html.erb +16 -0
  45. data/app/views/active_admin/kaminari/_page.html.erb +14 -0
  46. data/app/views/{kaminari/active_admin_countless → active_admin/kaminari}/_paginator.html.erb +1 -2
  47. data/app/views/active_admin/kaminari/_prev_page.html.erb +16 -0
  48. data/app/views/active_admin/page/index.html.arb +5 -1
  49. data/app/views/active_admin/resource/_active_filters.html.erb +32 -0
  50. data/app/views/active_admin/resource/_batch_actions_dropdown.html.erb +19 -0
  51. data/app/views/active_admin/resource/_form.html.arb +16 -0
  52. data/app/views/active_admin/resource/_form_default.html.arb +12 -0
  53. data/app/views/active_admin/resource/_index_as_table_default.html.arb +9 -0
  54. data/app/views/active_admin/resource/_index_blank_slate.html.erb +14 -0
  55. data/app/views/active_admin/resource/_index_empty_results.html.erb +5 -0
  56. data/app/views/active_admin/resource/_index_table_actions_default.html.erb +9 -0
  57. data/app/views/active_admin/resource/_show_default.html.arb +3 -0
  58. data/app/views/active_admin/resource/edit.html.arb +1 -1
  59. data/app/views/active_admin/resource/index.html.arb +94 -1
  60. data/app/views/active_admin/resource/new.html.arb +1 -1
  61. data/app/views/active_admin/resource/show.html.arb +12 -1
  62. data/app/views/active_admin/shared/_action_items.html.erb +3 -0
  63. data/app/views/active_admin/shared/_download_format_links.html.erb +7 -0
  64. data/app/views/active_admin/shared/_resource_comments.html.erb +51 -0
  65. data/app/views/active_admin/shared/_sidebar_section.html.arb +7 -0
  66. data/app/views/active_admin/shared/_sidebar_sections.html.erb +5 -0
  67. data/app/views/layouts/active_admin.html.erb +20 -0
  68. data/app/views/layouts/active_admin_logged_out.html.erb +8 -45
  69. data/config/locales/ar.yml +0 -16
  70. data/config/locales/az.yml +0 -16
  71. data/config/locales/bg.yml +0 -9
  72. data/config/locales/bs.yml +0 -7
  73. data/config/locales/ca.yml +0 -9
  74. data/config/locales/cs.yml +0 -9
  75. data/config/locales/da.yml +0 -16
  76. data/config/locales/de-CH.yml +0 -10
  77. data/config/locales/de.yml +0 -16
  78. data/config/locales/el.yml +0 -13
  79. data/config/locales/en-CA.yml +0 -16
  80. data/config/locales/en-GB.yml +0 -16
  81. data/config/locales/en.yml +18 -28
  82. data/config/locales/eo.yml +0 -17
  83. data/config/locales/es-MX.yml +0 -9
  84. data/config/locales/es.yml +0 -16
  85. data/config/locales/fa.yml +0 -9
  86. data/config/locales/fi.yml +0 -9
  87. data/config/locales/fr.yml +32 -26
  88. data/config/locales/he.yml +0 -16
  89. data/config/locales/hr.yml +0 -9
  90. data/config/locales/hu.yml +0 -6
  91. data/config/locales/id.yml +0 -16
  92. data/config/locales/it.yml +0 -16
  93. data/config/locales/ja.yml +0 -16
  94. data/config/locales/ko.yml +0 -9
  95. data/config/locales/lt.yml +0 -16
  96. data/config/locales/lv.yml +0 -6
  97. data/config/locales/mk.yml +0 -15
  98. data/config/locales/nb.yml +0 -12
  99. data/config/locales/nl.yml +21 -29
  100. data/config/locales/pl.yml +0 -16
  101. data/config/locales/pt-BR.yml +0 -16
  102. data/config/locales/pt-PT.yml +0 -6
  103. data/config/locales/ro.yml +0 -6
  104. data/config/locales/ru.yml +0 -16
  105. data/config/locales/sk.yml +0 -16
  106. data/config/locales/sv-SE.yml +0 -16
  107. data/config/locales/tr.yml +0 -16
  108. data/config/locales/uk.yml +0 -16
  109. data/config/locales/vi.yml +0 -16
  110. data/config/locales/zh-CN.yml +0 -16
  111. data/config/locales/zh-TW.yml +0 -16
  112. data/lib/active_admin/application.rb +1 -9
  113. data/lib/active_admin/batch_actions/controller.rb +1 -4
  114. data/lib/active_admin/batch_actions/resource_extension.rb +6 -13
  115. data/lib/active_admin/batch_actions/views/batch_action_form.rb +0 -6
  116. data/lib/active_admin/batch_actions/views/selection_cells.rb +2 -2
  117. data/lib/active_admin/batch_actions.rb +0 -5
  118. data/lib/active_admin/callbacks.rb +6 -4
  119. data/lib/active_admin/component.rb +0 -1
  120. data/lib/active_admin/csv_builder.rb +1 -1
  121. data/lib/active_admin/devise.rb +3 -3
  122. data/lib/active_admin/dsl.rb +2 -2
  123. data/lib/active_admin/dynamic_settings_node.rb +4 -4
  124. data/lib/active_admin/engine.rb +19 -6
  125. data/lib/active_admin/filters/active.rb +6 -4
  126. data/lib/active_admin/filters/active_filter.rb +1 -3
  127. data/lib/active_admin/filters/forms.rb +1 -42
  128. data/lib/active_admin/filters/resource_extension.rb +17 -9
  129. data/lib/active_admin/filters.rb +0 -2
  130. data/lib/active_admin/form_builder.rb +15 -14
  131. data/lib/active_admin/inputs/filters/base/search_method_select.rb +8 -10
  132. data/lib/active_admin/inputs/filters/base.rb +1 -1
  133. data/lib/active_admin/inputs/filters/check_boxes_input.rb +1 -6
  134. data/lib/active_admin/inputs/filters/date_range_input.rb +4 -2
  135. data/lib/active_admin/inputs.rb +0 -3
  136. data/lib/active_admin/menu.rb +10 -7
  137. data/lib/active_admin/menu_collection.rb +1 -1
  138. data/lib/active_admin/menu_item.rb +24 -3
  139. data/lib/active_admin/namespace.rb +2 -44
  140. data/lib/active_admin/namespace_settings.rb +2 -35
  141. data/lib/active_admin/order_clause.rb +4 -1
  142. data/lib/active_admin/orm/active_record/comments/views/active_admin_comments.rb +3 -75
  143. data/lib/active_admin/orm/active_record/comments.rb +10 -5
  144. data/lib/active_admin/pundit_adapter.rb +1 -1
  145. data/lib/active_admin/resource/action_items.rb +15 -20
  146. data/lib/active_admin/resource/attributes.rb +1 -8
  147. data/lib/active_admin/resource/naming.rb +1 -2
  148. data/lib/active_admin/resource.rb +1 -0
  149. data/lib/active_admin/resource_dsl.rb +1 -1
  150. data/lib/active_admin/scope.rb +1 -1
  151. data/lib/active_admin/settings_node.rb +1 -1
  152. data/lib/active_admin/sidebar_section.rb +0 -5
  153. data/lib/active_admin/version.rb +1 -1
  154. data/lib/active_admin/view_helpers.rb +0 -12
  155. data/lib/active_admin/views/components/active_admin_form.rb +21 -29
  156. data/lib/active_admin/views/components/attributes_table.rb +4 -12
  157. data/lib/active_admin/views/components/index_list.rb +10 -23
  158. data/lib/active_admin/views/components/paginated_collection.rb +34 -42
  159. data/lib/active_admin/views/components/panel.rb +2 -10
  160. data/lib/active_admin/views/components/scopes.rb +12 -21
  161. data/lib/active_admin/views/components/status_tag.rb +22 -19
  162. data/lib/active_admin/views/components/table_for.rb +19 -24
  163. data/lib/active_admin/views/components/tabs.rb +10 -11
  164. data/lib/active_admin/views/index_as_table.rb +24 -97
  165. data/lib/active_admin.rb +7 -11
  166. data/lib/generators/active_admin/assets/assets_generator.rb +4 -4
  167. data/lib/generators/active_admin/assets/templates/active_admin.css +3 -0
  168. data/lib/generators/active_admin/assets/templates/tailwind.config.js +18 -0
  169. data/lib/generators/active_admin/install/install_generator.rb +2 -8
  170. data/lib/generators/active_admin/install/templates/active_admin.rb.erb +10 -87
  171. data/lib/generators/active_admin/install/templates/dashboard.rb +8 -25
  172. data/lib/generators/active_admin/page/page_generator.rb +0 -1
  173. data/lib/generators/active_admin/resource/resource_generator.rb +46 -7
  174. data/lib/generators/active_admin/resource/templates/resource.rb.erb +42 -0
  175. data/lib/generators/active_admin/views_generator.rb +18 -0
  176. metadata +67 -214
  177. data/app/assets/javascripts/active_admin/base.js +0 -521
  178. data/app/assets/stylesheets/active_admin/_base.scss +0 -57
  179. data/app/assets/stylesheets/active_admin/_forms.scss +0 -315
  180. data/app/assets/stylesheets/active_admin/_header.scss +0 -188
  181. data/app/assets/stylesheets/active_admin/_mixins.scss +0 -1
  182. data/app/assets/stylesheets/active_admin/_normalize.scss +0 -349
  183. data/app/assets/stylesheets/active_admin/_print.scss +0 -287
  184. data/app/assets/stylesheets/active_admin/_typography.scss +0 -100
  185. data/app/assets/stylesheets/active_admin/components/_batch_actions.scss +0 -6
  186. data/app/assets/stylesheets/active_admin/components/_blank_slates.scss +0 -30
  187. data/app/assets/stylesheets/active_admin/components/_breadcrumbs.scss +0 -20
  188. data/app/assets/stylesheets/active_admin/components/_buttons.scss +0 -6
  189. data/app/assets/stylesheets/active_admin/components/_columns.scss +0 -3
  190. data/app/assets/stylesheets/active_admin/components/_comments.scss +0 -41
  191. data/app/assets/stylesheets/active_admin/components/_date_picker.scss +0 -148
  192. data/app/assets/stylesheets/active_admin/components/_dropdown_menu.scss +0 -154
  193. data/app/assets/stylesheets/active_admin/components/_flash_messages.scss +0 -37
  194. data/app/assets/stylesheets/active_admin/components/_grid.scss +0 -9
  195. data/app/assets/stylesheets/active_admin/components/_index_list.scss +0 -12
  196. data/app/assets/stylesheets/active_admin/components/_links.scss +0 -5
  197. data/app/assets/stylesheets/active_admin/components/_modal_dialog.scss +0 -34
  198. data/app/assets/stylesheets/active_admin/components/_pagination.scss +0 -58
  199. data/app/assets/stylesheets/active_admin/components/_panels.scss +0 -6
  200. data/app/assets/stylesheets/active_admin/components/_scopes.scss +0 -13
  201. data/app/assets/stylesheets/active_admin/components/_status_tags.scss +0 -12
  202. data/app/assets/stylesheets/active_admin/components/_table_tools.scss +0 -70
  203. data/app/assets/stylesheets/active_admin/components/_tables.scss +0 -112
  204. data/app/assets/stylesheets/active_admin/components/_tabs.scss +0 -68
  205. data/app/assets/stylesheets/active_admin/components/_unsupported_browser.scss +0 -16
  206. data/app/assets/stylesheets/active_admin/mixins/_all.scss +0 -8
  207. data/app/assets/stylesheets/active_admin/mixins/_buttons.scss +0 -65
  208. data/app/assets/stylesheets/active_admin/mixins/_gradients.scss +0 -28
  209. data/app/assets/stylesheets/active_admin/mixins/_rounded.scss +0 -22
  210. data/app/assets/stylesheets/active_admin/mixins/_sections.scss +0 -41
  211. data/app/assets/stylesheets/active_admin/mixins/_shadows.scss +0 -15
  212. data/app/assets/stylesheets/active_admin/mixins/_typography.scss +0 -3
  213. data/app/assets/stylesheets/active_admin/mixins/_utilities.scss +0 -17
  214. data/app/assets/stylesheets/active_admin/mixins/_variables.scss +0 -51
  215. data/app/assets/stylesheets/active_admin/pages/_logged_out.scss +0 -44
  216. data/app/assets/stylesheets/active_admin/structure/_footer.scss +0 -19
  217. data/app/assets/stylesheets/active_admin/structure/_main_structure.scss +0 -29
  218. data/app/assets/stylesheets/active_admin/structure/_title_bar.scss +0 -43
  219. data/app/javascript/active_admin/base.js +0 -28
  220. data/app/javascript/active_admin/ext/jquery-ui.js +0 -7
  221. data/app/javascript/active_admin/ext/jquery.js +0 -9
  222. data/app/javascript/active_admin/initializers/batch-actions.js +0 -61
  223. data/app/javascript/active_admin/initializers/checkbox-toggler.js +0 -3
  224. data/app/javascript/active_admin/initializers/datepicker.js +0 -16
  225. data/app/javascript/active_admin/initializers/dropdown-menu.js +0 -9
  226. data/app/javascript/active_admin/initializers/filters.js +0 -10
  227. data/app/javascript/active_admin/initializers/has-many.js +0 -98
  228. data/app/javascript/active_admin/initializers/per-page.js +0 -13
  229. data/app/javascript/active_admin/initializers/table-checkbox-toggler.js +0 -3
  230. data/app/javascript/active_admin/initializers/tabs.js +0 -6
  231. data/app/javascript/active_admin/lib/checkbox-toggler.js +0 -49
  232. data/app/javascript/active_admin/lib/dropdown-menu.js +0 -116
  233. data/app/javascript/active_admin/lib/filters.js +0 -39
  234. data/app/javascript/active_admin/lib/modal-dialog.js +0 -63
  235. data/app/javascript/active_admin/lib/per-page.js +0 -38
  236. data/app/javascript/active_admin/lib/table-checkbox-toggler.js +0 -38
  237. data/app/javascript/active_admin/lib/utils.js +0 -40
  238. data/app/views/kaminari/active_admin/_first_page.html.erb +0 -11
  239. data/app/views/kaminari/active_admin/_gap.html.erb +0 -8
  240. data/app/views/kaminari/active_admin/_last_page.html.erb +0 -11
  241. data/app/views/kaminari/active_admin/_next_page.html.erb +0 -11
  242. data/app/views/kaminari/active_admin/_page.html.erb +0 -12
  243. data/app/views/kaminari/active_admin/_paginator.html.erb +0 -25
  244. data/app/views/kaminari/active_admin/_prev_page.html.erb +0 -11
  245. data/app/views/kaminari/active_admin_countless/_first_page.html.erb +0 -11
  246. data/app/views/kaminari/active_admin_countless/_next_page.html.erb +0 -11
  247. data/app/views/kaminari/active_admin_countless/_page.html.erb +0 -12
  248. data/app/views/kaminari/active_admin_countless/_prev_page.html.erb +0 -11
  249. data/app/views/layouts/active_admin.html.arb +0 -2
  250. data/lib/active_admin/abstract_view_factory.rb +0 -48
  251. data/lib/active_admin/asset_registration.rb +0 -30
  252. data/lib/active_admin/base_controller/menu.rb +0 -35
  253. data/lib/active_admin/batch_actions/views/batch_action_selector.rb +0 -59
  254. data/lib/active_admin/filters/active_sidebar.rb +0 -28
  255. data/lib/active_admin/generators/boilerplate.rb +0 -54
  256. data/lib/active_admin/helpers/collection.rb +0 -21
  257. data/lib/active_admin/helpers/i18n.rb +0 -8
  258. data/lib/active_admin/inputs/datepicker_input.rb +0 -28
  259. data/lib/active_admin/inputs/filters/date_picker_input.rb +0 -14
  260. data/lib/active_admin/orm/active_record/comments/show_page_helper.rb +0 -24
  261. data/lib/active_admin/orm/mongoid.rb +0 -2
  262. data/lib/active_admin/resource_controller/sidebars.rb +0 -19
  263. data/lib/active_admin/resource_controller.rb +0 -68
  264. data/lib/active_admin/view_factory.rb +0 -28
  265. data/lib/active_admin/view_helpers/active_admin_application_helper.rb +0 -13
  266. data/lib/active_admin/view_helpers/auto_link_helper.rb +0 -46
  267. data/lib/active_admin/view_helpers/breadcrumb_helper.rb +0 -34
  268. data/lib/active_admin/view_helpers/display_helper.rb +0 -119
  269. data/lib/active_admin/view_helpers/download_format_links_helper.rb +0 -60
  270. data/lib/active_admin/view_helpers/fields_for.rb +0 -51
  271. data/lib/active_admin/view_helpers/flash_helper.rb +0 -15
  272. data/lib/active_admin/view_helpers/form_helper.rb +0 -21
  273. data/lib/active_admin/view_helpers/scope_name_helper.rb +0 -17
  274. data/lib/active_admin/view_helpers/sidebar_helper.rb +0 -16
  275. data/lib/active_admin/view_helpers/title_helper.rb +0 -12
  276. data/lib/active_admin/view_helpers/view_factory_helper.rb +0 -12
  277. data/lib/active_admin/views/action_items.rb +0 -18
  278. data/lib/active_admin/views/components/active_filters_sidebar_content.rb +0 -59
  279. data/lib/active_admin/views/components/blank_slate.rb +0 -18
  280. data/lib/active_admin/views/components/columns.rb +0 -162
  281. data/lib/active_admin/views/components/dropdown_menu.rb +0 -69
  282. data/lib/active_admin/views/components/menu.rb +0 -33
  283. data/lib/active_admin/views/components/menu_item.rb +0 -59
  284. data/lib/active_admin/views/components/sidebar.rb +0 -14
  285. data/lib/active_admin/views/components/sidebar_section.rb +0 -35
  286. data/lib/active_admin/views/components/site_title.rb +0 -55
  287. data/lib/active_admin/views/components/unsupported_browser.rb +0 -12
  288. data/lib/active_admin/views/footer.rb +0 -32
  289. data/lib/active_admin/views/header.rb +0 -20
  290. data/lib/active_admin/views/index_as_block.rb +0 -37
  291. data/lib/active_admin/views/index_as_blog.rb +0 -156
  292. data/lib/active_admin/views/index_as_grid.rb +0 -81
  293. data/lib/active_admin/views/pages/base.rb +0 -134
  294. data/lib/active_admin/views/pages/form.rb +0 -65
  295. data/lib/active_admin/views/pages/index.rb +0 -166
  296. data/lib/active_admin/views/pages/layout.rb +0 -27
  297. data/lib/active_admin/views/pages/page.rb +0 -31
  298. data/lib/active_admin/views/pages/show.rb +0 -60
  299. data/lib/active_admin/views/tabbed_navigation.rb +0 -12
  300. data/lib/active_admin/views/title_bar.rb +0 -56
  301. data/lib/generators/active_admin/assets/templates/active_admin.js +0 -1
  302. data/lib/generators/active_admin/assets/templates/active_admin.scss +0 -17
  303. data/lib/generators/active_admin/resource/templates/admin.rb.erb +0 -46
  304. data/lib/generators/active_admin/webpacker/plugins/jquery.js +0 -7
  305. data/lib/generators/active_admin/webpacker/templates/active_admin.js +0 -5
  306. data/lib/generators/active_admin/webpacker/templates/active_admin.scss +0 -17
  307. data/lib/generators/active_admin/webpacker/templates/print.scss +0 -2
  308. data/lib/generators/active_admin/webpacker/webpacker_generator.rb +0 -27
  309. data/vendor/assets/javascripts/jquery-ui/data.js +0 -45
  310. data/vendor/assets/javascripts/jquery-ui/disable-selection.js +0 -51
  311. data/vendor/assets/javascripts/jquery-ui/focusable.js +0 -89
  312. data/vendor/assets/javascripts/jquery-ui/form-reset-mixin.js +0 -83
  313. data/vendor/assets/javascripts/jquery-ui/form.js +0 -25
  314. data/vendor/assets/javascripts/jquery-ui/ie.js +0 -20
  315. data/vendor/assets/javascripts/jquery-ui/keycode.js +0 -51
  316. data/vendor/assets/javascripts/jquery-ui/labels.js +0 -71
  317. data/vendor/assets/javascripts/jquery-ui/plugin.js +0 -49
  318. data/vendor/assets/javascripts/jquery-ui/position.js +0 -513
  319. data/vendor/assets/javascripts/jquery-ui/safe-active-element.js +0 -46
  320. data/vendor/assets/javascripts/jquery-ui/safe-blur.js +0 -27
  321. data/vendor/assets/javascripts/jquery-ui/scroll-parent.js +0 -50
  322. data/vendor/assets/javascripts/jquery-ui/tabbable.js +0 -41
  323. data/vendor/assets/javascripts/jquery-ui/unique-id.js +0 -54
  324. data/vendor/assets/javascripts/jquery-ui/version.js +0 -20
  325. data/vendor/assets/javascripts/jquery-ui/widget.js +0 -758
  326. data/vendor/assets/javascripts/jquery-ui/widgets/button.js +0 -454
  327. data/vendor/assets/javascripts/jquery-ui/widgets/checkboxradio.js +0 -294
  328. data/vendor/assets/javascripts/jquery-ui/widgets/controlgroup.js +0 -304
  329. data/vendor/assets/javascripts/jquery-ui/widgets/datepicker.js +0 -2243
  330. data/vendor/assets/javascripts/jquery-ui/widgets/dialog.js +0 -971
  331. data/vendor/assets/javascripts/jquery-ui/widgets/draggable.js +0 -1268
  332. data/vendor/assets/javascripts/jquery-ui/widgets/mouse.js +0 -241
  333. data/vendor/assets/javascripts/jquery-ui/widgets/resizable.js +0 -1228
  334. data/vendor/assets/javascripts/jquery-ui/widgets/sortable.js +0 -1622
  335. data/vendor/assets/javascripts/jquery-ui/widgets/tabs.js +0 -931
  336. /data/{lib → app/controllers}/active_admin/base_controller/authorization.rb +0 -0
  337. /data/{lib → app/controllers}/active_admin/resource_controller/polymorphic_routes.rb +0 -0
  338. /data/{lib → app/controllers}/active_admin/resource_controller/resource_class_methods.rb +0 -0
  339. /data/lib/{active_admin/orm/mongoid/.gitkeep → generators/active_admin/assets/templates/builds/.keep} +0 -0
@@ -1,6 +0,0 @@
1
- #collection_selection_toggle_panel {
2
- @include clearfix;
3
- >.resource_selection_toggle_cell {
4
- float:left;
5
- }
6
- }
@@ -1,30 +0,0 @@
1
- .blank_slate_container {
2
- clear: both;
3
- text-align: center;
4
-
5
- .blank_slate {
6
- @include rounded;
7
- border: $blank-slate-border;
8
- color: $blank-slate-primary-color;
9
- display: inline-block;
10
- font-size: 1.2em;
11
- font-weight: bold;
12
- padding: 14px 25px;
13
- text-align: center;
14
-
15
- small {
16
- display: block;
17
- font-size: 0.9em;
18
- font-weight: normal;
19
- }
20
- }
21
- }
22
-
23
- .admin_dashboard .blank_slate_container .blank_slate {
24
- margin-top: 40px;
25
- margin-bottom: 40px;
26
- }
27
-
28
- .with_sidebar .blank_slate_container .blank_slate {
29
- margin-top: 80px;
30
- }
@@ -1,20 +0,0 @@
1
- .breadcrumb {
2
- display: block;
3
- font-size: 0.9em;
4
- font-weight: normal;
5
- line-height: 1.0em;
6
- margin-bottom: 12px;
7
- text-transform: uppercase;
8
-
9
- a, a:link, a:visited, a:active {
10
- color: $breadcrumbs-color;
11
- text-decoration: none;
12
- }
13
-
14
- a:hover { text-decoration: underline; }
15
-
16
- .breadcrumb_sep {
17
- margin: 0 2px;
18
- color: $breadcrumbs-separator-color;
19
- }
20
- }
@@ -1,6 +0,0 @@
1
- a.member_link {
2
- margin-right: 7px;
3
- white-space: nowrap;
4
- }
5
-
6
- a.button, a:link.button, a:visited.button, input[type=submit], input[type=button], button { @include dark-button; }
@@ -1,3 +0,0 @@
1
- .columns {
2
- margin-bottom: 10px;
3
- }
@@ -1,41 +0,0 @@
1
- // -------------------------------------- Admin Notes
2
- .comments {
3
-
4
- .active_admin_comment {
5
- margin-top: 10px;
6
- margin-bottom: 20px;
7
- max-width: 700px;
8
- @include clearfix;
9
-
10
- .active_admin_comment_meta {
11
- width: 130px;
12
- float: left;
13
- overflow: hidden;
14
- font-size: 0.9em;
15
- color: lighten($primary-color, 10%);
16
- .active_admin_comment_author {
17
- font-size: 1.2em;
18
- font-weight: bold;
19
- margin: 0;
20
- color: $primary-color;
21
- }
22
- }
23
- .active_admin_comment_body {
24
- margin-left: 150px;
25
- }
26
- }
27
- form.active_admin_comment {
28
- margin: 0;
29
- padding: 0;
30
- margin-left: 150px;
31
-
32
- fieldset.inputs {
33
- margin: 0;
34
- padding: 0;
35
- background: none;
36
- @include no-shadow;
37
- }
38
- li { padding: 0; }
39
- fieldset.buttons { padding: 0; margin-top: 5px;}
40
- }
41
- }
@@ -1,148 +0,0 @@
1
- // -------------------------------------- Date Picker
2
- .ui-datepicker {
3
- background: #fff;
4
- background-clip: padding-box;
5
- color: #fff;
6
- display: none;
7
- margin-top: 2px;
8
- padding: 0;
9
- text-align: center;
10
- width: 160px;
11
-
12
- a {
13
- text-decoration: none;
14
- &:hover {
15
- cursor: pointer;
16
- }
17
- }
18
-
19
- .ui-datepicker-header {
20
- @include primary-gradient;
21
- padding: 12px 5px 7px 4px;
22
- margin: 0px 0px 2px 2px;
23
- width: 156px;
24
- border-top-left-radius: 7px;
25
- border-top-right-radius: 7px;
26
- position: relative;
27
- z-index: 2000;
28
-
29
- &:before {
30
- content: "";
31
- position: absolute;
32
- right: 45%;
33
- top: -6px;
34
- width: 0px;
35
- height: 0px;
36
- border-left: 8.5px solid rgba(0, 0, 0, 0);
37
- border-right: 8.5px solid rgba(0, 0, 0, 0);
38
- border-bottom: 10px solid #676e73;
39
- }
40
-
41
- .ui-datepicker-title {
42
- @include text-shadow(#000);
43
- color: #fff;
44
- display: block;
45
- font-size: 1.1em;
46
- font-weight: bold;
47
- line-height: 0.8em;
48
- text-align: center;
49
-
50
- .ui-datepicker-month {
51
- margin: -4px 0 0 0;
52
- }
53
- .ui-datepicker-year {
54
- margin: -4px 0 0 0;
55
- }
56
- }
57
-
58
-
59
- a {
60
- color: #fff;
61
- display: block;
62
- height: 19px;
63
- margin-top: -4px;
64
- width: 10px;
65
-
66
- &.ui-datepicker-prev {
67
- float: left;
68
- width: 0;
69
- height: 0;
70
- margin: 0px 0px 0px 4px;
71
- border-top: 5px solid transparent;
72
- border-right: 5px solid white;
73
- border-bottom: 5px solid transparent;
74
- }
75
- &.ui-datepicker-next {
76
- float: right;
77
- width: 0;
78
- height: 0;
79
- margin: 0px 4px 0px 0px;
80
- border-top: 5px solid transparent;
81
- border-left: 5px solid white;
82
- border-bottom: 5px solid transparent;
83
- }
84
-
85
- span {
86
- display: none;
87
- }
88
- }
89
- }
90
-
91
- table.ui-datepicker-calendar {
92
- @include rounded-bottom;
93
- @include shadow(0,1px,6px,rgba(0,0,0,0.26));
94
- background-color: #f4f4f4;
95
- border: solid 1px #63686e;
96
- left: 2px;
97
- margin-bottom: 0px;
98
- position: relative;
99
- top: -2px;
100
- width: 156px;
101
-
102
- td, th {
103
- padding: 0px;
104
- text-align: center;
105
- }
106
-
107
- thead th {
108
- background-color: #dbdddf;
109
- color: #333333;
110
- font-weight: normal;
111
- font-size: 0.8em;
112
- padding-top: 1px;
113
- }
114
-
115
- tbody {
116
- color: #666666;
117
-
118
- td {
119
- border: none;
120
- height: 24px;
121
- width: 22px;
122
-
123
- a {
124
- @include rounded;
125
- color: #666666;
126
- font-weight: bold;
127
- font-size: 0.85em;
128
- padding: 4px;
129
-
130
- &.ui-state-active {
131
- background-color: #5a5f64;
132
- color: #fff;
133
- &.ui-state-hover {
134
- background-color: #5a5f64;
135
- color: #fff;
136
- }
137
- }
138
- &.ui-state-hover {
139
- background-color: #eceef0;
140
- }
141
- &.ui-state-highlight {
142
- background-color: #dbdddf;
143
- }
144
- }
145
- }
146
- }
147
- }
148
- }
@@ -1,154 +0,0 @@
1
- .dropdown_menu {
2
- display: inline;
3
-
4
- .dropdown_menu_button {
5
- @include light-button;
6
-
7
- & {
8
- position: relative;
9
- padding-right: 22px !important;
10
- cursor: pointer;
11
- }
12
-
13
- &:before {
14
- content: ' ';
15
- position: absolute;
16
- width: 0;
17
- height: 0;
18
- border-width: 3px 3px 0;
19
- border-style: solid;
20
- border-color: #FFF transparent;
21
- right: 12px;
22
- top: 45%;
23
- }
24
-
25
- &:after {
26
- content: ' ';
27
- position: absolute;
28
- width: 0;
29
- height: 0;
30
- border-width: 3px 3px 0;
31
- border-style: solid;
32
- border-color: #777 transparent;
33
- right: 12px;
34
- top: 45%;
35
- }
36
- }
37
-
38
- .dropdown_menu_nipple {
39
-
40
- // The nipple's border
41
- content: "";
42
- position: absolute;
43
- top: -6px;
44
- display: block;
45
- width: 0;
46
- height: 0;
47
- border-width: 0 6px 6px;
48
- border-style: solid;
49
- border-color: darken($primary-color, 4%) transparent;
50
- z-index: 100;
51
-
52
- // The nipple's inner shadow
53
-
54
- &:before {
55
- content: ' ';
56
- position: absolute;
57
- width: 0;
58
- height: 0;
59
- border-width: 0 5px 5px;
60
- border-style: solid;
61
- border-color: lighten($primary-color, 15%) transparent;
62
- left: -5px;
63
- top: 1px;
64
- }
65
-
66
- // The nipple's background color
67
-
68
- &:after {
69
- content: ' ';
70
- position: absolute;
71
- width: 0;
72
- height: 0;
73
- border-width: 0 5px 5px;
74
- border-style: solid;
75
- border-color: lighten($primary-color, 4%) transparent;
76
- left: -5px;
77
- top: 2px;
78
- }
79
- }
80
-
81
- .dropdown_menu_list_wrapper {
82
- display: inline-block;
83
- position: absolute;
84
- background-color: white;
85
- padding: 2px;
86
- box-shadow: rgba(0,0,0,0.4) 0 1px 3px, lighten($primary-color, 15%) 0px 1px 0px 0px inset;
87
- background-color: $primary-color;
88
- @include gradient(lighten($primary-color, 4%), darken($primary-color, 5%));
89
- border: solid 1px darken($primary-color, 10%);
90
- border-top-color: darken($primary-color, 4%);
91
- border-bottom-color: darken($primary-color, 17%);
92
- border-radius: 4px;
93
- z-index: 2000;
94
- display: none;
95
-
96
- .dropdown_menu_list {
97
- display: block;
98
- background-color: #FFF;
99
- border: solid 1px darken($primary-color, 10%);
100
- box-shadow: lighten($primary-color, 5%) 0px 1px 0px 0px;
101
- border-radius: 3px;
102
- margin: 0;
103
- overflow: hidden;
104
- padding: 8px;
105
-
106
- list-style-type: none;
107
- padding: 0;
108
-
109
- li {
110
- display: block;
111
- border-bottom: solid 1px #ebebeb;
112
-
113
- a {
114
- display: block;
115
- box-sizing: padding-box;
116
- font-size: 0.95em;
117
- font-weight: bold;
118
- padding: 7px 16px 5px;
119
- text-decoration: none;
120
- text-align: center;
121
- white-space: nowrap;
122
-
123
- &:hover {
124
- @include highlight-gradient;
125
- @include text-shadow(#5a83aa);
126
- color: #FFF;
127
- }
128
-
129
- &:active {
130
- @include reverse-highlight-gradient;
131
- color: #FFF;
132
- }
133
-
134
- }
135
-
136
- &:first-child {
137
- a {
138
- border-top-left-radius: 2px;
139
- border-top-right-radius: 2px;
140
- }
141
-
142
- }
143
-
144
- &:last-child {
145
- border: none;
146
- a {
147
- border-bottom-left-radius: 2px;
148
- border-bottom-right-radius: 2px;
149
- }
150
- }
151
- }
152
- }
153
- }
154
- }
@@ -1,37 +0,0 @@
1
- body.logged_in {
2
- .flash {
3
- @include gradient(#f7f1d3, #f5edc5);
4
- @include text-shadow(#fafafa);
5
- border-bottom: 1px solid #eee098;
6
- color: #cb9810;
7
- font-weight: bold;
8
- font-size: 1.1em;
9
- line-height: 1.0em;
10
- padding: 13px 30px 11px;
11
- position: relative;
12
-
13
- &.flash_notice {
14
- @include gradient(#dce9dd, #ccdfcd);
15
- border-bottom: 1px solid #adcbaf;
16
- color: #416347;
17
- }
18
- &.flash_error {
19
- @include gradient(#f5e4e4, #f1dcdc);
20
- border-bottom: 1px solid #e0c2c0;
21
- color: #b33c33;
22
- }
23
- }
24
- }
25
-
26
- body.logged_out {
27
- .flash {
28
- @include no-shadow;
29
- @include text-shadow(#fff);
30
- background: none;
31
- color: #666;
32
- font-weight: bold;
33
- line-height: 1.0em;
34
- padding: 0;
35
- margin-bottom: 8px;
36
- }
37
- }
@@ -1,9 +0,0 @@
1
- // -------------------------------------- Index as Grid
2
- table.index_grid td { border: none; background: none; padding: 0 20px 20px 0; margin: 0;}
3
-
4
- // -------------------------------------- Columns
5
- .columns {
6
- clear: both;
7
- padding: 0;
8
- .column { float: left; }
9
- }
@@ -1,12 +0,0 @@
1
- .indexes {
2
- float: right;
3
-
4
- li {
5
- .count {
6
- color: #8e979e;
7
- font-weight: normal;
8
- font-size: 0.9em;
9
- line-height: 10px;
10
- }
11
- }
12
- }
@@ -1,5 +0,0 @@
1
- a, a:link, a:visited {
2
- color: $link-color;
3
- text-decoration: underline;
4
- }
5
- a:hover { text-decoration: none; }
@@ -1,34 +0,0 @@
1
- .ui-widget-overlay {
2
- position: fixed;
3
- background: rgba(0,0,0,.2);
4
- top: 0; left: 0; right: 0; bottom: 0;
5
- z-index: 1001;
6
- }
7
-
8
- .ui-dialog {
9
- position: fixed;
10
- z-index: 1002;
11
- @include section-background;
12
- box-shadow: rgba(0,0,0,0.5) 0 0 10px;
13
-
14
- .ui-dialog-titlebar {
15
- @include section-header;
16
- span { font-size: 1.1em }
17
- }
18
-
19
- ul { list-style-type: none }
20
- li { margin: 10px 0 }
21
- label { margin-right: 10px }
22
-
23
- .ui-dialog-buttonpane, form {
24
- padding: 7px 15px 13px
25
- }
26
- .ui-dialog-buttonpane button {
27
- & { @include dark-button } // OK
28
- &:last-child { @include light-button } // Cancel
29
- }
30
- }
31
-
32
- .active_admin_dialog.ui-dialog {
33
- .ui-dialog-titlebar-close { display: none }
34
- }
@@ -1,58 +0,0 @@
1
- .paginated_collection_contents {
2
- clear: both;
3
- }
4
-
5
- .pagination {
6
- float: right;
7
- font-size: 0.9em;
8
- margin-left: 10px;
9
-
10
- a {
11
- @include light-button;
12
- }
13
-
14
- span.page.current {
15
- @include default-button;
16
- }
17
-
18
- a, span.page.current {
19
- @include rounded(0px);
20
- margin-right: 4px;
21
- padding: 2px 5px;
22
- }
23
- }
24
-
25
- .pagination_information {
26
- float: right;
27
- margin-bottom: 5px;
28
- color: #b3bcc1;
29
- b { color: #5c6469; }
30
- }
31
-
32
- .download_links {
33
- float: left;
34
- }
35
-
36
- .pagination_per_page {
37
- float: right;
38
- margin-left: 4px;
39
- select {
40
- @include light-button;
41
-
42
- & {
43
- @include rounded(0px);
44
- padding: 1px 5px;
45
- }
46
- }
47
- }
48
-
49
- .comments {
50
- .pagination {
51
- float: left;
52
- margin-bottom: 30px;
53
- }
54
- .pagination_information {
55
- float: left;
56
- color: #000;
57
- }
58
- }
@@ -1,6 +0,0 @@
1
- // ----------------------------------- Helper class to apply to elements to make them sections
2
- .section, .panel{ @include section; }
3
-
4
- // ----------------------------------- Sidebar Sections
5
-
6
- .sidebar_section { @include section; }
@@ -1,13 +0,0 @@
1
- .scopes {
2
- li {
3
- .count {
4
- color: #8e979e;
5
- font-weight: normal;
6
- font-size: 0.9em;
7
- line-height: 10px;
8
- }
9
- &:first-child a {
10
- margin-left: 10px;
11
- }
12
- }
13
- }
@@ -1,12 +0,0 @@
1
- .status_tag {
2
- background: darken($secondary-color, 15%);
3
- color: #fff;
4
- text-transform: uppercase;
5
- letter-spacing: 0.15em;
6
- padding: 3px 5px 2px 5px;
7
- font-size: 0.8em;
8
-
9
- &.yes { background: #6090DB }
10
- &.no { background: grey }
11
-
12
- }
@@ -1,70 +0,0 @@
1
- .table_tools {
2
- margin-bottom: 16px;
3
- @include clearfix;
4
- }
5
-
6
- .table_tools .dropdown_menu {
7
- float: left;
8
- }
9
-
10
- a.table_tools_button, .table_tools .dropdown_menu_button {
11
- @include light-button;
12
-
13
- & {
14
- @include gradient(#FFFFFF, #F0F0F0);
15
- @include border-colors(#d9d9d9, #d0d0d0, #c5c5c5);
16
- font-size: 0.9em;
17
- padding: 4px 14px 4px;
18
- margin: 0;
19
- }
20
-
21
- &:not(.disabled) {
22
- &:hover {
23
- @include gradient(#FFFFFF, #F6F6F6);
24
- }
25
-
26
- &:active {
27
- @include border-colors(#d7d7d7, #c8c8c8, #c3c3c3);
28
- box-shadow: 0 1px 1px 0 rgba(0,0,0,0.17) inset;
29
- @include gradient(#FFFFFF, #E8E8E8);
30
- }
31
- }
32
- }
33
-
34
- .table_tools_segmented_control {
35
- list-style-type: none;
36
- padding: 0;
37
- margin: 0;
38
-
39
- li {
40
- float: left;
41
-
42
- a {
43
- border-width: 1px .5px 1px .5px;
44
- border-radius: 0;
45
- }
46
-
47
- &:first-child a {
48
- border-left-width: 1px;
49
- border-top-left-radius: 12px;
50
- border-bottom-left-radius: 12px;
51
- }
52
-
53
- &:last-child a {
54
- border-right-width: 1px;
55
- border-top-right-radius: 12px;
56
- border-bottom-right-radius: 12px;
57
- }
58
-
59
- &.selected a {
60
- @include gradient(#F0F0F0, #FDFDFD);
61
- box-shadow: 0 1px 1px 0 rgba(0,0,0,0.1) inset;
62
- cursor: default;
63
-
64
- &:hover {
65
- @include gradient(#F0F0F0, #FDFDFD);
66
- }
67
- }
68
-
69
- }
70
- }