activeadmin 2.2.0

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 (372) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +546 -0
  3. data/CODE_OF_CONDUCT.md +74 -0
  4. data/CONTRIBUTING.md +217 -0
  5. data/LICENSE +20 -0
  6. data/README.md +110 -0
  7. data/app/assets/images/active_admin/nested_menu_arrow.gif +0 -0
  8. data/app/assets/images/active_admin/nested_menu_arrow_dark.gif +0 -0
  9. data/app/assets/images/active_admin/orderable.png +0 -0
  10. data/app/assets/javascripts/active_admin/base.es6 +23 -0
  11. data/app/assets/javascripts/active_admin/ext/jquery-ui.es6 +7 -0
  12. data/app/assets/javascripts/active_admin/ext/jquery.es6 +9 -0
  13. data/app/assets/javascripts/active_admin/initializers/datepicker.es6 +16 -0
  14. data/app/assets/javascripts/active_admin/initializers/filters.es6 +45 -0
  15. data/app/assets/javascripts/active_admin/initializers/tabs.es6 +6 -0
  16. data/app/assets/javascripts/active_admin/lib/active_admin.es6 +41 -0
  17. data/app/assets/javascripts/active_admin/lib/batch_actions.es6 +55 -0
  18. data/app/assets/javascripts/active_admin/lib/checkbox-toggler.es6 +49 -0
  19. data/app/assets/javascripts/active_admin/lib/dropdown-menu.es6 +123 -0
  20. data/app/assets/javascripts/active_admin/lib/has_many.es6 +95 -0
  21. data/app/assets/javascripts/active_admin/lib/modal_dialog.es6 +61 -0
  22. data/app/assets/javascripts/active_admin/lib/per_page.es6 +47 -0
  23. data/app/assets/javascripts/active_admin/lib/table-checkbox-toggler.es6 +36 -0
  24. data/app/assets/stylesheets/active_admin/_base.scss +41 -0
  25. data/app/assets/stylesheets/active_admin/_forms.scss +326 -0
  26. data/app/assets/stylesheets/active_admin/_header.scss +156 -0
  27. data/app/assets/stylesheets/active_admin/_mixins.scss +1 -0
  28. data/app/assets/stylesheets/active_admin/_typography.scss +100 -0
  29. data/app/assets/stylesheets/active_admin/components/_batch_actions.scss +6 -0
  30. data/app/assets/stylesheets/active_admin/components/_blank_slates.scss +30 -0
  31. data/app/assets/stylesheets/active_admin/components/_breadcrumbs.scss +20 -0
  32. data/app/assets/stylesheets/active_admin/components/_buttons.scss +6 -0
  33. data/app/assets/stylesheets/active_admin/components/_columns.scss +3 -0
  34. data/app/assets/stylesheets/active_admin/components/_comments.scss +41 -0
  35. data/app/assets/stylesheets/active_admin/components/_date_picker.scss +149 -0
  36. data/app/assets/stylesheets/active_admin/components/_dropdown_menu.scss +152 -0
  37. data/app/assets/stylesheets/active_admin/components/_flash_messages.scss +37 -0
  38. data/app/assets/stylesheets/active_admin/components/_grid.scss +9 -0
  39. data/app/assets/stylesheets/active_admin/components/_index_list.scss +12 -0
  40. data/app/assets/stylesheets/active_admin/components/_links.scss +5 -0
  41. data/app/assets/stylesheets/active_admin/components/_modal_dialog.scss +34 -0
  42. data/app/assets/stylesheets/active_admin/components/_pagination.scss +55 -0
  43. data/app/assets/stylesheets/active_admin/components/_panels.scss +6 -0
  44. data/app/assets/stylesheets/active_admin/components/_scopes.scss +13 -0
  45. data/app/assets/stylesheets/active_admin/components/_status_tags.scss +12 -0
  46. data/app/assets/stylesheets/active_admin/components/_table_tools.scss +67 -0
  47. data/app/assets/stylesheets/active_admin/components/_tables.scss +113 -0
  48. data/app/assets/stylesheets/active_admin/components/_tabs.scss +65 -0
  49. data/app/assets/stylesheets/active_admin/components/_unsupported_browser.scss +16 -0
  50. data/app/assets/stylesheets/active_admin/mixins/_all.scss +8 -0
  51. data/app/assets/stylesheets/active_admin/mixins/_buttons.scss +65 -0
  52. data/app/assets/stylesheets/active_admin/mixins/_gradients.scss +28 -0
  53. data/app/assets/stylesheets/active_admin/mixins/_rounded.scss +22 -0
  54. data/app/assets/stylesheets/active_admin/mixins/_sections.scss +41 -0
  55. data/app/assets/stylesheets/active_admin/mixins/_shadows.scss +15 -0
  56. data/app/assets/stylesheets/active_admin/mixins/_typography.scss +3 -0
  57. data/app/assets/stylesheets/active_admin/mixins/_utilities.scss +17 -0
  58. data/app/assets/stylesheets/active_admin/mixins/_variables.scss +34 -0
  59. data/app/assets/stylesheets/active_admin/pages/_logged_out.scss +44 -0
  60. data/app/assets/stylesheets/active_admin/print.scss +287 -0
  61. data/app/assets/stylesheets/active_admin/structure/_footer.scss +14 -0
  62. data/app/assets/stylesheets/active_admin/structure/_main_structure.scss +29 -0
  63. data/app/assets/stylesheets/active_admin/structure/_title_bar.scss +41 -0
  64. data/app/views/active_admin/devise/confirmations/new.html.erb +15 -0
  65. data/app/views/active_admin/devise/mailer/reset_password_instructions.html.erb +8 -0
  66. data/app/views/active_admin/devise/mailer/unlock_instructions.html.erb +7 -0
  67. data/app/views/active_admin/devise/passwords/edit.html.erb +18 -0
  68. data/app/views/active_admin/devise/passwords/new.html.erb +15 -0
  69. data/app/views/active_admin/devise/registrations/new.html.erb +21 -0
  70. data/app/views/active_admin/devise/sessions/new.html.erb +20 -0
  71. data/app/views/active_admin/devise/shared/_error_messages.html.erb +15 -0
  72. data/app/views/active_admin/devise/shared/_links.erb +33 -0
  73. data/app/views/active_admin/devise/unlocks/new.html.erb +15 -0
  74. data/app/views/active_admin/page/index.html.arb +1 -0
  75. data/app/views/active_admin/resource/edit.html.arb +1 -0
  76. data/app/views/active_admin/resource/index.html.arb +1 -0
  77. data/app/views/active_admin/resource/new.html.arb +1 -0
  78. data/app/views/active_admin/resource/show.html.arb +1 -0
  79. data/app/views/kaminari/active_admin/_first_page.html.erb +11 -0
  80. data/app/views/kaminari/active_admin/_gap.html.erb +8 -0
  81. data/app/views/kaminari/active_admin/_last_page.html.erb +11 -0
  82. data/app/views/kaminari/active_admin/_next_page.html.erb +11 -0
  83. data/app/views/kaminari/active_admin/_page.html.erb +12 -0
  84. data/app/views/kaminari/active_admin/_paginator.html.erb +25 -0
  85. data/app/views/kaminari/active_admin/_prev_page.html.erb +11 -0
  86. data/app/views/layouts/active_admin.html.arb +1 -0
  87. data/app/views/layouts/active_admin_logged_out.html.erb +39 -0
  88. data/config/locales/ar.yml +135 -0
  89. data/config/locales/bg.yml +119 -0
  90. data/config/locales/bs.yml +121 -0
  91. data/config/locales/ca.yml +106 -0
  92. data/config/locales/cs.yml +109 -0
  93. data/config/locales/da.yml +137 -0
  94. data/config/locales/de-CH.yml +101 -0
  95. data/config/locales/de.yml +144 -0
  96. data/config/locales/el.yml +126 -0
  97. data/config/locales/en-CA.yml +139 -0
  98. data/config/locales/en-GB.yml +139 -0
  99. data/config/locales/en.yml +162 -0
  100. data/config/locales/eo.yml +145 -0
  101. data/config/locales/es-MX.yml +96 -0
  102. data/config/locales/es.yml +162 -0
  103. data/config/locales/fa.yml +119 -0
  104. data/config/locales/fi.yml +112 -0
  105. data/config/locales/fr.yml +141 -0
  106. data/config/locales/he.yml +141 -0
  107. data/config/locales/hr.yml +123 -0
  108. data/config/locales/hu.yml +102 -0
  109. data/config/locales/id.yml +135 -0
  110. data/config/locales/it.yml +144 -0
  111. data/config/locales/ja.yml +141 -0
  112. data/config/locales/ko.yml +120 -0
  113. data/config/locales/lt.yml +142 -0
  114. data/config/locales/lv.yml +92 -0
  115. data/config/locales/mk.yml +134 -0
  116. data/config/locales/nb.yml +130 -0
  117. data/config/locales/nl.yml +144 -0
  118. data/config/locales/pl.yml +168 -0
  119. data/config/locales/pt-BR.yml +143 -0
  120. data/config/locales/pt-PT.yml +92 -0
  121. data/config/locales/ro.yml +96 -0
  122. data/config/locales/ru.yml +141 -0
  123. data/config/locales/sk.yml +109 -0
  124. data/config/locales/sv-SE.yml +135 -0
  125. data/config/locales/tr.yml +144 -0
  126. data/config/locales/uk.yml +138 -0
  127. data/config/locales/vi.yml +134 -0
  128. data/config/locales/zh-CN.yml +143 -0
  129. data/config/locales/zh-TW.yml +135 -0
  130. data/docs/.gitignore +1 -0
  131. data/docs/0-installation.md +118 -0
  132. data/docs/1-general-configuration.md +204 -0
  133. data/docs/10-custom-pages.md +150 -0
  134. data/docs/11-decorators.md +59 -0
  135. data/docs/12-arbre-components.md +214 -0
  136. data/docs/13-authorization-adapter.md +285 -0
  137. data/docs/14-gotchas.md +138 -0
  138. data/docs/2-resource-customization.md +466 -0
  139. data/docs/3-index-pages.md +328 -0
  140. data/docs/3-index-pages/custom-index.md +35 -0
  141. data/docs/3-index-pages/index-as-block.md +19 -0
  142. data/docs/3-index-pages/index-as-blog.md +69 -0
  143. data/docs/3-index-pages/index-as-grid.md +27 -0
  144. data/docs/3-index-pages/index-as-table.md +227 -0
  145. data/docs/4-csv-format.md +74 -0
  146. data/docs/5-forms.md +232 -0
  147. data/docs/6-show-pages.md +81 -0
  148. data/docs/7-sidebars.md +75 -0
  149. data/docs/8-custom-actions.md +177 -0
  150. data/docs/9-batch-actions.md +237 -0
  151. data/docs/CNAME +1 -0
  152. data/docs/Gemfile +4 -0
  153. data/docs/Gemfile.lock +249 -0
  154. data/docs/README.md +24 -0
  155. data/docs/_config.yml +2 -0
  156. data/docs/_includes/footer.html +8 -0
  157. data/docs/_includes/google-analytics.html +16 -0
  158. data/docs/_includes/head.html +7 -0
  159. data/docs/_includes/toc.html +98 -0
  160. data/docs/_includes/top-menu.html +17 -0
  161. data/docs/_layouts/default.html +21 -0
  162. data/docs/documentation.md +60 -0
  163. data/docs/images/activeadmin.png +0 -0
  164. data/docs/images/code-header.png +0 -0
  165. data/docs/images/divider.png +0 -0
  166. data/docs/images/features.png +0 -0
  167. data/docs/images/tidelift.svg +14 -0
  168. data/docs/index.html +125 -0
  169. data/docs/stylesheets/main.css +1176 -0
  170. data/lib/active_admin.rb +134 -0
  171. data/lib/active_admin/abstract_view_factory.rb +47 -0
  172. data/lib/active_admin/application.rb +234 -0
  173. data/lib/active_admin/application_settings.rb +42 -0
  174. data/lib/active_admin/asset_registration.rb +29 -0
  175. data/lib/active_admin/authorization_adapter.rb +129 -0
  176. data/lib/active_admin/base_controller.rb +81 -0
  177. data/lib/active_admin/base_controller/authorization.rb +127 -0
  178. data/lib/active_admin/base_controller/menu.rb +34 -0
  179. data/lib/active_admin/batch_actions.rb +16 -0
  180. data/lib/active_admin/batch_actions/controller.rb +40 -0
  181. data/lib/active_admin/batch_actions/resource_extension.rb +155 -0
  182. data/lib/active_admin/batch_actions/views/batch_action_form.rb +38 -0
  183. data/lib/active_admin/batch_actions/views/batch_action_selector.rb +58 -0
  184. data/lib/active_admin/batch_actions/views/selection_cells.rb +38 -0
  185. data/lib/active_admin/callbacks.rb +88 -0
  186. data/lib/active_admin/cancan_adapter.rb +36 -0
  187. data/lib/active_admin/component.rb +5 -0
  188. data/lib/active_admin/controller_action.rb +13 -0
  189. data/lib/active_admin/csv_builder.rb +133 -0
  190. data/lib/active_admin/dependency.rb +100 -0
  191. data/lib/active_admin/deprecation.rb +10 -0
  192. data/lib/active_admin/devise.rb +80 -0
  193. data/lib/active_admin/dsl.rb +160 -0
  194. data/lib/active_admin/dynamic_setting.rb +38 -0
  195. data/lib/active_admin/dynamic_settings_node.rb +28 -0
  196. data/lib/active_admin/engine.rb +21 -0
  197. data/lib/active_admin/error.rb +64 -0
  198. data/lib/active_admin/filters.rb +11 -0
  199. data/lib/active_admin/filters/active.rb +29 -0
  200. data/lib/active_admin/filters/active_filter.rb +124 -0
  201. data/lib/active_admin/filters/active_sidebar.rb +54 -0
  202. data/lib/active_admin/filters/dsl.rb +21 -0
  203. data/lib/active_admin/filters/forms.rb +85 -0
  204. data/lib/active_admin/filters/formtastic_addons.rb +79 -0
  205. data/lib/active_admin/filters/resource_extension.rb +155 -0
  206. data/lib/active_admin/form_builder.rb +182 -0
  207. data/lib/active_admin/generators/boilerplate.rb +45 -0
  208. data/lib/active_admin/helpers/collection.rb +19 -0
  209. data/lib/active_admin/helpers/i18n.rb +7 -0
  210. data/lib/active_admin/helpers/optional_display.rb +38 -0
  211. data/lib/active_admin/helpers/routes/url_helpers.rb +15 -0
  212. data/lib/active_admin/helpers/scope_chain.rb +24 -0
  213. data/lib/active_admin/inputs.rb +21 -0
  214. data/lib/active_admin/inputs/datepicker_input.rb +27 -0
  215. data/lib/active_admin/inputs/filters/base.rb +44 -0
  216. data/lib/active_admin/inputs/filters/base/search_method_select.rb +75 -0
  217. data/lib/active_admin/inputs/filters/boolean_input.rb +24 -0
  218. data/lib/active_admin/inputs/filters/check_boxes_input.rb +50 -0
  219. data/lib/active_admin/inputs/filters/date_picker_input.rb +13 -0
  220. data/lib/active_admin/inputs/filters/date_range_input.rb +49 -0
  221. data/lib/active_admin/inputs/filters/numeric_input.rb +12 -0
  222. data/lib/active_admin/inputs/filters/select_input.rb +58 -0
  223. data/lib/active_admin/inputs/filters/string_input.rb +26 -0
  224. data/lib/active_admin/inputs/filters/text_input.rb +25 -0
  225. data/lib/active_admin/localizers.rb +11 -0
  226. data/lib/active_admin/localizers/resource_localizer.rb +35 -0
  227. data/lib/active_admin/menu.rb +102 -0
  228. data/lib/active_admin/menu_collection.rb +91 -0
  229. data/lib/active_admin/menu_item.rb +69 -0
  230. data/lib/active_admin/namespace.rb +266 -0
  231. data/lib/active_admin/namespace_settings.rb +110 -0
  232. data/lib/active_admin/order_clause.rb +48 -0
  233. data/lib/active_admin/orm/active_record.rb +5 -0
  234. data/lib/active_admin/orm/active_record/comments.rb +101 -0
  235. data/lib/active_admin/orm/active_record/comments/comment.rb +31 -0
  236. data/lib/active_admin/orm/active_record/comments/namespace_helper.rb +14 -0
  237. data/lib/active_admin/orm/active_record/comments/resource_helper.rb +17 -0
  238. data/lib/active_admin/orm/active_record/comments/show_page_helper.rb +23 -0
  239. data/lib/active_admin/orm/active_record/comments/views.rb +2 -0
  240. data/lib/active_admin/orm/active_record/comments/views/active_admin_comments.rb +100 -0
  241. data/lib/active_admin/orm/mongoid.rb +1 -0
  242. data/lib/active_admin/orm/mongoid/.gitkeep +0 -0
  243. data/lib/active_admin/page.rb +111 -0
  244. data/lib/active_admin/page_controller.rb +29 -0
  245. data/lib/active_admin/page_dsl.rb +32 -0
  246. data/lib/active_admin/page_presenter.rb +33 -0
  247. data/lib/active_admin/pundit_adapter.rb +81 -0
  248. data/lib/active_admin/resource.rb +207 -0
  249. data/lib/active_admin/resource/action_items.rb +120 -0
  250. data/lib/active_admin/resource/attributes.rb +47 -0
  251. data/lib/active_admin/resource/belongs_to.rb +50 -0
  252. data/lib/active_admin/resource/controllers.rb +19 -0
  253. data/lib/active_admin/resource/includes.rb +12 -0
  254. data/lib/active_admin/resource/menu.rb +67 -0
  255. data/lib/active_admin/resource/naming.rb +62 -0
  256. data/lib/active_admin/resource/ordering.rb +11 -0
  257. data/lib/active_admin/resource/page_presenters.rb +82 -0
  258. data/lib/active_admin/resource/pagination.rb +23 -0
  259. data/lib/active_admin/resource/routes.rb +139 -0
  260. data/lib/active_admin/resource/scope_to.rb +74 -0
  261. data/lib/active_admin/resource/scopes.rb +52 -0
  262. data/lib/active_admin/resource/sidebars.rb +28 -0
  263. data/lib/active_admin/resource_collection.rb +72 -0
  264. data/lib/active_admin/resource_controller.rb +64 -0
  265. data/lib/active_admin/resource_controller/action_builder.rb +31 -0
  266. data/lib/active_admin/resource_controller/data_access.rb +322 -0
  267. data/lib/active_admin/resource_controller/decorators.rb +102 -0
  268. data/lib/active_admin/resource_controller/resource_class_methods.rb +26 -0
  269. data/lib/active_admin/resource_controller/scoping.rb +31 -0
  270. data/lib/active_admin/resource_controller/sidebars.rb +18 -0
  271. data/lib/active_admin/resource_controller/streaming.rb +43 -0
  272. data/lib/active_admin/resource_dsl.rb +224 -0
  273. data/lib/active_admin/router.rb +114 -0
  274. data/lib/active_admin/scope.rb +64 -0
  275. data/lib/active_admin/settings_node.rb +19 -0
  276. data/lib/active_admin/sidebar_section.rb +39 -0
  277. data/lib/active_admin/version.rb +3 -0
  278. data/lib/active_admin/view_factory.rb +27 -0
  279. data/lib/active_admin/view_helpers.rb +20 -0
  280. data/lib/active_admin/view_helpers/active_admin_application_helper.rb +12 -0
  281. data/lib/active_admin/view_helpers/auto_link_helper.rb +45 -0
  282. data/lib/active_admin/view_helpers/breadcrumb_helper.rb +33 -0
  283. data/lib/active_admin/view_helpers/display_helper.rb +104 -0
  284. data/lib/active_admin/view_helpers/download_format_links_helper.rb +59 -0
  285. data/lib/active_admin/view_helpers/fields_for.rb +50 -0
  286. data/lib/active_admin/view_helpers/flash_helper.rb +14 -0
  287. data/lib/active_admin/view_helpers/form_helper.rb +20 -0
  288. data/lib/active_admin/view_helpers/method_or_proc_helper.rb +100 -0
  289. data/lib/active_admin/view_helpers/scope_name_helper.rb +16 -0
  290. data/lib/active_admin/view_helpers/sidebar_helper.rb +15 -0
  291. data/lib/active_admin/view_helpers/title_helper.rb +11 -0
  292. data/lib/active_admin/view_helpers/view_factory_helper.rb +11 -0
  293. data/lib/active_admin/views.rb +8 -0
  294. data/lib/active_admin/views/action_items.rb +17 -0
  295. data/lib/active_admin/views/components/active_admin_form.rb +155 -0
  296. data/lib/active_admin/views/components/attributes_table.rb +94 -0
  297. data/lib/active_admin/views/components/blank_slate.rb +17 -0
  298. data/lib/active_admin/views/components/columns.rb +161 -0
  299. data/lib/active_admin/views/components/dropdown_menu.rb +71 -0
  300. data/lib/active_admin/views/components/index_list.rb +69 -0
  301. data/lib/active_admin/views/components/menu.rb +32 -0
  302. data/lib/active_admin/views/components/menu_item.rb +58 -0
  303. data/lib/active_admin/views/components/paginated_collection.rb +159 -0
  304. data/lib/active_admin/views/components/panel.rb +38 -0
  305. data/lib/active_admin/views/components/scopes.rb +72 -0
  306. data/lib/active_admin/views/components/sidebar.rb +13 -0
  307. data/lib/active_admin/views/components/sidebar_section.rb +34 -0
  308. data/lib/active_admin/views/components/site_title.rb +54 -0
  309. data/lib/active_admin/views/components/status_tag.rb +75 -0
  310. data/lib/active_admin/views/components/table_for.rb +209 -0
  311. data/lib/active_admin/views/components/tabs.rb +40 -0
  312. data/lib/active_admin/views/components/unsupported_browser.rb +11 -0
  313. data/lib/active_admin/views/footer.rb +30 -0
  314. data/lib/active_admin/views/header.rb +19 -0
  315. data/lib/active_admin/views/index_as_block.rb +36 -0
  316. data/lib/active_admin/views/index_as_blog.rb +155 -0
  317. data/lib/active_admin/views/index_as_grid.rb +80 -0
  318. data/lib/active_admin/views/index_as_table.rb +392 -0
  319. data/lib/active_admin/views/pages/base.rb +126 -0
  320. data/lib/active_admin/views/pages/form.rb +64 -0
  321. data/lib/active_admin/views/pages/index.rb +163 -0
  322. data/lib/active_admin/views/pages/layout.rb +26 -0
  323. data/lib/active_admin/views/pages/page.rb +30 -0
  324. data/lib/active_admin/views/pages/show.rb +65 -0
  325. data/lib/active_admin/views/tabbed_navigation.rb +11 -0
  326. data/lib/active_admin/views/title_bar.rb +55 -0
  327. data/lib/activeadmin.rb +1 -0
  328. data/lib/generators/active_admin/assets/assets_generator.rb +14 -0
  329. data/lib/generators/active_admin/assets/templates/active_admin.js +1 -0
  330. data/lib/generators/active_admin/assets/templates/active_admin.scss +17 -0
  331. data/lib/generators/active_admin/devise/devise_generator.rb +68 -0
  332. data/lib/generators/active_admin/install/install_generator.rb +49 -0
  333. data/lib/generators/active_admin/install/templates/active_admin.rb.erb +315 -0
  334. data/lib/generators/active_admin/install/templates/admin_users.rb.erb +28 -0
  335. data/lib/generators/active_admin/install/templates/dashboard.rb +32 -0
  336. data/lib/generators/active_admin/install/templates/migrations/create_active_admin_comments.rb.erb +16 -0
  337. data/lib/generators/active_admin/page/USAGE +8 -0
  338. data/lib/generators/active_admin/page/page_generator.rb +12 -0
  339. data/lib/generators/active_admin/page/templates/page.rb +5 -0
  340. data/lib/generators/active_admin/resource/resource_generator.rb +20 -0
  341. data/lib/generators/active_admin/resource/templates/admin.rb.erb +44 -0
  342. data/lib/ransack_ext.rb +20 -0
  343. data/vendor/assets/javascripts/jquery-ui/data.js +41 -0
  344. data/vendor/assets/javascripts/jquery-ui/disable-selection.js +48 -0
  345. data/vendor/assets/javascripts/jquery-ui/escape-selector.js +23 -0
  346. data/vendor/assets/javascripts/jquery-ui/focusable.js +86 -0
  347. data/vendor/assets/javascripts/jquery-ui/form-reset-mixin.js +80 -0
  348. data/vendor/assets/javascripts/jquery-ui/form.js +22 -0
  349. data/vendor/assets/javascripts/jquery-ui/ie.js +17 -0
  350. data/vendor/assets/javascripts/jquery-ui/keycode.js +47 -0
  351. data/vendor/assets/javascripts/jquery-ui/labels.js +65 -0
  352. data/vendor/assets/javascripts/jquery-ui/plugin.js +46 -0
  353. data/vendor/assets/javascripts/jquery-ui/position.js +500 -0
  354. data/vendor/assets/javascripts/jquery-ui/safe-active-element.js +42 -0
  355. data/vendor/assets/javascripts/jquery-ui/safe-blur.js +23 -0
  356. data/vendor/assets/javascripts/jquery-ui/scroll-parent.js +47 -0
  357. data/vendor/assets/javascripts/jquery-ui/tabbable.js +38 -0
  358. data/vendor/assets/javascripts/jquery-ui/unique-id.js +51 -0
  359. data/vendor/assets/javascripts/jquery-ui/version.js +17 -0
  360. data/vendor/assets/javascripts/jquery-ui/widget.js +735 -0
  361. data/vendor/assets/javascripts/jquery-ui/widgets/button.js +391 -0
  362. data/vendor/assets/javascripts/jquery-ui/widgets/checkboxradio.js +291 -0
  363. data/vendor/assets/javascripts/jquery-ui/widgets/controlgroup.js +300 -0
  364. data/vendor/assets/javascripts/jquery-ui/widgets/datepicker.js +2123 -0
  365. data/vendor/assets/javascripts/jquery-ui/widgets/dialog.js +954 -0
  366. data/vendor/assets/javascripts/jquery-ui/widgets/draggable.js +1259 -0
  367. data/vendor/assets/javascripts/jquery-ui/widgets/mouse.js +230 -0
  368. data/vendor/assets/javascripts/jquery-ui/widgets/resizable.js +1207 -0
  369. data/vendor/assets/javascripts/jquery-ui/widgets/sortable.js +1561 -0
  370. data/vendor/assets/javascripts/jquery-ui/widgets/tabs.js +931 -0
  371. data/vendor/assets/stylesheets/active_admin/_normalize.scss +447 -0
  372. metadata +616 -0
