activeadmin 3.2.3 → 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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +2 -57
- data/CONTRIBUTING.md +25 -108
- data/README.md +19 -32
- data/app/assets/config/active_admin_manifest.js +2 -0
- data/app/controllers/active_admin/base_controller/menu.rb +39 -0
- data/{lib → app/controllers}/active_admin/base_controller.rb +46 -18
- data/{lib → app/controllers}/active_admin/page_controller.rb +0 -4
- data/{lib → app/controllers}/active_admin/resource_controller/action_builder.rb +1 -1
- data/{lib → app/controllers}/active_admin/resource_controller/data_access.rb +2 -2
- data/{lib → app/controllers}/active_admin/resource_controller/scoping.rb +1 -1
- data/{lib → app/controllers}/active_admin/resource_controller/streaming.rb +2 -2
- data/app/controllers/active_admin/resource_controller.rb +102 -0
- data/app/helpers/active_admin/auto_link_helper.rb +66 -0
- data/app/helpers/active_admin/breadcrumb_helper.rb +41 -0
- data/app/helpers/active_admin/display_helper.rb +117 -0
- data/app/helpers/active_admin/form_helper.rb +95 -0
- data/app/helpers/active_admin/index_helper.rb +40 -0
- data/app/helpers/active_admin/layout_helper.rb +63 -0
- data/app/javascript/active_admin/features/batch_actions.js +89 -0
- data/app/javascript/active_admin/features/dark_mode_toggle.js +37 -0
- data/app/javascript/active_admin/features/filters.js +34 -0
- data/app/javascript/active_admin/features/has_many.js +28 -0
- data/app/javascript/active_admin/features/main_menu.js +12 -0
- data/app/javascript/active_admin/features/per_page.js +9 -0
- data/app/javascript/active_admin/utils/dom.js +17 -0
- data/app/javascript/active_admin.js +10 -0
- data/app/views/active_admin/_flash_messages.html.erb +22 -0
- data/app/views/active_admin/_html_head.html.erb +13 -0
- data/app/views/active_admin/_main_navigation.html.erb +28 -0
- data/app/views/active_admin/_page_header.html.erb +27 -0
- data/app/views/active_admin/_sidebar.html.erb +5 -0
- data/app/views/active_admin/_site_footer.html.erb +7 -0
- data/app/views/active_admin/_site_header.html.erb +30 -0
- data/app/views/active_admin/devise/confirmations/new.html.erb +5 -3
- data/app/views/active_admin/devise/passwords/edit.html.erb +5 -3
- data/app/views/active_admin/devise/passwords/new.html.erb +5 -4
- data/app/views/active_admin/devise/registrations/new.html.erb +6 -4
- data/app/views/active_admin/devise/sessions/new.html.erb +6 -4
- data/app/views/active_admin/devise/shared/_links.erb +3 -1
- data/app/views/active_admin/devise/unlocks/new.html.erb +6 -4
- data/app/views/{kaminari/active_admin_countless → active_admin/kaminari}/_gap.html.erb +3 -1
- data/app/views/active_admin/kaminari/_next_page.html.erb +16 -0
- data/app/views/active_admin/kaminari/_page.html.erb +14 -0
- data/app/views/{kaminari/active_admin_countless → active_admin/kaminari}/_paginator.html.erb +1 -2
- data/app/views/active_admin/kaminari/_prev_page.html.erb +16 -0
- data/app/views/active_admin/page/index.html.arb +5 -1
- data/app/views/active_admin/resource/_active_filters.html.erb +32 -0
- data/app/views/active_admin/resource/_batch_actions_dropdown.html.erb +19 -0
- data/app/views/active_admin/resource/_form.html.arb +16 -0
- data/app/views/active_admin/resource/_form_default.html.arb +12 -0
- data/app/views/active_admin/resource/_index_as_table_default.html.arb +9 -0
- data/app/views/active_admin/resource/_index_blank_slate.html.erb +14 -0
- data/app/views/active_admin/resource/_index_empty_results.html.erb +5 -0
- data/app/views/active_admin/resource/_index_table_actions_default.html.erb +9 -0
- data/app/views/active_admin/resource/_show_default.html.arb +3 -0
- data/app/views/active_admin/resource/edit.html.arb +1 -1
- data/app/views/active_admin/resource/index.html.arb +94 -1
- data/app/views/active_admin/resource/new.html.arb +1 -1
- data/app/views/active_admin/resource/show.html.arb +12 -1
- data/app/views/active_admin/shared/_action_items.html.erb +3 -0
- data/app/views/active_admin/shared/_download_format_links.html.erb +7 -0
- data/app/views/active_admin/shared/_resource_comments.html.erb +51 -0
- data/app/views/active_admin/shared/_sidebar_section.html.arb +7 -0
- data/app/views/active_admin/shared/_sidebar_sections.html.erb +5 -0
- data/app/views/layouts/active_admin.html.erb +20 -0
- data/app/views/layouts/active_admin_logged_out.html.erb +8 -45
- data/config/locales/ar.yml +0 -16
- data/config/locales/az.yml +0 -16
- data/config/locales/bg.yml +0 -9
- data/config/locales/bs.yml +0 -7
- data/config/locales/ca.yml +0 -9
- data/config/locales/cs.yml +0 -9
- data/config/locales/da.yml +0 -16
- data/config/locales/de-CH.yml +0 -10
- data/config/locales/de.yml +0 -16
- data/config/locales/el.yml +0 -13
- data/config/locales/en-CA.yml +0 -16
- data/config/locales/en-GB.yml +0 -16
- data/config/locales/en.yml +18 -28
- data/config/locales/eo.yml +0 -17
- data/config/locales/es-MX.yml +0 -9
- data/config/locales/es.yml +0 -16
- data/config/locales/fa.yml +0 -9
- data/config/locales/fi.yml +0 -9
- data/config/locales/fr.yml +32 -26
- data/config/locales/he.yml +0 -16
- data/config/locales/hr.yml +0 -9
- data/config/locales/hu.yml +0 -6
- data/config/locales/id.yml +0 -16
- data/config/locales/it.yml +0 -16
- data/config/locales/ja.yml +0 -16
- data/config/locales/ko.yml +0 -9
- data/config/locales/lt.yml +0 -16
- data/config/locales/lv.yml +0 -6
- data/config/locales/mk.yml +0 -15
- data/config/locales/nb.yml +0 -12
- data/config/locales/nl.yml +21 -29
- data/config/locales/pl.yml +0 -16
- data/config/locales/pt-BR.yml +0 -16
- data/config/locales/pt-PT.yml +0 -6
- data/config/locales/ro.yml +0 -6
- data/config/locales/ru.yml +0 -16
- data/config/locales/sk.yml +0 -16
- data/config/locales/sv-SE.yml +0 -16
- data/config/locales/tr.yml +0 -16
- data/config/locales/uk.yml +0 -16
- data/config/locales/vi.yml +0 -16
- data/config/locales/zh-CN.yml +0 -16
- data/config/locales/zh-TW.yml +0 -16
- data/lib/active_admin/application.rb +1 -9
- data/lib/active_admin/batch_actions/controller.rb +1 -4
- data/lib/active_admin/batch_actions/resource_extension.rb +6 -13
- data/lib/active_admin/batch_actions/views/batch_action_form.rb +0 -6
- data/lib/active_admin/batch_actions/views/selection_cells.rb +2 -2
- data/lib/active_admin/batch_actions.rb +0 -5
- data/lib/active_admin/callbacks.rb +6 -4
- data/lib/active_admin/component.rb +0 -1
- data/lib/active_admin/csv_builder.rb +1 -1
- data/lib/active_admin/devise.rb +3 -3
- data/lib/active_admin/dsl.rb +2 -2
- data/lib/active_admin/dynamic_settings_node.rb +4 -4
- data/lib/active_admin/engine.rb +19 -6
- data/lib/active_admin/filters/active.rb +6 -4
- data/lib/active_admin/filters/active_filter.rb +1 -3
- data/lib/active_admin/filters/forms.rb +1 -42
- data/lib/active_admin/filters/resource_extension.rb +17 -9
- data/lib/active_admin/filters.rb +0 -2
- data/lib/active_admin/form_builder.rb +15 -14
- data/lib/active_admin/inputs/filters/base/search_method_select.rb +8 -10
- data/lib/active_admin/inputs/filters/base.rb +1 -1
- data/lib/active_admin/inputs/filters/check_boxes_input.rb +1 -6
- data/lib/active_admin/inputs/filters/date_range_input.rb +4 -2
- data/lib/active_admin/inputs.rb +0 -3
- data/lib/active_admin/menu.rb +10 -7
- data/lib/active_admin/menu_collection.rb +1 -1
- data/lib/active_admin/menu_item.rb +24 -3
- data/lib/active_admin/namespace.rb +2 -44
- data/lib/active_admin/namespace_settings.rb +2 -35
- data/lib/active_admin/order_clause.rb +4 -1
- data/lib/active_admin/orm/active_record/comments/views/active_admin_comments.rb +3 -75
- data/lib/active_admin/orm/active_record/comments.rb +10 -5
- data/lib/active_admin/pundit_adapter.rb +1 -1
- data/lib/active_admin/resource/action_items.rb +15 -20
- data/lib/active_admin/resource/attributes.rb +1 -8
- data/lib/active_admin/resource/naming.rb +1 -2
- data/lib/active_admin/resource.rb +1 -0
- data/lib/active_admin/resource_dsl.rb +1 -1
- data/lib/active_admin/scope.rb +1 -1
- data/lib/active_admin/settings_node.rb +1 -1
- data/lib/active_admin/sidebar_section.rb +0 -5
- data/lib/active_admin/version.rb +1 -1
- data/lib/active_admin/view_helpers.rb +0 -12
- data/lib/active_admin/views/components/active_admin_form.rb +20 -16
- data/lib/active_admin/views/components/attributes_table.rb +4 -12
- data/lib/active_admin/views/components/index_list.rb +10 -23
- data/lib/active_admin/views/components/paginated_collection.rb +34 -39
- data/lib/active_admin/views/components/panel.rb +2 -10
- data/lib/active_admin/views/components/scopes.rb +12 -21
- data/lib/active_admin/views/components/status_tag.rb +22 -19
- data/lib/active_admin/views/components/table_for.rb +19 -24
- data/lib/active_admin/views/components/tabs.rb +10 -11
- data/lib/active_admin/views/index_as_table.rb +24 -97
- data/lib/active_admin.rb +7 -11
- data/lib/generators/active_admin/assets/assets_generator.rb +4 -4
- data/lib/generators/active_admin/assets/templates/active_admin.css +3 -0
- data/lib/generators/active_admin/assets/templates/tailwind.config.js +18 -0
- data/lib/generators/active_admin/install/install_generator.rb +2 -8
- data/lib/generators/active_admin/install/templates/active_admin.rb.erb +10 -87
- data/lib/generators/active_admin/install/templates/dashboard.rb +8 -25
- data/lib/generators/active_admin/page/page_generator.rb +0 -1
- data/lib/generators/active_admin/resource/resource_generator.rb +46 -7
- data/lib/generators/active_admin/resource/templates/resource.rb.erb +42 -0
- data/lib/generators/active_admin/views_generator.rb +18 -0
- metadata +67 -214
- data/app/assets/javascripts/active_admin/base.js +0 -521
- data/app/assets/stylesheets/active_admin/_base.scss +0 -57
- data/app/assets/stylesheets/active_admin/_forms.scss +0 -315
- data/app/assets/stylesheets/active_admin/_header.scss +0 -188
- data/app/assets/stylesheets/active_admin/_mixins.scss +0 -1
- data/app/assets/stylesheets/active_admin/_normalize.scss +0 -349
- data/app/assets/stylesheets/active_admin/_print.scss +0 -287
- data/app/assets/stylesheets/active_admin/_typography.scss +0 -100
- data/app/assets/stylesheets/active_admin/components/_batch_actions.scss +0 -6
- data/app/assets/stylesheets/active_admin/components/_blank_slates.scss +0 -30
- data/app/assets/stylesheets/active_admin/components/_breadcrumbs.scss +0 -20
- data/app/assets/stylesheets/active_admin/components/_buttons.scss +0 -6
- data/app/assets/stylesheets/active_admin/components/_columns.scss +0 -3
- data/app/assets/stylesheets/active_admin/components/_comments.scss +0 -41
- data/app/assets/stylesheets/active_admin/components/_date_picker.scss +0 -148
- data/app/assets/stylesheets/active_admin/components/_dropdown_menu.scss +0 -154
- data/app/assets/stylesheets/active_admin/components/_flash_messages.scss +0 -37
- data/app/assets/stylesheets/active_admin/components/_grid.scss +0 -9
- data/app/assets/stylesheets/active_admin/components/_index_list.scss +0 -12
- data/app/assets/stylesheets/active_admin/components/_links.scss +0 -5
- data/app/assets/stylesheets/active_admin/components/_modal_dialog.scss +0 -34
- data/app/assets/stylesheets/active_admin/components/_pagination.scss +0 -58
- data/app/assets/stylesheets/active_admin/components/_panels.scss +0 -6
- data/app/assets/stylesheets/active_admin/components/_scopes.scss +0 -13
- data/app/assets/stylesheets/active_admin/components/_status_tags.scss +0 -12
- data/app/assets/stylesheets/active_admin/components/_table_tools.scss +0 -70
- data/app/assets/stylesheets/active_admin/components/_tables.scss +0 -112
- data/app/assets/stylesheets/active_admin/components/_tabs.scss +0 -68
- data/app/assets/stylesheets/active_admin/components/_unsupported_browser.scss +0 -16
- data/app/assets/stylesheets/active_admin/mixins/_all.scss +0 -8
- data/app/assets/stylesheets/active_admin/mixins/_buttons.scss +0 -65
- data/app/assets/stylesheets/active_admin/mixins/_gradients.scss +0 -28
- data/app/assets/stylesheets/active_admin/mixins/_rounded.scss +0 -22
- data/app/assets/stylesheets/active_admin/mixins/_sections.scss +0 -41
- data/app/assets/stylesheets/active_admin/mixins/_shadows.scss +0 -15
- data/app/assets/stylesheets/active_admin/mixins/_typography.scss +0 -3
- data/app/assets/stylesheets/active_admin/mixins/_utilities.scss +0 -17
- data/app/assets/stylesheets/active_admin/mixins/_variables.scss +0 -51
- data/app/assets/stylesheets/active_admin/pages/_logged_out.scss +0 -44
- data/app/assets/stylesheets/active_admin/structure/_footer.scss +0 -19
- data/app/assets/stylesheets/active_admin/structure/_main_structure.scss +0 -29
- data/app/assets/stylesheets/active_admin/structure/_title_bar.scss +0 -43
- data/app/javascript/active_admin/base.js +0 -28
- data/app/javascript/active_admin/ext/jquery-ui.js +0 -7
- data/app/javascript/active_admin/ext/jquery.js +0 -9
- data/app/javascript/active_admin/initializers/batch-actions.js +0 -61
- data/app/javascript/active_admin/initializers/checkbox-toggler.js +0 -3
- data/app/javascript/active_admin/initializers/datepicker.js +0 -16
- data/app/javascript/active_admin/initializers/dropdown-menu.js +0 -9
- data/app/javascript/active_admin/initializers/filters.js +0 -10
- data/app/javascript/active_admin/initializers/has-many.js +0 -98
- data/app/javascript/active_admin/initializers/per-page.js +0 -13
- data/app/javascript/active_admin/initializers/table-checkbox-toggler.js +0 -3
- data/app/javascript/active_admin/initializers/tabs.js +0 -6
- data/app/javascript/active_admin/lib/checkbox-toggler.js +0 -49
- data/app/javascript/active_admin/lib/dropdown-menu.js +0 -116
- data/app/javascript/active_admin/lib/filters.js +0 -39
- data/app/javascript/active_admin/lib/modal-dialog.js +0 -63
- data/app/javascript/active_admin/lib/per-page.js +0 -38
- data/app/javascript/active_admin/lib/table-checkbox-toggler.js +0 -38
- data/app/javascript/active_admin/lib/utils.js +0 -40
- data/app/views/kaminari/active_admin/_first_page.html.erb +0 -11
- data/app/views/kaminari/active_admin/_gap.html.erb +0 -8
- data/app/views/kaminari/active_admin/_last_page.html.erb +0 -11
- data/app/views/kaminari/active_admin/_next_page.html.erb +0 -11
- data/app/views/kaminari/active_admin/_page.html.erb +0 -12
- data/app/views/kaminari/active_admin/_paginator.html.erb +0 -25
- data/app/views/kaminari/active_admin/_prev_page.html.erb +0 -11
- data/app/views/kaminari/active_admin_countless/_first_page.html.erb +0 -11
- data/app/views/kaminari/active_admin_countless/_next_page.html.erb +0 -11
- data/app/views/kaminari/active_admin_countless/_page.html.erb +0 -12
- data/app/views/kaminari/active_admin_countless/_prev_page.html.erb +0 -11
- data/app/views/layouts/active_admin.html.arb +0 -2
- data/lib/active_admin/abstract_view_factory.rb +0 -48
- data/lib/active_admin/asset_registration.rb +0 -30
- data/lib/active_admin/base_controller/menu.rb +0 -35
- data/lib/active_admin/batch_actions/views/batch_action_selector.rb +0 -59
- data/lib/active_admin/filters/active_sidebar.rb +0 -28
- data/lib/active_admin/generators/boilerplate.rb +0 -54
- data/lib/active_admin/helpers/collection.rb +0 -21
- data/lib/active_admin/helpers/i18n.rb +0 -8
- data/lib/active_admin/inputs/datepicker_input.rb +0 -28
- data/lib/active_admin/inputs/filters/date_picker_input.rb +0 -14
- data/lib/active_admin/orm/active_record/comments/show_page_helper.rb +0 -24
- data/lib/active_admin/orm/mongoid.rb +0 -2
- data/lib/active_admin/resource_controller/sidebars.rb +0 -19
- data/lib/active_admin/resource_controller.rb +0 -68
- data/lib/active_admin/view_factory.rb +0 -28
- data/lib/active_admin/view_helpers/active_admin_application_helper.rb +0 -13
- data/lib/active_admin/view_helpers/auto_link_helper.rb +0 -46
- data/lib/active_admin/view_helpers/breadcrumb_helper.rb +0 -34
- data/lib/active_admin/view_helpers/display_helper.rb +0 -119
- data/lib/active_admin/view_helpers/download_format_links_helper.rb +0 -60
- data/lib/active_admin/view_helpers/fields_for.rb +0 -51
- data/lib/active_admin/view_helpers/flash_helper.rb +0 -15
- data/lib/active_admin/view_helpers/form_helper.rb +0 -21
- data/lib/active_admin/view_helpers/scope_name_helper.rb +0 -17
- data/lib/active_admin/view_helpers/sidebar_helper.rb +0 -16
- data/lib/active_admin/view_helpers/title_helper.rb +0 -12
- data/lib/active_admin/view_helpers/view_factory_helper.rb +0 -12
- data/lib/active_admin/views/action_items.rb +0 -18
- data/lib/active_admin/views/components/active_filters_sidebar_content.rb +0 -59
- data/lib/active_admin/views/components/blank_slate.rb +0 -18
- data/lib/active_admin/views/components/columns.rb +0 -162
- data/lib/active_admin/views/components/dropdown_menu.rb +0 -69
- data/lib/active_admin/views/components/menu.rb +0 -33
- data/lib/active_admin/views/components/menu_item.rb +0 -59
- data/lib/active_admin/views/components/sidebar.rb +0 -14
- data/lib/active_admin/views/components/sidebar_section.rb +0 -35
- data/lib/active_admin/views/components/site_title.rb +0 -55
- data/lib/active_admin/views/components/unsupported_browser.rb +0 -12
- data/lib/active_admin/views/footer.rb +0 -32
- data/lib/active_admin/views/header.rb +0 -20
- data/lib/active_admin/views/index_as_block.rb +0 -37
- data/lib/active_admin/views/index_as_blog.rb +0 -156
- data/lib/active_admin/views/index_as_grid.rb +0 -81
- data/lib/active_admin/views/pages/base.rb +0 -134
- data/lib/active_admin/views/pages/form.rb +0 -65
- data/lib/active_admin/views/pages/index.rb +0 -166
- data/lib/active_admin/views/pages/layout.rb +0 -27
- data/lib/active_admin/views/pages/page.rb +0 -31
- data/lib/active_admin/views/pages/show.rb +0 -60
- data/lib/active_admin/views/tabbed_navigation.rb +0 -12
- data/lib/active_admin/views/title_bar.rb +0 -56
- data/lib/generators/active_admin/assets/templates/active_admin.js +0 -1
- data/lib/generators/active_admin/assets/templates/active_admin.scss +0 -17
- data/lib/generators/active_admin/resource/templates/admin.rb.erb +0 -46
- data/lib/generators/active_admin/webpacker/plugins/jquery.js +0 -7
- data/lib/generators/active_admin/webpacker/templates/active_admin.js +0 -5
- data/lib/generators/active_admin/webpacker/templates/active_admin.scss +0 -17
- data/lib/generators/active_admin/webpacker/templates/print.scss +0 -2
- data/lib/generators/active_admin/webpacker/webpacker_generator.rb +0 -27
- data/vendor/assets/javascripts/jquery-ui/data.js +0 -45
- data/vendor/assets/javascripts/jquery-ui/disable-selection.js +0 -51
- data/vendor/assets/javascripts/jquery-ui/focusable.js +0 -89
- data/vendor/assets/javascripts/jquery-ui/form-reset-mixin.js +0 -83
- data/vendor/assets/javascripts/jquery-ui/form.js +0 -25
- data/vendor/assets/javascripts/jquery-ui/ie.js +0 -20
- data/vendor/assets/javascripts/jquery-ui/keycode.js +0 -51
- data/vendor/assets/javascripts/jquery-ui/labels.js +0 -71
- data/vendor/assets/javascripts/jquery-ui/plugin.js +0 -49
- data/vendor/assets/javascripts/jquery-ui/position.js +0 -513
- data/vendor/assets/javascripts/jquery-ui/safe-active-element.js +0 -46
- data/vendor/assets/javascripts/jquery-ui/safe-blur.js +0 -27
- data/vendor/assets/javascripts/jquery-ui/scroll-parent.js +0 -50
- data/vendor/assets/javascripts/jquery-ui/tabbable.js +0 -41
- data/vendor/assets/javascripts/jquery-ui/unique-id.js +0 -54
- data/vendor/assets/javascripts/jquery-ui/version.js +0 -20
- data/vendor/assets/javascripts/jquery-ui/widget.js +0 -758
- data/vendor/assets/javascripts/jquery-ui/widgets/button.js +0 -454
- data/vendor/assets/javascripts/jquery-ui/widgets/checkboxradio.js +0 -294
- data/vendor/assets/javascripts/jquery-ui/widgets/controlgroup.js +0 -304
- data/vendor/assets/javascripts/jquery-ui/widgets/datepicker.js +0 -2243
- data/vendor/assets/javascripts/jquery-ui/widgets/dialog.js +0 -971
- data/vendor/assets/javascripts/jquery-ui/widgets/draggable.js +0 -1268
- data/vendor/assets/javascripts/jquery-ui/widgets/mouse.js +0 -241
- data/vendor/assets/javascripts/jquery-ui/widgets/resizable.js +0 -1228
- data/vendor/assets/javascripts/jquery-ui/widgets/sortable.js +0 -1622
- data/vendor/assets/javascripts/jquery-ui/widgets/tabs.js +0 -931
- /data/{lib → app/controllers}/active_admin/base_controller/authorization.rb +0 -0
- /data/{lib → app/controllers}/active_admin/resource_controller/decorators.rb +0 -0
- /data/{lib → app/controllers}/active_admin/resource_controller/polymorphic_routes.rb +0 -0
- /data/{lib → app/controllers}/active_admin/resource_controller/resource_class_methods.rb +0 -0
- /data/lib/{active_admin/orm/mongoid/.gitkeep → generators/active_admin/assets/templates/builds/.keep} +0 -0
@@ -1,2 +1,95 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
|
-
|
2
|
+
def wrap_with_batch_action_form(&block)
|
3
|
+
if active_admin_config.batch_actions.any?
|
4
|
+
insert_tag(ActiveAdmin::BatchActions::BatchActionForm, &block)
|
5
|
+
batch_actions_to_display.each do |batch_action|
|
6
|
+
if batch_action.partial.present?
|
7
|
+
render(batch_action.partial)
|
8
|
+
end
|
9
|
+
end
|
10
|
+
else
|
11
|
+
block.call
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
def build_collection
|
16
|
+
if collection_empty?(collection)
|
17
|
+
if params[:q] || params[:scope]
|
18
|
+
render("active_admin/resource/index_empty_results")
|
19
|
+
else
|
20
|
+
render("active_admin/resource/index_blank_slate")
|
21
|
+
end
|
22
|
+
else
|
23
|
+
render_index
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
def build_table_tools
|
28
|
+
div class: "index-data-table-toolbar" do
|
29
|
+
render "batch_actions_dropdown"
|
30
|
+
build_scopes
|
31
|
+
build_index_list
|
32
|
+
end if any_table_tools?
|
33
|
+
end
|
34
|
+
|
35
|
+
def any_table_tools?
|
36
|
+
active_admin_config.batch_actions.any? ||
|
37
|
+
active_admin_config.scopes.any? ||
|
38
|
+
active_admin_config.page_presenters[:index].try(:size).try(:>, 1)
|
39
|
+
end
|
40
|
+
|
41
|
+
def build_scopes
|
42
|
+
if active_admin_config.scopes.any?
|
43
|
+
scope_options = { scope_count: page_presenter.fetch(:scope_count, true) }
|
44
|
+
insert_tag(ActiveAdmin::Views::Scopes, active_admin_config.scopes, scope_options)
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
def build_index_list
|
49
|
+
indexes = active_admin_config.page_presenters[:index]
|
50
|
+
|
51
|
+
if indexes.kind_of?(Hash) && indexes.length > 1
|
52
|
+
index_classes = []
|
53
|
+
active_admin_config.page_presenters[:index].each do |type, page_presenter|
|
54
|
+
index_classes << find_index_renderer_class(page_presenter[:as])
|
55
|
+
end
|
56
|
+
|
57
|
+
insert_tag(ActiveAdmin::Views::IndexList, index_classes)
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
61
|
+
# Returns the actual class for renderering the main content on the index
|
62
|
+
# page. To set this, use the :as option in the page_presenter block.
|
63
|
+
def find_index_renderer_class(klass)
|
64
|
+
if klass.is_a?(Class)
|
65
|
+
klass
|
66
|
+
else
|
67
|
+
::ActiveAdmin::Views.const_get("IndexAs" + klass.to_s.camelcase)
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
def render_index
|
72
|
+
renderer_class = find_index_renderer_class(page_presenter[:as])
|
73
|
+
|
74
|
+
paginator = page_presenter.fetch(:paginator, true)
|
75
|
+
download_links = page_presenter.fetch(:download_links, active_admin_config.namespace.download_links)
|
76
|
+
pagination_total = page_presenter.fetch(:pagination_total, true)
|
77
|
+
per_page = page_presenter.fetch(:per_page, active_admin_config.per_page)
|
78
|
+
|
79
|
+
paginated_collection(
|
80
|
+
collection, entry_name: active_admin_config.resource_label,
|
81
|
+
entries_name: active_admin_config.plural_resource_label(count: collection_size),
|
82
|
+
download_links: download_links,
|
83
|
+
paginator: paginator,
|
84
|
+
per_page: per_page,
|
85
|
+
pagination_total: pagination_total) do
|
86
|
+
insert_tag(renderer_class, page_presenter, collection)
|
87
|
+
end
|
88
|
+
end
|
89
|
+
|
90
|
+
div class: "main-content-container" do
|
91
|
+
wrap_with_batch_action_form do
|
92
|
+
build_table_tools
|
93
|
+
build_collection
|
94
|
+
end
|
95
|
+
end
|
@@ -1,2 +1,2 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
|
-
|
2
|
+
render "form"
|
@@ -1,2 +1,13 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
|
-
|
2
|
+
def attributes_table(*args, &block)
|
3
|
+
attributes_table_for resource, *args, &block
|
4
|
+
end
|
5
|
+
|
6
|
+
div class: "main-content-container" do
|
7
|
+
if page_presenter.block
|
8
|
+
# Evaluate the show config from the controller
|
9
|
+
instance_exec resource, &page_presenter.block
|
10
|
+
else
|
11
|
+
render "show_default"
|
12
|
+
end
|
13
|
+
end
|
@@ -0,0 +1,51 @@
|
|
1
|
+
<div class="max-w-[700px]">
|
2
|
+
<div class="font-bold py-3 border-b dark:border-gray-600">
|
3
|
+
<%= ActiveAdmin::Comment.model_name.human(count: 2.1) %>
|
4
|
+
</div>
|
5
|
+
<% if authorized?(ActiveAdmin::Auth::NEW, ActiveAdmin::Comment) %>
|
6
|
+
<%= active_admin_form_for(ActiveAdmin::Comment.new, url: comment_form_url, html: { class: "mb-12 max-w-[700px]", novalidate: false }) do |f|
|
7
|
+
f.inputs do
|
8
|
+
f.input :resource_type, as: :hidden, input_html: { value: ActiveAdmin::Comment.resource_type(resource) }
|
9
|
+
f.input :resource_id, as: :hidden, input_html: { value: resource.id }
|
10
|
+
f.input :body, label: false, input_html: { size: "80x4", required: true }
|
11
|
+
end
|
12
|
+
f.actions do
|
13
|
+
f.action :submit, label: I18n.t("active_admin.comments.add")
|
14
|
+
end
|
15
|
+
end
|
16
|
+
%>
|
17
|
+
<% end %>
|
18
|
+
<div class="font-bold py-3 border-b dark:border-gray-600">
|
19
|
+
<%= I18n.t "active_admin.comments.title_content", count: comments.total_count %>
|
20
|
+
</div>
|
21
|
+
<% if comments.any? %>
|
22
|
+
<% comments.each do |comment| %>
|
23
|
+
<div class="border-b dark:border-gray-600 py-6 max-w-[700px]" id="<%= dom_id(comment, :active_admin) %>" data-test-comment-container>
|
24
|
+
<div class="flex gap-4 items-end mb-2">
|
25
|
+
<span class="font-semibold">
|
26
|
+
<%= comment.author ? auto_link(comment.author) : I18n.t("active_admin.comments.author_missing") %>
|
27
|
+
</span>
|
28
|
+
<span class="text-xs text-gray-400">
|
29
|
+
<%= pretty_format comment.created_at %>
|
30
|
+
</span>
|
31
|
+
</div>
|
32
|
+
<div class="mb-4 break-keep">
|
33
|
+
<%= simple_format(comment.body) %>
|
34
|
+
</div>
|
35
|
+
<% if authorized?(ActiveAdmin::Auth::DESTROY, comment) %>
|
36
|
+
<%= link_to I18n.t("active_admin.comments.delete"), url_for_comments(comment.id), method: :delete, data: { confirm: I18n.t("active_admin.comments.delete_confirmation") } %>
|
37
|
+
<% end %>
|
38
|
+
</div>
|
39
|
+
<% end %>
|
40
|
+
<div class="p-2 lg:p-4 flex flex-col-reverse lg:flex-row gap-4 items-center justify-between">
|
41
|
+
<div>
|
42
|
+
<%= page_entries_info(comments).html_safe %>
|
43
|
+
</div>
|
44
|
+
<%= paginate(comments, views_prefix: :active_admin, outer_window: 1, window: 2) %>
|
45
|
+
</div>
|
46
|
+
<% else %>
|
47
|
+
<div class="p-8 text-center">
|
48
|
+
<%= I18n.t("active_admin.comments.no_comments_yet") %>
|
49
|
+
</div>
|
50
|
+
<% end %>
|
51
|
+
</div>
|
@@ -0,0 +1,20 @@
|
|
1
|
+
<!doctype html>
|
2
|
+
<html lang="<%= I18n.locale %>">
|
3
|
+
<head>
|
4
|
+
<title><%= html_head_site_title %></title>
|
5
|
+
<%= render "active_admin/html_head" %>
|
6
|
+
</head>
|
7
|
+
<body class="bg-white dark:bg-gray-950/95 text-gray-950 dark:text-gray-100 antialiased">
|
8
|
+
<%= render "active_admin/site_header", title: site_title %>
|
9
|
+
<div class="xl:ms-60">
|
10
|
+
<%= render "active_admin/main_navigation" %>
|
11
|
+
<%= render "active_admin/page_header", title: @page_title || page_title %>
|
12
|
+
<%= render "active_admin/flash_messages" %>
|
13
|
+
<div data-test-page-content class="px-2.5 lg:px-5 grid grid-cols-1 gap-4 lg:gap-6 lg:grid-flow-col lg:auto-cols-[minmax(0,250px)]">
|
14
|
+
<%= yield %>
|
15
|
+
<%= render "active_admin/sidebar" %>
|
16
|
+
</div>
|
17
|
+
<%= render "active_admin/site_footer" %>
|
18
|
+
</div>
|
19
|
+
</body>
|
20
|
+
</html>
|
@@ -1,50 +1,13 @@
|
|
1
|
-
<!
|
2
|
-
<html lang="<%=I18n.locale%>">
|
1
|
+
<!doctype html>
|
2
|
+
<html lang="<%= I18n.locale %>">
|
3
3
|
<head>
|
4
|
-
<
|
5
|
-
|
6
|
-
<title><%= [@page_title, ActiveAdmin.application.site_title(self)].compact.join(" | ") %></title>
|
7
|
-
|
8
|
-
<% ActiveAdmin.application.stylesheets.each do |style, options| %>
|
9
|
-
<% if ActiveAdmin.application.use_webpacker %>
|
10
|
-
<%= stylesheet_pack_tag style, **options %>
|
11
|
-
<% else %>
|
12
|
-
<%= stylesheet_link_tag style, **options %>
|
13
|
-
<% end %>
|
14
|
-
<% end %>
|
15
|
-
<% ActiveAdmin.application.javascripts.each do |path, options| %>
|
16
|
-
<% if ActiveAdmin.application.use_webpacker %>
|
17
|
-
<%= javascript_pack_tag path, **options %>
|
18
|
-
<% else %>
|
19
|
-
<%= javascript_include_tag path, **options %>
|
20
|
-
<% end %>
|
21
|
-
<% end %>
|
22
|
-
|
23
|
-
<%= favicon_link_tag ActiveAdmin.application.favicon if ActiveAdmin.application.favicon %>
|
24
|
-
|
25
|
-
<% ActiveAdmin.application.meta_tags_for_logged_out_pages.each do |name, content| %>
|
26
|
-
<%= tag(:meta, name: name, content: content) %>
|
27
|
-
<% end %>
|
28
|
-
|
29
|
-
<%= csrf_meta_tags %>
|
30
|
-
<%= csp_meta_tag %>
|
4
|
+
<title><%= html_head_site_title %></title>
|
5
|
+
<%= render "active_admin/html_head" %>
|
31
6
|
</head>
|
32
|
-
<body class="
|
33
|
-
<div
|
34
|
-
|
35
|
-
|
36
|
-
<div class="flashes">
|
37
|
-
<% flash_messages.each do |type, message| %>
|
38
|
-
<%= content_tag :div, message, class: "flash flash_#{type}" %>
|
39
|
-
<% end %>
|
40
|
-
</div>
|
41
|
-
<div id="active_admin_content">
|
42
|
-
<%= yield %>
|
43
|
-
</div>
|
7
|
+
<body class="bg-gray-50 dark:bg-gray-900 text-gray-950 dark:text-gray-100 antialiased">
|
8
|
+
<div class="flex flex-col items-center justify-center min-h-screen py-4 sm:px-6 sm:py-8 mx-auto">
|
9
|
+
<%= render "active_admin/flash_messages" %>
|
10
|
+
<%= yield %>
|
44
11
|
</div>
|
45
|
-
<div id="footer">
|
46
|
-
<%= yield :footer %>
|
47
|
-
</div>
|
48
|
-
</div>
|
49
12
|
</body>
|
50
13
|
</html>
|
data/config/locales/ar.yml
CHANGED
@@ -1,9 +1,6 @@
|
|
1
1
|
ar:
|
2
2
|
active_admin:
|
3
3
|
dashboard: "لوحة تحكم"
|
4
|
-
dashboard_welcome:
|
5
|
-
welcome: "مرحبًا بك في في صفحة الإدارة، وهذه هي الصفحة الإفتراضيّة."
|
6
|
-
call_to_action: "لإضافة أقسام إلى لوحة التحكم, راجع: 'app/admin/dashboard.rb'"
|
7
4
|
view: "عرض"
|
8
5
|
edit: "تعديل"
|
9
6
|
delete: "حذف"
|
@@ -25,15 +22,11 @@ ar:
|
|
25
22
|
filter: "تصفية"
|
26
23
|
clear: "تفريغ التصفية"
|
27
24
|
search_status:
|
28
|
-
headline: "حالات البحث:"
|
29
|
-
current_scope: "المجال:"
|
30
|
-
current_filters: "المُرشحات الحاليّة:"
|
31
25
|
no_current_filters: "بدون"
|
32
26
|
status_tag:
|
33
27
|
"yes": "نعم"
|
34
28
|
"no": "لا"
|
35
29
|
"unset": "لا"
|
36
|
-
main_content: "الرجاء تنفيذ %{model}#main_content لعرض المحتوى."
|
37
30
|
logout: "تسجيل الخروج"
|
38
31
|
powered_by: "تنفيذ %{active_admin} %{version}"
|
39
32
|
sidebars:
|
@@ -52,8 +45,6 @@ ar:
|
|
52
45
|
blank_slate:
|
53
46
|
content: "لايوجد %{resource_name} بعد."
|
54
47
|
link: "إنشاء"
|
55
|
-
dropdown_actions:
|
56
|
-
button_label: "إجراءات"
|
57
48
|
batch_actions:
|
58
49
|
button_label: "إجراءات متعددة"
|
59
50
|
default_confirmation: "هل أنت متأكّد؟"
|
@@ -115,14 +106,7 @@ ar:
|
|
115
106
|
sign_in_with_omniauth_provider: "تسجيل الدخول بـ %{provider}"
|
116
107
|
resend_unlock_instructions: "إعادة إرسال تعليمات تنشيط الحساب"
|
117
108
|
resend_confirmation_instructions: "إعادة إرسال تعليمات تأكيد الحساب"
|
118
|
-
unsupported_browser:
|
119
|
-
headline: "يُرجى مُلاحظة أن (أكتف أدمن) لم تعد تدعم المُتصفّح إنترنت اكسبلوررالإصدار الثامن وما قبله"
|
120
|
-
recommendation: "ننصح بالتحديث إلى الإصدارات الأخيرة من: <a href=\"http://windows.microsoft.com/ie\">Internet Explorer</a>, <a href=\"https://chrome.google.com/\">Google Chrome</a>, أو <a href=\"https://mozilla.org/firefox/\">Firefox</a>."
|
121
|
-
turn_off_compatibility_view: "إن كنت تستخدم الإصدار التاسع وما يليه من إنترنت إكسبلورر تأكّد من <a href=\"https://support.microsoft.com/ar-ae/help/17471\">تعطيل \"Compatibility View\"</a>."
|
122
109
|
access_denied:
|
123
110
|
message: "لم يُصرّح لك بهذا الإجراء."
|
124
111
|
index_list:
|
125
112
|
table: "جدول"
|
126
|
-
block: "قائمة"
|
127
|
-
grid: "شبكة"
|
128
|
-
blog: "مدونة"
|
data/config/locales/az.yml
CHANGED
@@ -1,9 +1,6 @@
|
|
1
1
|
az:
|
2
2
|
active_admin:
|
3
3
|
dashboard: "İdarəetmə paneli"
|
4
|
-
dashboard_welcome:
|
5
|
-
welcome: "Active Admin-ə xoş gəlmişsiniz. Bu saytla idarəetmənin standart səhifəsidir."
|
6
|
-
call_to_action: "Buraya nə isə əlavə etmək üçün 'app/admin/dashboard.rb' sənədini dəyişin"
|
7
4
|
view: "Aç"
|
8
5
|
edit: "Dəyiş"
|
9
6
|
delete: "Sil"
|
@@ -25,14 +22,10 @@ az:
|
|
25
22
|
filter: "Filtrlə"
|
26
23
|
clear: "Təmizlə"
|
27
24
|
search_status:
|
28
|
-
headline: "Axtarışın statusu:"
|
29
|
-
current_scope: "Sahə:"
|
30
|
-
current_filters: "Cari filter:"
|
31
25
|
no_current_filters: "Heç biri"
|
32
26
|
status_tag:
|
33
27
|
"yes": "Bəli"
|
34
28
|
"no": "Xeyr"
|
35
|
-
main_content: "Создайте %{model}#main_content для отображения содержимого."
|
36
29
|
logout: "Çıxış"
|
37
30
|
powered_by: "Работает на %{active_admin} %{version}"
|
38
31
|
sidebars:
|
@@ -53,8 +46,6 @@ az:
|
|
53
46
|
blank_slate:
|
54
47
|
content: "%{resource_name} hələ yoxdur."
|
55
48
|
link: "Yarat"
|
56
|
-
dropdown_actions:
|
57
|
-
button_label: "Əməliyyatlar"
|
58
49
|
batch_actions:
|
59
50
|
button_label: "Qrup əməliyyatları"
|
60
51
|
default_confirmation: "Siz bunu etməyinizə əminsiniz?"
|
@@ -118,14 +109,7 @@ az:
|
|
118
109
|
sign_in_with_omniauth_provider: "%{provider} vasitəsilə daxil ol"
|
119
110
|
resend_unlock_instructions: "Blokdan çıxarma üzrə təlimatı yenidən göndərilməsi"
|
120
111
|
resend_confirmation_instructions: "Aktivləşdirmə ismarışını yenidən göndərilməsi"
|
121
|
-
unsupported_browser:
|
122
|
-
headline: "Zəhmət olmasa, bilin ki, Active Admin artıq Internet Explorer-in köhnə versiyalarını daha dəstəkləmir və yalnız IE 8 versiyasından başlayaraq dəstəkləyir"
|
123
|
-
recommendation: "Biz sizin brauzerinizin versiyasını yeniləməyi məsləhət görürük (<a href=\"http://windows.microsoft.com/ie\">Internet Explorer</a>, <a href=\"https://chrome.google.com/\">Google Chrome</a>, və ya <a href=\"https://mozilla.org/firefox/\">Firefox</a>)."
|
124
|
-
turn_off_compatibility_view: "Əgər siz IE 9 və ya daha yeni versiya istifadə edirsinizsə, əmin olun ki, <a href=\"https://support.microsoft.com/ru-ru/help/17471\">\"Uyğunluğun rejimində baxış\"</a> seçimini söndürmüsünüz."
|
125
112
|
access_denied:
|
126
113
|
message: "Bunu etmək üçün daxil olmalısınız."
|
127
114
|
index_list:
|
128
115
|
table: "Cədvəl"
|
129
|
-
block: "Siyahı"
|
130
|
-
grid: "Tor"
|
131
|
-
blog: "Bloq"
|
data/config/locales/bg.yml
CHANGED
@@ -1,9 +1,6 @@
|
|
1
1
|
bg:
|
2
2
|
active_admin:
|
3
3
|
dashboard: Табло
|
4
|
-
dashboard_welcome:
|
5
|
-
welcome: "Добре дошли в Active Admin. Това е таблото по подразбиране."
|
6
|
-
call_to_action: "За да добавите секции, редактирайте 'app/admin/dashboard.rb'"
|
7
4
|
view: "Преглед"
|
8
5
|
edit: "Редакция"
|
9
6
|
delete: "Изтриване"
|
@@ -28,7 +25,6 @@ bg:
|
|
28
25
|
"yes": "Да"
|
29
26
|
"no": "не"
|
30
27
|
"unset": "не"
|
31
|
-
main_content: "Добавете %{model}#main_content за да видите съдържание."
|
32
28
|
logout: "Изход"
|
33
29
|
powered_by: "Задвижва се от %{active_admin} %{version}"
|
34
30
|
sidebars:
|
@@ -46,8 +42,6 @@ bg:
|
|
46
42
|
blank_slate:
|
47
43
|
content: "Все още няма добавени %{resource_name}."
|
48
44
|
link: "Създаване"
|
49
|
-
dropdown_actions:
|
50
|
-
button_label: "действия"
|
51
45
|
batch_actions:
|
52
46
|
button_label: "Масови действия"
|
53
47
|
default_confirmation: "Наистина ли искате да направите това?"
|
@@ -107,6 +101,3 @@ bg:
|
|
107
101
|
message: "Нямате права да извършите това действие."
|
108
102
|
index_list:
|
109
103
|
table: "Таблица"
|
110
|
-
block: "Списък"
|
111
|
-
grid: "Грид"
|
112
|
-
blog: "Блог"
|
data/config/locales/bs.yml
CHANGED
@@ -1,9 +1,6 @@
|
|
1
1
|
bs:
|
2
2
|
active_admin:
|
3
3
|
dashboard: "Upravljačka ploča"
|
4
|
-
dashboard_welcome:
|
5
|
-
welcome: "Dobrodošli u Active Admin. Ovo je početna upravljačka ploča."
|
6
|
-
call_to_action: "Da biste dodali nove odjeljke na upravljačku ploču, pogledajte 'app/admin/dashboard.rb'"
|
7
4
|
view: "Pregledaj"
|
8
5
|
edit: "Uredi"
|
9
6
|
delete: "Obriši"
|
@@ -28,7 +25,6 @@ bs:
|
|
28
25
|
"yes": "Da"
|
29
26
|
"no": "Nema"
|
30
27
|
"unset": "Nema"
|
31
|
-
main_content: "Molim Vas, implementirajte %{model}#main_content da biste prikazali sadržaj."
|
32
28
|
logout: "Odjavi se"
|
33
29
|
powered_by: "Powered by %{active_admin} %{version}"
|
34
30
|
sidebars:
|
@@ -109,6 +105,3 @@ bs:
|
|
109
105
|
message: "Nemaš dopuštenja."
|
110
106
|
index_list:
|
111
107
|
table: "Tabela"
|
112
|
-
block: "Lista"
|
113
|
-
grid: "Rešetka"
|
114
|
-
blog: "Blog"
|
data/config/locales/ca.yml
CHANGED
@@ -1,9 +1,6 @@
|
|
1
1
|
ca:
|
2
2
|
active_admin:
|
3
3
|
dashboard: Tauler
|
4
|
-
dashboard_welcome:
|
5
|
-
welcome: "Benvingut a Active Admin. Aquest és el tauler per defecte."
|
6
|
-
call_to_action: "Mira l'arxiu 'app/admin/dashboard.rb' per afegir seccions al tauler"
|
7
4
|
view: "Mostra"
|
8
5
|
edit: "Edita"
|
9
6
|
delete: "Elimina"
|
@@ -28,7 +25,6 @@ ca:
|
|
28
25
|
"yes": "Sí"
|
29
26
|
"no": "No"
|
30
27
|
"unset": "No"
|
31
|
-
main_content: "Implementa %{model}#main_content per mostrar contingut."
|
32
28
|
logout: "Desconnecta't"
|
33
29
|
powered_by: "Powered by %{active_admin} %{version}"
|
34
30
|
sidebars:
|
@@ -46,8 +42,6 @@ ca:
|
|
46
42
|
blank_slate:
|
47
43
|
content: "Encara no hi ha cap %{resource_name}."
|
48
44
|
link: "Crea'n un/a"
|
49
|
-
dropdown_actions:
|
50
|
-
button_label: "accions"
|
51
45
|
batch_actions:
|
52
46
|
button_label: "les accions per lots"
|
53
47
|
default_confirmation: "¿Esteu segur que voleu fer-ho?"
|
@@ -93,6 +87,3 @@ ca:
|
|
93
87
|
message: "No esta autoritzat a realitzar aquesta acció."
|
94
88
|
index_list:
|
95
89
|
table: "Taula"
|
96
|
-
block: "Llista"
|
97
|
-
grid: "Graella"
|
98
|
-
blog: "Bloc"
|
data/config/locales/cs.yml
CHANGED
@@ -1,9 +1,6 @@
|
|
1
1
|
cs:
|
2
2
|
active_admin:
|
3
3
|
dashboard: Úvod
|
4
|
-
dashboard_welcome:
|
5
|
-
welcome: "Vítejte v Active Admin. Toto je nástěnka."
|
6
|
-
call_to_action: "Pro přidání sekcí na nástěnku se podívejte do souboru 'app/admin/dashboard.rb'"
|
7
4
|
view: "Zobrazit"
|
8
5
|
edit: "Upravit"
|
9
6
|
delete: "Smazat"
|
@@ -28,7 +25,6 @@ cs:
|
|
28
25
|
"yes": "Ano"
|
29
26
|
"no": "Ne"
|
30
27
|
"unset": "Ne"
|
31
|
-
main_content: "Implementujte prosím %{model}#main_content pro zobrazení obsahu."
|
32
28
|
logout: "Odhlásit"
|
33
29
|
powered_by: "%{active_admin} %{version}"
|
34
30
|
sidebars:
|
@@ -47,8 +43,6 @@ cs:
|
|
47
43
|
blank_slate:
|
48
44
|
content: "Zatím zde není žádný obsah."
|
49
45
|
link: "Vytvořit"
|
50
|
-
dropdown_actions:
|
51
|
-
button_label: "Akce"
|
52
46
|
batch_actions:
|
53
47
|
button_label: "Hromadné akce"
|
54
48
|
default_confirmation: "Jste si jisti, že chcete provést?"
|
@@ -97,6 +91,3 @@ cs:
|
|
97
91
|
message: "Nemáte oprávnění k provedení této akce."
|
98
92
|
index_list:
|
99
93
|
table: "Tabulka"
|
100
|
-
block: "Seznam"
|
101
|
-
grid: "Tabulka"
|
102
|
-
blog: "Blog"
|
data/config/locales/da.yml
CHANGED
@@ -1,9 +1,6 @@
|
|
1
1
|
da:
|
2
2
|
active_admin:
|
3
3
|
dashboard: "Kontrolpanel"
|
4
|
-
dashboard_welcome:
|
5
|
-
welcome: "Velkommen til Active Admin. Dette er standardoversigtssiden."
|
6
|
-
call_to_action: "Rediger 'app/admin/dashboard.rb' for at tilføje nye elementer til oversigtssiden."
|
7
4
|
view: "Vis"
|
8
5
|
edit: "Rediger"
|
9
6
|
delete: "Slet"
|
@@ -26,15 +23,11 @@ da:
|
|
26
23
|
filter: "Filtrer"
|
27
24
|
clear: "Ryd filtre"
|
28
25
|
search_status:
|
29
|
-
headline: "Søgestatus:"
|
30
|
-
current_scope: "Perspektiv:"
|
31
|
-
current_filters: "Valgte filtre:"
|
32
26
|
no_current_filters: "Ingen"
|
33
27
|
status_tag:
|
34
28
|
"yes": "Ja"
|
35
29
|
"no": "Nej"
|
36
30
|
"unset": "Nej"
|
37
|
-
main_content: "Implementer venligst %{model}#main_content for at vise noget indhold."
|
38
31
|
logout: "Log ud"
|
39
32
|
powered_by: "Powered by %{active_admin} %{version}"
|
40
33
|
sidebars:
|
@@ -54,8 +47,6 @@ da:
|
|
54
47
|
blank_slate:
|
55
48
|
content: "Der er ingen %{resource_name} endnu."
|
56
49
|
link: "Opret"
|
57
|
-
dropdown_actions:
|
58
|
-
button_label: "Handlinger"
|
59
50
|
batch_actions:
|
60
51
|
button_label: "Batch Handlinger"
|
61
52
|
default_confirmation: "Er du sikker på du vil gøre dette?"
|
@@ -117,14 +108,7 @@ da:
|
|
117
108
|
sign_in_with_omniauth_provider: "Log ind med %{provider}"
|
118
109
|
resend_unlock_instructions: "Send oplåsningsinstruktioner igen"
|
119
110
|
resend_confirmation_instructions: "Send oplåsningsinstruktioner igen"
|
120
|
-
unsupported_browser:
|
121
|
-
headline: "Vær venligst opmærksom på, at ActiveAdmin ikke længere understøtter Internet Explorer version 8 eller tidligere."
|
122
|
-
recommendation: "Vi anbefaler at du opgraderer til den nyeste <a href=\"http://windows.microsoft.com/ie\">Internet Explorer</a>, <a href=\"https://chrome.google.com/\">Google Chrome</a>, eller <a href=\"https://mozilla.org/firefox/\">Firefox</a>."
|
123
|
-
turn_off_compatibility_view: "Hvis du bruger IE 9 eller senere, så vær sikker på, at du <a href=\"https://support.microsoft.com/da-dk/help/17471\">slår \"Compatibility View\" fra</a>."
|
124
111
|
access_denied:
|
125
112
|
message: "Du har ikke rettigheder til at udføre denne handling."
|
126
113
|
index_list:
|
127
114
|
table: "Tabel"
|
128
|
-
block: "Liste"
|
129
|
-
grid: "Gitter"
|
130
|
-
blog: "Blog"
|
data/config/locales/de-CH.yml
CHANGED
@@ -1,9 +1,6 @@
|
|
1
1
|
"de-CH":
|
2
2
|
active_admin:
|
3
3
|
dashboard: Übersicht
|
4
|
-
dashboard_welcome:
|
5
|
-
welcome: "Willkommen in Active Admin. Dies ist die Standard-Übersichtsseite."
|
6
|
-
call_to_action: "Siehe 'app/admin/dashboards.rb', um Übersichts-Bereiche hinzuzufügen."
|
7
4
|
view: "Anzeigen"
|
8
5
|
edit: "Bearbeiten"
|
9
6
|
delete: "Löschen"
|
@@ -28,7 +25,6 @@
|
|
28
25
|
"yes": "Ja"
|
29
26
|
"no": "Nicht"
|
30
27
|
"unset": "Nicht"
|
31
|
-
main_content: "Bitte implementieren Sie %{model}#main_content, um Inhalte anzuzeigen."
|
32
28
|
logout: "Abmelden"
|
33
29
|
powered_by: "Powered by %{active_admin} %{version}"
|
34
30
|
sidebars:
|
@@ -46,8 +42,6 @@
|
|
46
42
|
blank_slate:
|
47
43
|
content: "Es gibt noch keine %{resource_name}."
|
48
44
|
link: "Erstellen"
|
49
|
-
dropdown_actions:
|
50
|
-
button_label: "Aktionen"
|
51
45
|
batch_actions:
|
52
46
|
button_label: "Stapelverarbeitung"
|
53
47
|
default_confirmation: "Bist du sicher, dass Sie dies tun wollen?"
|
@@ -88,7 +82,3 @@
|
|
88
82
|
sign_in_with_omniauth_provider: "Anmeldung mit %{provider}"
|
89
83
|
resend_unlock_instructions: "Entsperrungsanweisung erneut senden"
|
90
84
|
resend_confirmation_instructions: "Bestätigungsanweisung erneut senden"
|
91
|
-
unsupported_browser:
|
92
|
-
headline: "ActiveAdmin unterstützt nicht länger den Internet Explorer in Version 8 oder niedriger."
|
93
|
-
recommendation: "Wir empfehlen die Nutzung von <a href=\"http://windows.microsoft.com/ie\">Internet Explorer</a>, <a href=\"https://chrome.google.com/\">Google Chrome</a>, oder <a href=\"https://mozilla.org/firefox/\">Firefox</a>."
|
94
|
-
turn_off_compatibility_view: "Wenn sie IE 9 oder neuer benutzen, stellen sie sicher das sie den <a href=\"https://support.microsoft.com/de-ch/help/17471\">\"Kompatibilitätsansicht\" ausgeschaltet</a> haben."
|
data/config/locales/de.yml
CHANGED
@@ -17,9 +17,6 @@ de:
|
|
17
17
|
updated_at: "Aktualisiert"
|
18
18
|
active_admin:
|
19
19
|
dashboard: Übersicht
|
20
|
-
dashboard_welcome:
|
21
|
-
welcome: "Willkommen in Active Admin. Dies ist die Standard-Übersichtsseite."
|
22
|
-
call_to_action: "Siehe 'app/admin/dashboard.rb', um Übersichts-Bereiche hinzuzufügen."
|
23
20
|
view: "Anzeigen"
|
24
21
|
edit: "Bearbeiten"
|
25
22
|
delete: "Löschen"
|
@@ -48,15 +45,11 @@ de:
|
|
48
45
|
scopes:
|
49
46
|
all: "Alle"
|
50
47
|
search_status:
|
51
|
-
headline: "Filter"
|
52
|
-
current_scope: "Anwendungsbereich:"
|
53
|
-
current_filters: "Aktuelle Filter:"
|
54
48
|
no_current_filters: "Keine"
|
55
49
|
status_tag:
|
56
50
|
"yes": "Ja"
|
57
51
|
"no": "Nein"
|
58
52
|
"unset": "Nein"
|
59
|
-
main_content: "Bitte implementieren Sie %{model}#main_content, um Inhalte anzuzeigen."
|
60
53
|
logout: "Abmelden"
|
61
54
|
powered_by: "Powered by %{active_admin} %{version}"
|
62
55
|
sidebars:
|
@@ -76,8 +69,6 @@ de:
|
|
76
69
|
blank_slate:
|
77
70
|
content: "Es gibt noch keine %{resource_name}."
|
78
71
|
link: "Erstellen"
|
79
|
-
dropdown_actions:
|
80
|
-
button_label: "Aktionen"
|
81
72
|
batch_actions:
|
82
73
|
button_label: "Stapelverarbeitung"
|
83
74
|
default_confirmation: "Bist du sicher, dass Sie dies tun wollen?"
|
@@ -141,14 +132,7 @@ de:
|
|
141
132
|
sign_in_with_omniauth_provider: "Anmeldung mit %{provider}"
|
142
133
|
resend_unlock_instructions: "Entsperrungsanweisung erneut senden"
|
143
134
|
resend_confirmation_instructions: "Bestätigungsanweisung erneut senden"
|
144
|
-
unsupported_browser:
|
145
|
-
headline: "ActiveAdmin unterstützt nicht länger den Internet Explorer in Version 8 oder niedriger."
|
146
|
-
recommendation: "Wir empfehlen die Nutzung von <a href=\"http://windows.microsoft.com/ie\">Internet Explorer</a>, <a href=\"https://chrome.google.com/\">Google Chrome</a>, oder <a href=\"https://mozilla.org/firefox/\">Firefox</a>."
|
147
|
-
turn_off_compatibility_view: "Wenn sie IE 9 oder neuer benutzen, stellen sie sicher das sie den <a href=\"https://support.microsoft.com/de-de/help/17471\">\"Kompatibilitätsansicht\" ausgeschaltet</a> haben."
|
148
135
|
access_denied:
|
149
136
|
message: "Sie haben nicht die Berechtigung um diese Aktion auszuführen."
|
150
137
|
index_list:
|
151
138
|
table: "Tabelle"
|
152
|
-
block: "Liste"
|
153
|
-
grid: "Gitter"
|
154
|
-
blog: "Blog"
|