@@ -0,0 +1,60 @@
1
+ ---
2
+ redirect_from: /docs/documentation.html
3
+ ---
4
+
5
+ Active Admin is a framework for creating administration style interfaces. It
6
+ abstracts common business application patterns to make it simple for developers
7
+ to implement beautiful and elegant interfaces with very little effort.
8
+
9
+ # Getting Started
10
+
11
+ Active Admin is released as a Ruby Gem. The gem is to be installed within a Ruby
12
+ on Rails application. To install, simply add the following to your Gemfile:
13
+
14
+ ```ruby
15
+ # Gemfile
16
+ gem 'activeadmin'
17
+ ```
18
+
19
+ After updating your bundle, run the installer
20
+
21
+ ```bash
22
+ rails generate active_admin:install
23
+ ```
24
+
25
+ The installer creates an initializer used for configuring defaults used by
26
+ Active Admin as well as a new folder at `app/admin` to put all your admin
27
+ configurations.
28
+
29
+ Migrate your db and start the server:
30
+
31
+ ```bash
32
+ $> rake db:migrate
33
+ $> rails server
34
+ ```
35
+
36
+ Visit `http://localhost:3000/admin` and log in using:
37
+
38
+ * __User__: admin@example.com
39
+ * __Password__: password
40
+
41
+ Voila! You’re on your brand new Active Admin dashboard.
42
+
43
+ To register your first model, run:
44
+
45
+ ```bash
46
+ $> rails generate active_admin:resource
47
+ [MyModelName]
48
+ ```
49
+
50
+ This creates a file at `app/admin/my_model_names.rb` for configuring the
51
+ resource. Refresh your web browser to see the interface.
52
+
53
+ # Next Steps
54
+
55
+ Now that you have a working Active Admin installation, learn how to customize it:
56
+
57
+ * [Customize the Index Page](3-index-pages.md)
58
+ * [Customize the New and Edit Form](5-forms.md)
59
+ * [Customize the Show Page](6-show-pages.md)
60
+ * [Customize the Resource in General](2-resource-customization.md)
Binary file
Binary file
@@ -0,0 +1,14 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 37 30">
2
+ <defs>
3
+ <style>.cls-1{fill:#626908}.cls-2{fill:#f6914d}</style>
4
+ </defs>
5
+
6
+ <g id="Layer_2" data-name="Layer 2">
7
+ <g id="Artwork">
8
+ <path class="cls-1" d="M16.07 0H2.77C0 0 0 0 0 2.54S0 5 2.77 5h7.91v9l5.39-4.2z"/>
9
+ <path class="cls-2" d="M10.68 27.82c0 2.56 0 2.56 2.71 2.56s2.68 0 2.68-2.61V15l-5.39 4.22z"/>
10
+ <path class="cls-1" d="M20.35 0h13.29C36.42 0 37 0 37 2.54S36.42 5 33.64 5h-7.9v9l-5.39-4.2z"/>
11
+ <path class="cls-2" d="M25.74 27.82c0 2.56 0 2.56-2.71 2.56s-2.68 0-2.68-2.61V15l5.39 4.22z"/>
12
+ </g>
13
+ </g>
14
+ </svg>
@@ -0,0 +1,125 @@
1
+ ---
2
+ ---
3
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
4
+ <html>
5
+ {% include head.html %}
6
+ <body>
7
+ <div id="wrapper">
8
+ {% include top-menu.html %}
9
+ <div id="main-content">
10
+ <p class="intro">
11
+ The <strong>administration framework</strong> for business critical <strong>Ruby on Rails</strong> applications.
12
+ </p>
13
+ <p>
14
+ Active Admin is a Ruby on Rails plugin for generating administration style interfaces. It abstracts common business application patterns to make it simple for developers to implement beautiful and elegant interfaces with very little effort.
15
+ </p>
16
+ <h2>
17
+ A beautiful interface designed for real people.
18
+ </h2>
19
+ <div id="features">
20
+ <div id="features-left">
21
+ <h3 class="first">
22
+ Global Navigation
23
+ </h3>
24
+ <p>
25
+ Customizable global navigation allows you to create usable admin interfaces for your business.
26
+ </p>
27
+ <h3>
28
+ Scopes
29
+ </h3>
30
+ <p>
31
+ Use scopes to create sections of mutually exclusive resources for quick navigation and reporting.
32
+ </p>
33
+ <h3>
34
+ Index Styles
35
+ </h3>
36
+ <p>
37
+ Index screens are available in many styles. The default, shown here, is a table view, but Active Admin also supports Grids, Blocks and a Blog view.
38
+ </p>
39
+ <h3>
40
+ <span class="caps">API</span> &amp; Downloads
41
+ </h3>
42
+ <p>
43
+ Each resource that is registered wtih Active Admin becomes available as <span class="caps">JSON</span>, <span class="caps">XML</span> and <span class="caps">CSV</span> download. Customize the output to meet your requirements.
44
+ </p>
45
+ </div>
46
+ <div id="features-right">
47
+ <h3 class="first">
48
+ User Authentication
49
+ </h3>
50
+ <p>
51
+ Use the bundled Devise configuration or implement your own authorization using the provided hooks.
52
+ </p>
53
+ <h3>
54
+ Action Items
55
+ </h3>
56
+ <p>
57
+ Add buttons, links or other content in the “Action Items” section on each screen.
58
+ </p>
59
+ <h3>
60
+ Filters
61
+ </h3>
62
+ <p>
63
+ Allow users to filter resources by searching strings, text fields, dates, and numeric values.
64
+ </p>
65
+ <h3>
66
+ Sidebar Sections
67
+ </h3>
68
+ <p>
69
+ Customize the sidebar sections with a simple <span class="caps">DSL</span> built in to Active Admin.
70
+ </p>
71
+ </div>
72
+ </div>
73
+ <p>
74
+ Active Admin’s interface was designed from the ground up for non-technical users. It makes it easy for developers to build highly usable interfaces that customers will actually enjoy using.
75
+ </p>
76
+ <h2>
77
+ An elegant <span class="caps">DSL</span> built for developer productivity.
78
+ </h2>
79
+ <p>
80
+ Get started with one line of code or customize the entire interface with the provided <span class="caps">DSL</span>.
81
+ </p>
82
+ <div id="dsl">
83
+ <div class="highlight">
84
+ <pre>
85
+ <code class="ruby"><span class="c1"># app/admin/products.rb</span>
86
+ <span class="no">ActiveAdmin</span><span class="o">.</span><span class="n">register</span> <span class="no">Product</span> <span class="k">do</span>
87
+
88
+ <span class="c1"># Create sections on the index screen</span>
89
+ <span class="n">scope</span> <span class="ss">:all</span><span class="p">,</span> <span class="ss">default:</span> <span class="kp">true</span>
90
+ <span class="n">scope</span> <span class="ss">:available</span>
91
+ <span class="n">scope</span> <span class="ss">:drafts</span>
92
+
93
+ <span class="c1"># Filterable attributes on the index screen</span>
94
+ <span class="n">filter</span> <span class="ss">:title</span>
95
+ <span class="n">filter</span> <span class="ss">:author</span><span class="p">,</span> <span class="ss">as:</span> <span class="ss">:select</span><span class="p">,</span> <span class="ss">collection:</span> <span class="nb">-></span><span class="p">{</span> <span class="no">Product</span><span class="o">.</span><span class="n">authors</span> <span class="p">}</span>
96
+ <span class="n">filter</span> <span class="ss">:price</span>
97
+ <span class="n">filter</span> <span class="ss">:created_at</span>
98
+
99
+ <span class="c1"># Customize columns displayed on the index screen in the table</span>
100
+ <span class="n">index</span> <span class="k">do</span>
101
+ <span class="n">column</span> <span class="ss">:title</span>
102
+ <span class="n">column</span> <span class="s2">"Price"</span><span class="p">,</span> <span class="ss">sortable:</span> <span class="ss">:price</span> <span class="k">do</span> <span class="o">|</span><span class="n">product</span><span class="o">|</span>
103
+ <span class="n">number_to_currency</span> <span class="n">product</span><span class="o">.</span><span class="n">price</span>
104
+ <span class="k">end</span>
105
+ <span class="n">actions</span>
106
+ <span class="k">end</span>
107
+
108
+ <span class="k">end</span>
109
+ </code>
110
+ </pre>
111
+ </div>
112
+ </div>
113
+ <h2 class="getting-started-heading">
114
+ 3 Ways to Get Started:
115
+ </h2>
116
+ <p class="getting-started">
117
+ <a href="http://demo.activeadmin.info/admin">Check Out the Live Demo</a> <a href="{{ site.baseurl }}/documentation.html">Read The Documentation</a> <a href="http://github.com/activeadmin/activeadmin">Visit the Git Repository</a>
118
+ </p>
119
+ </div>{% include footer.html %}
120
+ </div>
121
+ <p>
122
+ {% include google-analytics.html %}
123
+ </p>
124
+ </body>
125
+ </html>
@@ -0,0 +1,1176 @@
1
+ html, body, div, span, applet, object, iframe,
2
+ h1, h2, h3, h4, h5, h6, p, blockquote, pre,
3
+ a, abbr, acronym, address, big, cite, code,
4
+ del, dfn, em, img, ins, kbd, q, s, samp,
5
+ small, strike, strong, sub, sup, tt, var,
6
+ b, u, i, center,
7
+ dl, dt, dd, ol, ul, li,
8
+ fieldset, form, label, legend,
9
+ table, caption, tbody, tfoot, thead, tr, th, td,
10
+ article, aside, canvas, details, embed,
11
+ figure, figcaption, footer, header, hgroup,
12
+ menu, nav, output, ruby, section, summary,
13
+ time, mark, audio, video {
14
+ margin: 0;
15
+ padding: 0;
16
+ border: 0;
17
+ font-size: 100%;
18
+ font: inherit;
19
+ vertical-align: baseline;
20
+ }
21
+
22
+ body {
23
+ line-height: 1;
24
+ }
25
+
26
+ ol, ul {
27
+ list-style: none;
28
+ }
29
+
30
+ table {
31
+ border-collapse: collapse;
32
+ border-spacing: 0;
33
+ }
34
+
35
+ caption, th, td {
36
+ text-align: left;
37
+ font-weight: normal;
38
+ vertical-align: middle;
39
+ }
40
+
41
+ q, blockquote {
42
+ quotes: none;
43
+ }
44
+
45
+ q:before, q:after, blockquote:before, blockquote:after {
46
+ content: "";
47
+ content: none;
48
+ }
49
+
50
+ a img {
51
+ border: none;
52
+ }
53
+
54
+ article, aside, details, figcaption, figure,
55
+ footer, header, hgroup, menu, nav, section {
56
+ display: block;
57
+ }
58
+
59
+ #dsl {
60
+ /* Comment */
61
+ /* Error */
62
+ /* Keyword */
63
+ /* Literal */
64
+ /* Name */
65
+ /* Operator */
66
+ /* Punctuation */
67
+ /* Comment.Multiline */
68
+ /* Comment.Preproc */
69
+ /* Comment.Single */
70
+ /* Comment.Special */
71
+ /* Generic.Emph */
72
+ /* Generic.Strong */
73
+ /* Keyword.Constant */
74
+ /* Keyword.Declaration */
75
+ /* Keyword.Namespace */
76
+ /* Keyword.Pseudo */
77
+ /* Keyword.Reserved */
78
+ /* Keyword.Type */
79
+ /* Literal.Date */
80
+ /* Literal.Number */
81
+ /* Literal.String */
82
+ /* Name.Attribute */
83
+ /* Name.Builtin */
84
+ /* Name.Class */
85
+ /* Name.Constant */
86
+ /* Name.Decorator */
87
+ /* Name.Entity */
88
+ /* Name.Exception */
89
+ /* Name.Function */
90
+ /* Name.Label */
91
+ /* Name.Namespace */
92
+ /* Name.Other */
93
+ /* Name.Property */
94
+ /* Name.Tag */
95
+ /* Name.Variable */
96
+ /* Operator.Word */
97
+ /* Text.Whitespace */
98
+ /* Literal.Number.Float */
99
+ /* Literal.Number.Hex */
100
+ /* Literal.Number.Integer */
101
+ /* Literal.Number.Oct */
102
+ /* Literal.String.Backtick */
103
+ /* Literal.String.Char */
104
+ /* Literal.String.Doc */
105
+ /* Literal.String.Double */
106
+ /* Literal.String.Escape */
107
+ /* Literal.String.Heredoc */
108
+ /* Literal.String.Interpol */
109
+ /* Literal.String.Other */
110
+ /* Literal.String.Regex */
111
+ /* Literal.String.Single */
112
+ /* Literal.String.Symbol */
113
+ /* Name.Builtin.Pseudo */
114
+ /* Name.Variable.Class */
115
+ /* Name.Variable.Global */
116
+ /* Name.Variable.Instance */
117
+ /* Literal.Number.Integer.Long */
118
+ }
119
+
120
+ #dsl .highlight .hll {
121
+ background-color: #49483e;
122
+ }
123
+
124
+ #dsl .highlight {
125
+ background: #272822;
126
+ color: #f8f8f2;
127
+ }
128
+
129
+ #dsl .highlight .c {
130
+ color: #75715e;
131
+ }
132
+
133
+ #dsl .highlight .err {
134
+ color: #960050;
135
+ background-color: #1e0010;
136
+ }
137
+
138
+ #dsl .highlight .k {
139
+ color: #66d9ef;
140
+ }
141
+
142
+ #dsl .highlight .l {
143
+ color: #ae81ff;
144
+ }
145
+
146
+ #dsl .highlight .n {
147
+ color: #f8f8f2;
148
+ }
149
+
150
+ #dsl .highlight .o {
151
+ color: #f92672;
152
+ }
153
+
154
+ #dsl .highlight .p {
155
+ color: #f8f8f2;
156
+ }
157
+
158
+ #dsl .highlight .cm {
159
+ color: #75715e;
160
+ }
161
+
162
+ #dsl .highlight .cp {
163
+ color: #75715e;
164
+ }
165
+
166
+ #dsl .highlight .c1 {
167
+ color: #75715e;
168
+ }
169
+
170
+ #dsl .highlight .cs {
171
+ color: #75715e;
172
+ }
173
+
174
+ #dsl .highlight .ge {
175
+ font-style: italic;
176
+ }
177
+
178
+ #dsl .highlight .gs {
179
+ font-weight: bold;
180
+ }
181
+
182
+ #dsl .highlight .kc {
183
+ color: #66d9ef;
184
+ }
185
+
186
+ #dsl .highlight .kd {
187
+ color: #66d9ef;
188
+ }
189
+
190
+ #dsl .highlight .kn {
191
+ color: #f92672;
192
+ }
193
+
194
+ #dsl .highlight .kp {
195
+ color: #66d9ef;
196
+ }
197
+
198
+ #dsl .highlight .kr {
199
+ color: #66d9ef;
200
+ }
201
+
202
+ #dsl .highlight .kt {
203
+ color: #66d9ef;
204
+ }
205
+
206
+ #dsl .highlight .ld {
207
+ color: #e6db74;
208
+ }
209
+
210
+ #dsl .highlight .m {
211
+ color: #ae81ff;
212
+ }
213
+
214
+ #dsl .highlight .s {
215
+ color: #e6db74;
216
+ }
217
+
218
+ #dsl .highlight .na {
219
+ color: #a6e22e;
220
+ }
221
+
222
+ #dsl .highlight .nb {
223
+ color: #f8f8f2;
224
+ }
225
+
226
+ #dsl .highlight .nc {
227
+ color: #a6e22e;
228
+ }
229
+
230
+ #dsl .highlight .no {
231
+ color: #66d9ef;
232
+ }
233
+
234
+ #dsl .highlight .nd {
235
+ color: #a6e22e;
236
+ }
237
+
238
+ #dsl .highlight .ni {
239
+ color: #f8f8f2;
240
+ }
241
+
242
+ #dsl .highlight .ne {
243
+ color: #a6e22e;
244
+ }
245
+
246
+ #dsl .highlight .nf {
247
+ color: #a6e22e;
248
+ }
249
+
250
+ #dsl .highlight .nl {
251
+ color: #f8f8f2;
252
+ }
253
+
254
+ #dsl .highlight .nn {
255
+ color: #f8f8f2;
256
+ }
257
+
258
+ #dsl .highlight .nx {
259
+ color: #a6e22e;
260
+ }
261
+
262
+ #dsl .highlight .py {
263
+ color: #f8f8f2;
264
+ }
265
+
266
+ #dsl .highlight .nt {
267
+ color: #f92672;
268
+ }
269
+
270
+ #dsl .highlight .nv {
271
+ color: #f8f8f2;
272
+ }
273
+
274
+ #dsl .highlight .ow {
275
+ color: #f92672;
276
+ }
277
+
278
+ #dsl .highlight .w {
279
+ color: #f8f8f2;
280
+ }
281
+
282
+ #dsl .highlight .mf {
283
+ color: #ae81ff;
284
+ }
285
+
286
+ #dsl .highlight .mh {
287
+ color: #ae81ff;
288
+ }
289
+
290
+ #dsl .highlight .mi {
291
+ color: #ae81ff;
292
+ }
293
+
294
+ #dsl .highlight .mo {
295
+ color: #ae81ff;
296
+ }
297
+
298
+ #dsl .highlight .sb {
299
+ color: #e6db74;
300
+ }
301
+
302
+ #dsl .highlight .sc {
303
+ color: #e6db74;
304
+ }
305
+
306
+ #dsl .highlight .sd {
307
+ color: #e6db74;
308
+ }
309
+
310
+ #dsl .highlight .s2 {
311
+ color: #e6db74;
312
+ }
313
+
314
+ #dsl .highlight .se {
315
+ color: #ae81ff;
316
+ }
317
+
318
+ #dsl .highlight .sh {
319
+ color: #e6db74;
320
+ }
321
+
322
+ #dsl .highlight .si {
323
+ color: #e6db74;
324
+ }
325
+
326
+ #dsl .highlight .sx {
327
+ color: #e6db74;
328
+ }
329
+
330
+ #dsl .highlight .sr {
331
+ color: #e6db74;
332
+ }
333
+
334
+ #dsl .highlight .s1 {
335
+ color: #e6db74;
336
+ }
337
+
338
+ #dsl .highlight .ss {
339
+ color: #AE81FF;
340
+ }
341
+
342
+ #dsl .highlight .bp {
343
+ color: #f8f8f2;
344
+ }
345
+
346
+ #dsl .highlight .vc {
347
+ color: #f8f8f2;
348
+ }
349
+
350
+ #dsl .highlight .vg {
351
+ color: #f8f8f2;
352
+ }
353
+
354
+ #dsl .highlight .vi {
355
+ color: #f8f8f2;
356
+ }
357
+
358
+ #dsl .highlight .il {
359
+ color: #ae81ff;
360
+ }
361
+
362
+ body {
363
+ line-height: 1.5;
364
+ font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
365
+ color: #333333;
366
+ font-size: 75%;
367
+ }
368
+
369
+ h1, h2, h3, h4, h5, h6 {
370
+ font-weight: normal;
371
+ color: #222222;
372
+ }
373
+
374
+ h1 img, h2 img, h3 img, h4 img, h5 img, h6 img {
375
+ margin: 0;
376
+ }
377
+
378
+ h1 {
379
+ font-size: 3em;
380
+ line-height: 1;
381
+ margin-bottom: 0.50em;
382
+ }
383
+
384
+ h2 {
385
+ font-size: 2em;
386
+ margin-bottom: 0.75em;
387
+ }
388
+
389
+ h3 {
390
+ font-size: 1.5em;
391
+ line-height: 1;
392
+ margin-bottom: 1.00em;
393
+ }
394
+
395
+ h4 {
396
+ font-size: 1.2em;
397
+ line-height: 1.25;
398
+ margin-bottom: 1.25em;
399
+ }
400
+
401
+ h5 {
402
+ font-size: 1em;
403
+ font-weight: bold;
404
+ margin-bottom: 1.50em;
405
+ }
406
+
407
+ h6 {
408
+ font-size: 1em;
409
+ font-weight: bold;
410
+ }
411
+
412
+ p {
413
+ margin: 0 0 1.5em;
414
+ }
415
+
416
+ p .left {
417
+ display: inline;
418
+ float: left;
419
+ margin: 1.5em 1.5em 1.5em 0;
420
+ padding: 0;
421
+ }
422
+
423
+ p .right {
424
+ display: inline;
425
+ float: right;
426
+ margin: 1.5em 0 1.5em 1.5em;
427
+ padding: 0;
428
+ }
429
+
430
+ a {
431
+ text-decoration: underline;
432
+ color: #0066cc;
433
+ }
434
+
435
+ a:visited {
436
+ color: #004c99;
437
+ }
438
+
439
+ a:focus {
440
+ color: #0099ff;
441
+ }
442
+
443
+ a:hover {
444
+ color: #0099ff;
445
+ }
446
+
447
+ a:active {
448
+ color: #bf00ff;
449
+ }
450
+
451
+ blockquote {
452
+ margin: 1.5em;
453
+ color: #666666;
454
+ font-style: italic;
455
+ }
456
+
457
+ strong, dfn {
458
+ font-weight: bold;
459
+ }
460
+
461
+ em, dfn {
462
+ font-style: italic;
463
+ }
464
+
465
+ sup, sub {
466
+ line-height: 0;
467
+ }
468
+
469
+ abbr, acronym {
470
+ border-bottom: 1px dotted #666666;
471
+ }
472
+
473
+ address {
474
+ margin: 0 0 1.5em;
475
+ font-style: italic;
476
+ }
477
+
478
+ del {
479
+ color: #666666;
480
+ }
481
+
482
+ pre {
483
+ margin: 1.5em 0;
484
+ white-space: pre;
485
+ }
486
+
487
+ pre, code, tt {
488
+ font: 1em "andale mono", "lucida console", monospace;
489
+ line-height: 1.5;
490
+ }
491
+
492
+ li ul, li ol {
493
+ margin: 0;
494
+ }
495
+
496
+ ul, ol {
497
+ margin: 0 1.5em 1.5em 0;
498
+ padding-left: 1.5em;
499
+ }
500
+
501
+ ul {
502
+ list-style-type: disc;
503
+ }
504
+
505
+ ol {
506
+ list-style-type: decimal;
507
+ }
508
+
509
+ dl {
510
+ margin: 0 0 1.5em 0;
511
+ }
512
+
513
+ dl dt {
514
+ font-weight: bold;
515
+ }
516
+
517
+ dd {
518
+ margin-left: 1.5em;
519
+ }
520
+
521
+ table {
522
+ margin-bottom: 1.4em;
523
+ width: 100%;
524
+ }
525
+
526
+ th {
527
+ font-weight: bold;
528
+ }
529
+
530
+ thead th {
531
+ background: #c3d9ff;
532
+ }
533
+
534
+ th, td, caption {
535
+ padding: 4px 10px 4px 5px;
536
+ }
537
+
538
+ table.striped tr:nth-child(even) td,
539
+ table tr.even td {
540
+ background: #e5ecf9;
541
+ }
542
+
543
+ tfoot {
544
+ font-style: italic;
545
+ }
546
+
547
+ caption {
548
+ background: #eeeeee;
549
+ }
550
+
551
+ .quiet {
552
+ color: #666666;
553
+ }
554
+
555
+ .loud {
556
+ color: #111111;
557
+ }
558
+
559
+ body {
560
+ background: #f6f4f1;
561
+ color: #676767;
562
+ width: 768px;
563
+ padding: 0 20px;
564
+ font-size: 95%;
565
+ margin: 25px auto;
566
+ font-family: 'Georgia';
567
+ }
568
+
569
+ body #wrapper {
570
+ position: relative;
571
+ }
572
+
573
+ body a, body a:hover, body a:link, body a:visited {
574
+ color: #407985;
575
+ }
576
+
577
+ body h1, body h2, body h3, body h4, body h5, body h6 {
578
+ color: #595959;
579
+ font-family: 'Yanone Kaffeesatz', 'Helvetica Neue', Arial, Helvetica, sans-serif;
580
+ }
581
+
582
+ body h1 a {
583
+ background: url("../images/activeadmin.png") 0 0 no-repeat;
584
+ display: block;
585
+ width: 257px;
586
+ height: 55px;
587
+ }
588
+
589
+ body h1 a span {
590
+ display: none;
591
+ }
592
+
593
+ body #header {
594
+ margin: 40px 0;
595
+ }
596
+
597
+ body #header h1 {
598
+ margin-bottom: 0;
599
+ }
600
+
601
+ body #tidelift {
602
+ display: flex;
603
+ justify-content: flex-start;
604
+ }
605
+
606
+ body #tidelift a {
607
+ border: 1px solid #666666;
608
+ margin-left: auto;
609
+ padding: 10px;
610
+ text-decoration: none;
611
+ }
612
+
613
+ body #tidelift a .cta {
614
+ background: url("../images/tidelift.svg") no-repeat;
615
+ padding-left: 30px;
616
+ }
617
+
618
+ body .clear {
619
+ clear: both;
620
+ }
621
+
622
+ body .intro {
623
+ color: #595959;
624
+ font-family: 'Yanone Kaffeesatz', 'Helvetica Neue', Arial, Helvetica, sans-serif;
625
+ font-size: 3.2em;
626
+ font-weight: 300;
627
+ line-height: 1em;
628
+ margin-bottom: 0.3em;
629
+ padding-top: 35px;
630
+ background: url("../images/divider.png") 0 0 repeat-x;
631
+ }
632
+
633
+ body .intro strong {
634
+ font-weight: 400;
635
+ }
636
+
637
+ body h2 {
638
+ margin: 50px 0 10px 0;
639
+ padding-top: 35px;
640
+ background: url("../images/divider.png") 0 0 repeat-x;
641
+ font-size: 2.5em;
642
+ font-weight: 200;
643
+ line-height: 105%;
644
+ }
645
+
646
+ body h3 {
647
+ margin-top: 30px;
648
+ margin-bottom: 10px;
649
+ font-size: 1.7em;
650
+ font-weight: 300;
651
+ }
652
+
653
+ body #nav, body #tidelift .cta {
654
+ font-family: 'Yanone Kaffeesatz', 'Helvetica Neue', Arial, Helvetica, sans-serif;
655
+ font-weight: 400;
656
+ font-size: 1.2em;
657
+ text-transform: uppercase;
658
+ }
659
+
660
+ body #nav {
661
+ position: absolute;
662
+ right: 0;
663
+ top: 20px;
664
+ text-align: right;
665
+ }
666
+
667
+ body #nav a {
668
+ text-decoration: none;
669
+ color: #8b9091;
670
+ margin-left: 20px;
671
+ }
672
+
673
+ body #features {
674
+ padding-top: 0;
675
+ clear: both;
676
+ background: url("../images/features.png") 0 0 no-repeat;
677
+ margin: 0 -35px;
678
+ overflow: visible;
679
+ min-height: 569px;
680
+ font-size: 1.0em;
681
+ line-height: 1.2em;
682
+ font-weight: 300;
683
+ font-family: 'Yanone Kaffeesatz', 'Helvetica Neue', Arial, Helvetica, sans-serif;
684
+ }
685
+
686
+ body #features #features-left {
687
+ float: left;
688
+ width: 150px;
689
+ margin-left: -150px;
690
+ }
691
+
692
+ body #features #features-right {
693
+ float: right;
694
+ width: 150px;
695
+ margin-right: -150px;
696
+ }
697
+
698
+ body #features h3 {
699
+ font-size: 1.2em;
700
+ padding-bottom: 0;
701
+ margin-bottom: 5px;
702
+ }
703
+
704
+ body #features h3.first {
705
+ margin-top: 10px;
706
+ }
707
+
708
+ body.with-sidebar {
709
+ width: 976px;
710
+ }
711
+
712
+ body .toc {
713
+ font-family: Helvetica, Arial, sans-serif;
714
+ padding-top: 35px;
715
+ width: 270px;
716
+ float: right;
717
+ font-size: 0.9em;
718
+ background: url("../images/divider.png") top left repeat-x;
719
+ }
720
+
721
+ body .toc ol li {
722
+ list-style: none;
723
+ }
724
+
725
+ body .toc a, body .toc a:link, body .toc a:hover, body .toc a:visited {
726
+ text-decoration: none;
727
+ color: #595959;
728
+ }
729
+
730
+ body .toc ol.level-1 > li {
731
+ font-size: 1.0em;
732
+ font-weight: bold;
733
+ margin-top: 20px;
734
+ }
735
+
736
+ body .toc ol.level-1 > ol {
737
+ padding-left: 0;
738
+ font-size: 0.95em;
739
+ margin: 0;
740
+ }
741
+
742
+ body .toc ol.level-2 > ol {
743
+ display: none;
744
+ }
745
+
746
+ body .toc-content {
747
+ width: 676px;
748
+ }
749
+
750
+ body #dsl {
751
+ margin-top: 20px;
752
+ }
753
+
754
+ body #dsl .highlight {
755
+ font-size: 0.82em;
756
+ background: #292929 url("../images/code-header.png") 0 0 no-repeat;
757
+ padding: 40px 15px 20px 15px !important;
758
+ -moz-box-shadow: 0 8px 20px #444444;
759
+ -webkit-box-shadow: 0 8px 20px #444444;
760
+ -o-box-shadow: 0 8px 20px #444444;
761
+ box-shadow: 0 8px 20px #444444;
762
+ }
763
+
764
+ body .getting-started {
765
+ font-size: 2em;
766
+ text-align: center;
767
+ }
768
+
769
+ body .getting-started a {
770
+ margin-right: 15px;
771
+ display: block;
772
+ }
773
+
774
+ body .getting-started-heading {
775
+ text-align: center;
776
+ }
777
+
778
+ body .left {
779
+ float: left;
780
+ }
781
+
782
+ body .right {
783
+ float: right;
784
+ }
785
+
786
+ body .highlight {
787
+ background-color: #333;
788
+ font-family: "Droid Sans Mono", Monaco, monospace;
789
+ padding: 10px 5px;
790
+ font-size: 0.9em;
791
+ -moz-border-radius: 2px;
792
+ -webkit-border-radius: 2px;
793
+ -o-border-radius: 2px;
794
+ -ms-border-radius: 2px;
795
+ -khtml-border-radius: 2px;
796
+ border-radius: 2px;
797
+ margin-bottom: 1.5em;
798
+ }
799
+
800
+ body .highlight > pre, body .highlight code, body .highlight span {
801
+ line-height: 1.3em;
802
+ margin: 0;
803
+ padding: 0;
804
+ }
805
+
806
+ body #footer {
807
+ margin-top: 50px;
808
+ margin-bottom: 20px;
809
+ background: url("../images/divider.png") 0 0 repeat-x;
810
+ clear: both;
811
+ padding-top: 20px;
812
+ font-size: 0.9em;
813
+ }
814
+
815
+ body .post .post-date, body .post .post-meta {
816
+ font-size: 0.7em;
817
+ }
818
+
819
+ body .post .post-date {
820
+ display: inline-block;
821
+ width: 100px;
822
+ }
823
+
824
+ body .post .post-meta {
825
+ font-size: 0.6em;
826
+ padding-left: 40px;
827
+ }
828
+
829
+ span.breadcrumb {
830
+ display: block;
831
+ font-size: 45%;
832
+ font-weight: 200;
833
+ margin: 0;
834
+ padding: 0;
835
+ }
836
+
837
+ h2.in-docs {
838
+ font-weight: 400;
839
+ }
840
+
841
+ .docs-content {
842
+ /* Comment */
843
+ /* Error */
844
+ /* Keyword */
845
+ /* Comment.Multiline */
846
+ /* Comment.Preproc */
847
+ /* Comment.Single */
848
+ /* Comment.Special */
849
+ /* Generic.Deleted */
850
+ /* Generic.Emph */
851
+ /* Generic.Error */
852
+ /* Generic.Heading */
853
+ /* Generic.Inserted */
854
+ /* Generic.Output */
855
+ /* Generic.Prompt */
856
+ /* Generic.Strong */
857
+ /* Generic.Subheading */
858
+ /* Generic.Traceback */
859
+ /* Keyword.Constant */
860
+ /* Keyword.Declaration */
861
+ /* Keyword.Namespace */
862
+ /* Keyword.Pseudo */
863
+ /* Keyword.Reserved */
864
+ /* Keyword.Type */
865
+ /* Literal.Number */
866
+ /* Name */
867
+ /* Name */
868
+ /* Literal.String */
869
+ /* Name.Attribute */
870
+ /* Name.Builtin */
871
+ /* Name.Class */
872
+ /* Name.Constant */
873
+ /* Name.Decorator */
874
+ /* Name.Entity */
875
+ /* Name.Function */
876
+ /* Name.Namespace */
877
+ /* Name.Tag */
878
+ /* Name.Variable */
879
+ /* Operator.Word */
880
+ /* Text.Whitespace */
881
+ /* Literal.Number.Float */
882
+ /* Literal.Number.Hex */
883
+ /* Literal.Number.Integer */
884
+ /* Literal.Number.Oct */
885
+ /* Literal.String.Backtick */
886
+ /* Literal.String.Char */
887
+ /* Literal.String.Doc */
888
+ /* Literal.String.Double */
889
+ /* Literal.String.Escape */
890
+ /* Literal.String.Heredoc */
891
+ /* Literal.String.Interpol */
892
+ /* Literal.String.Other */
893
+ /* Literal.String.Regex */
894
+ /* Literal.String.Single */
895
+ /* Literal.String.Symbol */
896
+ /* Name.Builtin.Pseudo */
897
+ /* Name.Variable.Class */
898
+ /* Name.Variable.Global */
899
+ /* Name.Variable.Instance */
900
+ /* Literal.Number.Integer.Long */
901
+ }
902
+
903
+ .docs-content h3 {
904
+ margin-top: 50px;
905
+ margin-bottom: 10px;
906
+ font-size: 2em;
907
+ font-weight: 400;
908
+ }
909
+
910
+ .docs-content h4 {
911
+ font-size: 1.5em;
912
+ font-weight: 400;
913
+ margin-bottom: 0;
914
+ }
915
+
916
+ .docs-content p, .docs-content li {
917
+ font-family: Helvetica, Arial, sans-serif;
918
+ font-size: 0.9em;
919
+ }
920
+
921
+ .docs-content .highlight {
922
+ font-size: 0.85em;
923
+ background-color: #ece8e1;
924
+ color: #000000;
925
+ }
926
+
927
+ .docs-content .highlight .hll {
928
+ background-color: #ffffcc;
929
+ }
930
+
931
+ .docs-content .highlight .c {
932
+ color: #aaaaaa;
933
+ font-style: italic;
934
+ }
935
+
936
+ .docs-content .highlight .err {
937
+ color: #F00000;
938
+ background-color: #F0A0A0;
939
+ }
940
+
941
+ .docs-content .highlight .k {
942
+ color: #0000aa;
943
+ }
944
+
945
+ .docs-content .highlight .cm {
946
+ color: #aaaaaa;
947
+ font-style: italic;
948
+ }
949
+
950
+ .docs-content .highlight .cp {
951
+ color: #4c8317;
952
+ }
953
+
954
+ .docs-content .highlight .c1 {
955
+ color: #aaaaaa;
956
+ font-style: italic;
957
+ }
958
+
959
+ .docs-content .highlight .cs {
960
+ color: #0000aa;
961
+ font-style: italic;
962
+ }
963
+
964
+ .docs-content .highlight .gd {
965
+ color: #aa0000;
966
+ }
967
+
968
+ .docs-content .highlight .ge {
969
+ font-style: italic;
970
+ }
971
+
972
+ .docs-content .highlight .gr {
973
+ color: #aa0000;
974
+ }
975
+
976
+ .docs-content .highlight .gh {
977
+ color: #000080;
978
+ font-weight: bold;
979
+ }
980
+
981
+ .docs-content .highlight .gi {
982
+ color: #00aa00;
983
+ }
984
+
985
+ .docs-content .highlight .go {
986
+ color: #888888;
987
+ }
988
+
989
+ .docs-content .highlight .gp {
990
+ color: #555555;
991
+ }
992
+
993
+ .docs-content .highlight .gs {
994
+ font-weight: bold;
995
+ }
996
+
997
+ .docs-content .highlight .gu {
998
+ color: #800080;
999
+ font-weight: bold;
1000
+ }
1001
+
1002
+ .docs-content .highlight .gt {
1003
+ color: #aa0000;
1004
+ }
1005
+
1006
+ .docs-content .highlight .kc {
1007
+ color: #0000aa;
1008
+ }
1009
+
1010
+ .docs-content .highlight .kd {
1011
+ color: #0000aa;
1012
+ }
1013
+
1014
+ .docs-content .highlight .kn {
1015
+ color: #0000aa;
1016
+ }
1017
+
1018
+ .docs-content .highlight .kp {
1019
+ color: #0000aa;
1020
+ }
1021
+
1022
+ .docs-content .highlight .kr {
1023
+ color: #0000aa;
1024
+ }
1025
+
1026
+ .docs-content .highlight .kt {
1027
+ color: #00aaaa;
1028
+ }
1029
+
1030
+ .docs-content .highlight .m {
1031
+ color: #009999;
1032
+ }
1033
+
1034
+ .docs-content .highlight .n {
1035
+ color: #000000;
1036
+ }
1037
+
1038
+ .docs-content .highlight .p {
1039
+ color: #000000;
1040
+ }
1041
+
1042
+ .docs-content .highlight .s {
1043
+ color: #aa5500;
1044
+ }
1045
+
1046
+ .docs-content .highlight .na {
1047
+ color: #1e90ff;
1048
+ }
1049
+
1050
+ .docs-content .highlight .nb {
1051
+ color: #00aaaa;
1052
+ }
1053
+
1054
+ .docs-content .highlight .nc {
1055
+ color: #00aa00;
1056
+ text-decoration: underline;
1057
+ }
1058
+
1059
+ .docs-content .highlight .no {
1060
+ color: #aa0000;
1061
+ }
1062
+
1063
+ .docs-content .highlight .nd {
1064
+ color: #888888;
1065
+ }
1066
+
1067
+ .docs-content .highlight .ni {
1068
+ color: #800000;
1069
+ font-weight: bold;
1070
+ }
1071
+
1072
+ .docs-content .highlight .nf {
1073
+ color: #00aa00;
1074
+ }
1075
+
1076
+ .docs-content .highlight .nn {
1077
+ color: #00aaaa;
1078
+ text-decoration: underline;
1079
+ }
1080
+
1081
+ .docs-content .highlight .nt {
1082
+ color: #1e90ff;
1083
+ font-weight: bold;
1084
+ }
1085
+
1086
+ .docs-content .highlight .nv {
1087
+ color: #aa0000;
1088
+ }
1089
+
1090
+ .docs-content .highlight .ow {
1091
+ color: #0000aa;
1092
+ }
1093
+
1094
+ .docs-content .highlight .w {
1095
+ color: #bbbbbb;
1096
+ }
1097
+
1098
+ .docs-content .highlight .mf {
1099
+ color: #009999;
1100
+ }
1101
+
1102
+ .docs-content .highlight .mh {
1103
+ color: #009999;
1104
+ }
1105
+
1106
+ .docs-content .highlight .mi {
1107
+ color: #009999;
1108
+ }
1109
+
1110
+ .docs-content .highlight .mo {
1111
+ color: #009999;
1112
+ }
1113
+
1114
+ .docs-content .highlight .sb {
1115
+ color: #aa5500;
1116
+ }
1117
+
1118
+ .docs-content .highlight .sc {
1119
+ color: #aa5500;
1120
+ }
1121
+
1122
+ .docs-content .highlight .sd {
1123
+ color: #aa5500;
1124
+ }
1125
+
1126
+ .docs-content .highlight .s2 {
1127
+ color: #aa5500;
1128
+ }
1129
+
1130
+ .docs-content .highlight .se {
1131
+ color: #aa5500;
1132
+ }
1133
+
1134
+ .docs-content .highlight .sh {
1135
+ color: #aa5500;
1136
+ }
1137
+
1138
+ .docs-content .highlight .si {
1139
+ color: #aa5500;
1140
+ }
1141
+
1142
+ .docs-content .highlight .sx {
1143
+ color: #aa5500;
1144
+ }
1145
+
1146
+ .docs-content .highlight .sr {
1147
+ color: #009999;
1148
+ }
1149
+
1150
+ .docs-content .highlight .s1 {
1151
+ color: #aa5500;
1152
+ }
1153
+
1154
+ .docs-content .highlight .ss {
1155
+ color: #0000aa;
1156
+ }
1157
+
1158
+ .docs-content .highlight .bp {
1159
+ color: #00aaaa;
1160
+ }
1161
+
1162
+ .docs-content .highlight .vc {
1163
+ color: #aa0000;
1164
+ }
1165
+
1166
+ .docs-content .highlight .vg {
1167
+ color: #aa0000;
1168
+ }
1169
+
1170
+ .docs-content .highlight .vi {
1171
+ color: #aa0000;
1172
+ }
1173
+
1174
+ .docs-content .highlight .il {
1175
+ color: #009999;
1176
+ }