katello 2.2.2 → 2.4.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of katello might be problematic. Click here for more details.
- data/app/assets/javascripts/katello/common/env_select.js +0 -12
- data/app/assets/javascripts/katello/common/experimental/katello-globals.module.js +0 -13
- data/app/assets/javascripts/katello/common/index.js +0 -17
- data/app/assets/javascripts/katello/common/jquery.jeditable.custominputs.js +0 -44
- data/app/assets/javascripts/katello/common/katello.common.js +0 -13
- data/app/assets/javascripts/katello/common/katello.global.js +0 -13
- data/app/assets/javascripts/katello/common/katello.js +2 -70
- data/app/assets/javascripts/katello/common/katello_object.js +0 -13
- data/app/assets/javascripts/katello/common/menu.js +0 -13
- data/app/assets/javascripts/katello/common/vendor.js +0 -13
- data/app/assets/javascripts/katello/containers/container.js +0 -13
- data/app/assets/javascripts/katello/hosts/activation_key_edit.js +3 -3
- data/app/assets/javascripts/katello/hosts/host_and_hostgroup_edit.js +18 -4
- data/app/assets/javascripts/katello/html5/index.js +0 -12
- data/app/assets/javascripts/katello/organizations/download_certificate.js +0 -13
- data/app/assets/javascripts/katello/providers/provider_redhat.js +2 -14
- data/app/assets/javascripts/katello/providers/redhat/index.js +0 -13
- data/app/assets/javascripts/katello/sync_management/index.js +0 -13
- data/app/assets/javascripts/katello/sync_management/sync_management.js +2 -17
- data/app/assets/javascripts/katello/widgets/auto_complete.js +0 -12
- data/app/assets/javascripts/katello/widgets/env_content_view_selector.js +0 -13
- data/app/assets/javascripts/katello/widgets/filtertable/filtertable.js +0 -12
- data/app/assets/javascripts/katello/widgets/jquery.jeditable.helpers.js +0 -38
- data/app/assets/javascripts/katello/widgets/one_panel.js +0 -13
- data/app/assets/javascripts/katello/widgets/path_selector.js +0 -14
- data/app/assets/javascripts/katello/widgets/subpanel_new.js +0 -12
- data/app/assets/javascripts/katello/widgets/tabs.js +0 -13
- data/app/assets/stylesheets/katello/_katello_colors.scss +0 -2
- data/app/assets/stylesheets/katello/_katello_mixins.scss +0 -13
- data/app/assets/stylesheets/katello/_overrides.scss +0 -12
- data/app/assets/stylesheets/katello/contents.scss +0 -1
- data/app/assets/stylesheets/katello/katello.scss +0 -71
- data/app/controllers/katello/api/api_controller.rb +0 -12
- data/app/controllers/katello/api/rhsm/candlepin_proxies_controller.rb +29 -21
- data/app/controllers/katello/api/v2/activation_keys_controller.rb +14 -37
- data/app/controllers/katello/api/v2/api_controller.rb +12 -14
- data/app/controllers/katello/api/v2/capsule_content_controller.rb +0 -12
- data/app/controllers/katello/api/v2/capsules_controller.rb +0 -12
- data/app/controllers/katello/api/v2/content_uploads_controller.rb +0 -12
- data/app/controllers/katello/api/v2/content_view_filter_rules_controller.rb +0 -12
- data/app/controllers/katello/api/v2/content_view_filters_controller.rb +28 -76
- data/app/controllers/katello/api/v2/content_view_puppet_modules_controller.rb +23 -25
- data/app/controllers/katello/api/v2/content_view_versions_controller.rb +19 -25
- data/app/controllers/katello/api/v2/content_views_controller.rb +30 -52
- data/app/controllers/katello/api/v2/docker_images_controller.rb +0 -13
- data/app/controllers/katello/api/v2/docker_tags_controller.rb +0 -13
- data/app/controllers/katello/api/v2/environments_controller.rb +0 -21
- data/app/controllers/katello/api/v2/errata_controller.rb +18 -15
- data/app/controllers/katello/api/v2/gpg_keys_controller.rb +1 -13
- data/app/controllers/katello/api/v2/host_collections_controller.rb +14 -55
- data/app/controllers/katello/api/v2/organizations_controller.rb +26 -22
- data/app/controllers/katello/api/v2/package_groups_controller.rb +21 -13
- data/app/controllers/katello/api/v2/packages_controller.rb +19 -15
- data/app/controllers/katello/api/v2/ping_controller.rb +0 -12
- data/app/controllers/katello/api/v2/products_bulk_actions_controller.rb +0 -12
- data/app/controllers/katello/api/v2/products_controller.rb +42 -44
- data/app/controllers/katello/api/v2/puppet_modules_controller.rb +0 -19
- data/app/controllers/katello/api/v2/repositories_bulk_actions_controller.rb +0 -12
- data/app/controllers/katello/api/v2/repositories_controller.rb +73 -48
- data/app/controllers/katello/api/v2/repository_sets_controller.rb +7 -17
- data/app/controllers/katello/api/v2/root_controller.rb +0 -12
- data/app/controllers/katello/api/v2/subscriptions_controller.rb +71 -99
- data/app/controllers/katello/api/v2/sync_controller.rb +0 -12
- data/app/controllers/katello/api/v2/sync_plans_controller.rb +2 -32
- data/app/controllers/katello/api/v2/system_errata_controller.rb +38 -13
- data/app/controllers/katello/api/v2/system_packages_controller.rb +1 -13
- data/app/controllers/katello/api/v2/systems_bulk_actions_controller.rb +9 -20
- data/app/controllers/katello/api/v2/systems_controller.rb +63 -54
- data/app/controllers/katello/api/v2/uebercerts_controller.rb +0 -12
- data/app/controllers/katello/application_controller.rb +2 -42
- data/app/controllers/katello/auto_complete_search_controller.rb +0 -12
- data/app/controllers/katello/concerns/api/api_controller.rb +0 -12
- data/app/controllers/katello/concerns/api/v2/bulk_systems_extensions.rb +10 -16
- data/app/controllers/katello/concerns/api/v2/hostgroups_controller_extensions.rb +0 -12
- data/app/controllers/katello/concerns/api/v2/hosts_controller_extensions.rb +0 -12
- data/app/controllers/katello/concerns/api/v2/repository_content_controller.rb +100 -72
- data/app/controllers/katello/concerns/authorization/api/v2/content_views_controller.rb +0 -12
- data/app/controllers/katello/concerns/containers/steps_controller_extensions.rb +0 -12
- data/app/controllers/katello/concerns/filtered_auto_complete_search.rb +4 -14
- data/app/controllers/katello/concerns/hosts_controller_extensions.rb +0 -12
- data/app/controllers/katello/concerns/operatingsystems_controller_extensions.rb +0 -12
- data/app/controllers/katello/concerns/organizations_controller_extensions.rb +0 -12
- data/app/controllers/katello/errata_controller.rb +0 -12
- data/app/controllers/katello/errors_controller.rb +0 -12
- data/app/controllers/katello/failed_authentication_controller.rb +0 -14
- data/app/controllers/katello/http_errors.rb +0 -12
- data/app/controllers/katello/organizations_controller.rb +0 -13
- data/app/controllers/katello/products_controller.rb +37 -43
- data/app/controllers/katello/providers_controller.rb +1 -14
- data/app/controllers/katello/sort_column_list.rb +0 -12
- data/app/controllers/katello/sync_management_controller.rb +1 -74
- data/app/helpers/katello/activation_keys_helper.rb +0 -12
- data/app/helpers/katello/application_helper.rb +1 -34
- data/app/helpers/katello/concerns/foreman_docker/container_steps_helper_extensions.rb +0 -12
- data/app/helpers/katello/errata_mailer_helper.rb +6 -12
- data/app/helpers/katello/host_collection_events_helper.rb +0 -12
- data/app/helpers/katello/hosts_and_hostgroups_helper.rb +0 -12
- data/app/helpers/katello/katello_form_builder.rb +0 -12
- data/app/helpers/katello/katello_url_helper.rb +0 -12
- data/app/helpers/katello/katello_urls_helper.rb +1 -13
- data/app/helpers/katello/layout_helper.rb +6 -12
- data/app/helpers/katello/organizations_helper.rb +0 -12
- data/app/helpers/katello/packages_helper.rb +0 -12
- data/app/helpers/katello/products_helper.rb +0 -12
- data/app/helpers/katello/providers_helper.rb +2 -14
- data/app/helpers/katello/repositories_helper.rb +0 -12
- data/app/helpers/katello/subscriptions_helper.rb +0 -12
- data/app/helpers/katello/sync_management_helper.rb +0 -12
- data/app/helpers/katello/system_events_helper.rb +0 -12
- data/app/helpers/katello/system_packages_helper.rb +0 -12
- data/app/helpers/katello/taxonomy_helper.rb +0 -12
- data/app/helpers/katello/translation_helper.rb +0 -12
- data/app/lib/actions/abstract_async_task.rb +0 -12
- data/app/lib/actions/candlepin/abstract.rb +2 -13
- data/app/lib/actions/candlepin/abstract_async_task.rb +15 -12
- data/app/lib/actions/candlepin/activation_key/create.rb +0 -12
- data/app/lib/actions/candlepin/activation_key/destroy.rb +0 -12
- data/app/lib/actions/candlepin/activation_key/update.rb +0 -12
- data/app/lib/actions/candlepin/candlepin_listening_service.rb +12 -24
- data/app/lib/actions/candlepin/consumer/auto_attach_subscriptions.rb +0 -12
- data/app/lib/actions/candlepin/consumer/create.rb +3 -13
- data/app/lib/actions/candlepin/consumer/destroy.rb +0 -12
- data/app/lib/actions/candlepin/consumer/update.rb +0 -12
- data/app/lib/actions/candlepin/environment/create.rb +0 -12
- data/app/lib/actions/candlepin/environment/destroy.rb +0 -12
- data/app/lib/actions/candlepin/environment/set_content.rb +27 -29
- data/app/lib/actions/candlepin/import_pool_handler.rb +82 -0
- data/app/lib/actions/candlepin/listen_on_candlepin_events.rb +43 -33
- data/app/lib/actions/candlepin/owner/auto_attach.rb +0 -12
- data/app/lib/actions/candlepin/owner/create.rb +0 -12
- data/app/lib/actions/candlepin/owner/destroy.rb +0 -12
- data/app/lib/actions/candlepin/product/content_add.rb +0 -12
- data/app/lib/actions/candlepin/product/content_create.rb +0 -12
- data/app/lib/actions/candlepin/product/content_destroy.rb +0 -12
- data/app/lib/actions/candlepin/product/content_remove.rb +0 -12
- data/app/lib/actions/candlepin/product/content_update.rb +0 -12
- data/app/lib/actions/candlepin/product/create.rb +0 -12
- data/app/lib/actions/candlepin/product/create_unlimited_subscription.rb +0 -12
- data/app/lib/actions/candlepin/product/delete_pools.rb +0 -12
- data/app/lib/actions/candlepin/product/delete_subscriptions.rb +0 -12
- data/app/lib/actions/candlepin/product/destroy.rb +0 -12
- data/app/lib/actions/candlepin/product/update.rb +0 -13
- data/app/lib/actions/elastic_search/abstract.rb +1 -12
- data/app/lib/actions/elastic_search/provider/reindex_subscriptions.rb +0 -12
- data/app/lib/actions/elastic_search/reindex.rb +0 -12
- data/app/lib/actions/elastic_search/reindex_on_association_change.rb +0 -12
- data/app/lib/actions/elastic_search/repository/filtered_index_content.rb +2 -14
- data/app/lib/actions/elastic_search/repository/index_content.rb +0 -12
- data/app/lib/actions/elastic_search/repository/remove_packages.rb +0 -12
- data/app/lib/actions/foreman/environment/destroy.rb +0 -12
- data/app/lib/actions/helpers/presenter.rb +0 -12
- data/app/lib/actions/katello/activation_key/create.rb +1 -16
- data/app/lib/actions/katello/activation_key/destroy.rb +0 -13
- data/app/lib/actions/katello/activation_key/reassign.rb +0 -13
- data/app/lib/actions/katello/activation_key/update.rb +0 -13
- data/app/lib/actions/katello/capsule_content/configure_capsule.rb +0 -12
- data/app/lib/actions/katello/capsule_content/manage_bound_repositories.rb +0 -12
- data/app/lib/actions/katello/capsule_content/sync.rb +0 -12
- data/app/lib/actions/katello/capsule_content/update_without_content.rb +0 -12
- data/app/lib/actions/katello/content_view/add_to_environment.rb +0 -12
- data/app/lib/actions/katello/content_view/capsule_generate_and_sync.rb +0 -12
- data/app/lib/actions/katello/content_view/create.rb +0 -14
- data/app/lib/actions/katello/content_view/destroy.rb +0 -13
- data/app/lib/actions/katello/content_view/environment_create.rb +1 -13
- data/app/lib/actions/katello/content_view/errata_mail.rb +6 -12
- data/app/lib/actions/katello/content_view/incremental_updates.rb +0 -12
- data/app/lib/actions/katello/content_view/node_metadata_generate.rb +0 -12
- data/app/lib/actions/katello/content_view/presenters/incremental_updates_presenter.rb +2 -14
- data/app/lib/actions/katello/content_view/promote.rb +0 -12
- data/app/lib/actions/katello/content_view/publish.rb +3 -13
- data/app/lib/actions/katello/content_view/remove.rb +3 -17
- data/app/lib/actions/katello/content_view/remove_from_environment.rb +0 -12
- data/app/lib/actions/katello/content_view/remove_version.rb +1 -14
- data/app/lib/actions/katello/content_view/update.rb +0 -32
- data/app/lib/actions/katello/content_view/update_environment.rb +0 -12
- data/app/lib/actions/katello/content_view_environment/destroy.rb +0 -12
- data/app/lib/actions/katello/content_view_environment/reassign_objects.rb +0 -12
- data/app/lib/actions/katello/content_view_puppet_environment/clear.rb +0 -12
- data/app/lib/actions/katello/content_view_puppet_environment/clone.rb +2 -13
- data/app/lib/actions/katello/content_view_puppet_environment/clone_content.rb +9 -17
- data/app/lib/actions/katello/content_view_puppet_environment/create.rb +0 -14
- data/app/lib/actions/katello/content_view_puppet_environment/create_for_version.rb +0 -12
- data/app/lib/actions/katello/content_view_puppet_environment/destroy.rb +0 -13
- data/app/lib/actions/katello/content_view_puppet_module/destroy.rb +0 -12
- data/app/lib/actions/katello/content_view_version/destroy.rb +7 -15
- data/app/lib/actions/katello/content_view_version/incremental_update.rb +3 -15
- data/app/lib/actions/katello/environment/destroy.rb +0 -12
- data/app/lib/actions/katello/environment/library_create.rb +0 -12
- data/app/lib/actions/katello/foreman/abstract.rb +0 -12
- data/app/lib/actions/katello/foreman/content_update.rb +10 -21
- data/app/lib/actions/katello/organization/auto_attach_subscriptions.rb +0 -12
- data/app/lib/actions/katello/organization/create.rb +1 -13
- data/app/lib/actions/katello/organization/destroy.rb +1 -14
- data/app/lib/actions/katello/product/content_create.rb +0 -12
- data/app/lib/actions/katello/product/content_destroy.rb +0 -12
- data/app/lib/actions/katello/product/create.rb +0 -14
- data/app/lib/actions/katello/product/destroy.rb +5 -23
- data/app/lib/actions/katello/product/repositories_gpg_reset.rb +0 -12
- data/app/lib/actions/katello/product/update.rb +2 -16
- data/app/lib/actions/katello/provider/destroy.rb +0 -13
- data/app/lib/actions/katello/provider/manifest_delete.rb +0 -12
- data/app/lib/actions/katello/provider/manifest_import.rb +0 -12
- data/app/lib/actions/katello/provider/manifest_refresh.rb +0 -12
- data/app/lib/actions/katello/provider/update.rb +38 -0
- data/app/lib/actions/katello/repository/capsule_generate_and_sync.rb +0 -12
- data/app/lib/actions/katello/repository/clear.rb +0 -12
- data/app/lib/actions/katello/repository/clone_docker_content.rb +0 -12
- data/app/lib/actions/katello/repository/clone_to_environment.rb +0 -12
- data/app/lib/actions/katello/repository/clone_to_version.rb +0 -12
- data/app/lib/actions/katello/repository/clone_yum_content.rb +1 -12
- data/app/lib/actions/katello/repository/correct_checksum.rb +0 -12
- data/app/lib/actions/katello/repository/create.rb +0 -14
- data/app/lib/actions/katello/repository/destroy.rb +9 -14
- data/app/lib/actions/katello/repository/destroy_medium.rb +12 -0
- data/app/lib/actions/katello/repository/discover.rb +25 -24
- data/app/lib/actions/katello/repository/errata_mail.rb +6 -12
- data/app/lib/actions/katello/repository/finish_upload.rb +0 -12
- data/app/lib/actions/katello/repository/import_upload.rb +0 -12
- data/app/lib/actions/katello/repository/index_errata.rb +0 -12
- data/app/lib/actions/katello/repository/index_package_groups.rb +18 -0
- data/app/lib/actions/katello/repository/metadata_generate.rb +0 -12
- data/app/lib/actions/katello/repository/node_metadata_generate.rb +0 -12
- data/app/lib/actions/katello/repository/remove_content.rb +14 -25
- data/app/lib/actions/katello/repository/sync.rb +6 -17
- data/app/lib/actions/katello/repository/update.rb +3 -18
- data/app/lib/actions/katello/repository/update_media.rb +0 -12
- data/app/lib/actions/katello/repository/upload_files.rb +0 -12
- data/app/lib/actions/katello/repository_set/disable_repository.rb +16 -19
- data/app/lib/actions/katello/repository_set/enable_repository.rb +14 -20
- data/app/lib/actions/katello/repository_set/scan_cdn.rb +43 -20
- data/app/lib/actions/katello/sync_plan/add_products.rb +0 -12
- data/app/lib/actions/katello/sync_plan/destroy.rb +0 -12
- data/app/lib/actions/katello/sync_plan/remove_products.rb +0 -12
- data/app/lib/actions/katello/sync_plan/update.rb +0 -12
- data/app/lib/actions/katello/system/activation_keys.rb +0 -12
- data/app/lib/actions/katello/system/auto_attach_subscriptions.rb +2 -14
- data/app/lib/actions/katello/system/create.rb +2 -13
- data/app/lib/actions/katello/system/destroy.rb +0 -12
- data/app/lib/actions/katello/system/erratum/applicable_errata_install.rb +0 -12
- data/app/lib/actions/katello/system/erratum/install.rb +0 -12
- data/app/lib/actions/katello/system/generate_applicability.rb +1 -13
- data/app/lib/actions/katello/system/host_destroy.rb +0 -12
- data/app/lib/actions/katello/system/package/install.rb +0 -12
- data/app/lib/actions/katello/system/package/remove.rb +0 -12
- data/app/lib/actions/katello/system/package/update.rb +0 -12
- data/app/lib/actions/katello/system/package_group/install.rb +0 -12
- data/app/lib/actions/katello/system/package_group/remove.rb +0 -12
- data/app/lib/actions/katello/system/reassign.rb +0 -12
- data/app/lib/actions/katello/system/update.rb +4 -16
- data/app/lib/actions/middleware/backend_services_check.rb +40 -0
- data/app/lib/actions/middleware/candlepin_services_check.rb +9 -0
- data/app/lib/actions/middleware/elasticsearch_services_check.rb +9 -0
- data/app/lib/actions/middleware/keep_locale.rb +0 -12
- data/app/lib/actions/middleware/propagate_candlepin_errors.rb +0 -12
- data/app/lib/actions/middleware/pulp_services_check.rb +9 -0
- data/app/lib/actions/middleware/record_fixtures.rb +0 -12
- data/app/lib/actions/middleware/remote_action.rb +3 -15
- data/app/lib/actions/pulp/abstract.rb +1 -12
- data/app/lib/actions/pulp/abstract_async_task.rb +19 -12
- data/app/lib/actions/pulp/consumer.rb +0 -12
- data/app/lib/actions/pulp/consumer/abstract_content_action.rb +0 -12
- data/app/lib/actions/pulp/consumer/abstract_node_distributor_task.rb +0 -12
- data/app/lib/actions/pulp/consumer/abstract_sync_node_task.rb +0 -12
- data/app/lib/actions/pulp/consumer/activate_node.rb +0 -12
- data/app/lib/actions/pulp/consumer/bind_node_distributor.rb +0 -12
- data/app/lib/actions/pulp/consumer/content_install.rb +0 -12
- data/app/lib/actions/pulp/consumer/content_uninstall.rb +0 -12
- data/app/lib/actions/pulp/consumer/content_update.rb +0 -12
- data/app/lib/actions/pulp/consumer/create.rb +0 -12
- data/app/lib/actions/pulp/consumer/deactivate_node.rb +0 -12
- data/app/lib/actions/pulp/consumer/destroy.rb +0 -12
- data/app/lib/actions/pulp/consumer/generate_applicability.rb +0 -12
- data/app/lib/actions/pulp/consumer/sync_node.rb +0 -12
- data/app/lib/actions/pulp/consumer/unbind_node_distributor.rb +0 -12
- data/app/lib/actions/pulp/consumer/update.rb +0 -12
- data/app/lib/actions/pulp/content_view_puppet_environment/index_content.rb +17 -0
- data/app/lib/actions/pulp/expect_one_task.rb +0 -12
- data/app/lib/actions/pulp/repos/update.rb +0 -13
- data/app/lib/actions/pulp/repository/abstract_copy_content.rb +0 -12
- data/app/lib/actions/pulp/repository/abstract_remove_content.rb +0 -12
- data/app/lib/actions/pulp/repository/associate_distributor.rb +0 -12
- data/app/lib/actions/pulp/repository/copy_distribution.rb +0 -12
- data/app/lib/actions/pulp/repository/copy_docker_image.rb +0 -12
- data/app/lib/actions/pulp/repository/copy_docker_tag.rb +0 -13
- data/app/lib/actions/pulp/repository/copy_errata.rb +0 -12
- data/app/lib/actions/pulp/repository/copy_package_group.rb +0 -12
- data/app/lib/actions/pulp/repository/copy_puppet_module.rb +0 -12
- data/app/lib/actions/pulp/repository/copy_rpm.rb +1 -13
- data/app/lib/actions/pulp/repository/copy_yum_metadata_file.rb +0 -12
- data/app/lib/actions/pulp/repository/create.rb +0 -12
- data/app/lib/actions/pulp/repository/create_in_plan.rb +0 -12
- data/app/lib/actions/pulp/repository/create_upload_request.rb +0 -12
- data/app/lib/actions/pulp/repository/delete_upload_request.rb +0 -12
- data/app/lib/actions/pulp/repository/destroy.rb +0 -12
- data/app/lib/actions/pulp/repository/distributor_publish.rb +0 -12
- data/app/lib/actions/pulp/repository/import_upload.rb +0 -12
- data/app/lib/actions/pulp/repository/presenters/abstract_sync_presenter.rb +0 -12
- data/app/lib/actions/pulp/repository/presenters/docker_presenter.rb +1 -13
- data/app/lib/actions/pulp/repository/presenters/iso_presenter.rb +0 -12
- data/app/lib/actions/pulp/repository/presenters/puppet_presenter.rb +6 -15
- data/app/lib/actions/pulp/repository/presenters/yum_presenter.rb +1 -13
- data/app/lib/actions/pulp/repository/purge_empty_errata.rb +0 -12
- data/app/lib/actions/pulp/repository/purge_empty_package_groups.rb +3 -16
- data/app/lib/actions/pulp/repository/refresh.rb +0 -12
- data/app/lib/actions/pulp/repository/refresh_distributor.rb +0 -12
- data/app/lib/actions/pulp/repository/regenerate_applicability.rb +0 -12
- data/app/lib/actions/pulp/repository/remove_distribution.rb +0 -12
- data/app/lib/actions/pulp/repository/remove_docker_image.rb +0 -12
- data/app/lib/actions/pulp/repository/remove_errata.rb +0 -12
- data/app/lib/actions/pulp/repository/remove_package_group.rb +0 -12
- data/app/lib/actions/pulp/repository/remove_puppet_module.rb +0 -12
- data/app/lib/actions/pulp/repository/remove_rpm.rb +1 -13
- data/app/lib/actions/pulp/repository/remove_schedule.rb +0 -11
- data/app/lib/actions/pulp/repository/sync.rb +5 -17
- data/app/lib/actions/pulp/repository/update_importer.rb +0 -12
- data/app/lib/actions/pulp/repository/update_schedule.rb +0 -11
- data/app/lib/actions/pulp/repository/upload_file.rb +1 -13
- data/app/lib/katello/api/constraints/activation_key_constraint.rb +0 -12
- data/app/lib/katello/api/v2/error_handling.rb +5 -12
- data/app/lib/katello/bulk_actions.rb +2 -16
- data/app/lib/katello/concerns/renderer_extensions.rb +21 -0
- data/app/lib/katello/errors.rb +5 -13
- data/app/lib/katello/foreman.rb +0 -12
- data/app/lib/katello/glue/queue.rb +0 -12
- data/app/lib/katello/glue/task.rb +0 -12
- data/app/lib/katello/http_resource.rb +2 -14
- data/app/lib/katello/lazy_accessor.rb +2 -14
- data/app/lib/katello/mapping.rb +0 -12
- data/app/lib/katello/repo_discovery.rb +27 -40
- data/app/lib/katello/resources/candlepin.rb +23 -34
- data/app/lib/katello/resources/cdn.rb +42 -18
- data/app/lib/katello/util/cdn_var_substitutor.rb +21 -16
- data/app/lib/katello/util/data.rb +0 -12
- data/app/lib/katello/util/errata.rb +0 -12
- data/app/lib/katello/util/filter_clause_generator.rb +0 -12
- data/app/lib/katello/util/model.rb +0 -12
- data/app/lib/katello/util/package.rb +21 -51
- data/app/lib/katello/util/package_clause_generator.rb +1 -13
- data/app/lib/katello/util/package_filter.rb +16 -62
- data/app/lib/katello/util/report_table.rb +0 -12
- data/app/lib/katello/util/search.rb +0 -23
- data/app/lib/katello/util/support.rb +13 -12
- data/app/lib/katello/util/task_status.rb +0 -12
- data/app/lib/katello/util/thread_session.rb +10 -22
- data/app/lib/katello/util/url_matcher.rb +0 -12
- data/app/lib/katello/validators/content_validator.rb +0 -12
- data/app/lib/katello/validators/content_view_environment_validator.rb +0 -12
- data/app/lib/katello/validators/content_view_erratum_filter_rule_validator.rb +0 -12
- data/app/lib/katello/validators/content_view_filter_version_validator.rb +0 -12
- data/app/lib/katello/validators/content_view_puppet_module_validator.rb +4 -15
- data/app/lib/katello/validators/gpg_key_content_validator.rb +0 -11
- data/app/lib/katello/validators/katello_label_format_validator.rb +0 -12
- data/app/lib/katello/validators/katello_name_format_validator.rb +0 -11
- data/app/lib/katello/validators/katello_url_format_validator.rb +0 -12
- data/app/lib/katello/validators/library_presence_validator.rb +0 -12
- data/app/lib/katello/validators/no_trailing_space_validator.rb +0 -12
- data/app/lib/katello/validators/non_library_environment_validator.rb +0 -12
- data/app/lib/katello/validators/not_in_library_validator.rb +0 -12
- data/app/lib/katello/validators/path_descendents_validator.rb +0 -12
- data/app/lib/katello/validators/prior_validator.rb +0 -12
- data/app/lib/katello/validators/product_unique_attribute_validator.rb +1 -15
- data/app/lib/katello/validators/repo_disablement_validator.rb +0 -12
- data/app/lib/katello/validators/repository_unique_attribute_validator.rb +0 -12
- data/app/lib/katello/validators/self_reference_environment_validator.rb +0 -12
- data/app/lib/katello/validators/unique_field_in_org.rb +0 -12
- data/app/mailers/katello/errata_mailer.rb +0 -12
- data/app/models/katello/activation_key.rb +23 -46
- data/app/models/katello/authorization/activation_key.rb +0 -13
- data/app/models/katello/authorization/content_view.rb +0 -13
- data/app/models/katello/authorization/content_view_environment.rb +0 -12
- data/app/models/katello/authorization/content_view_history.rb +14 -0
- data/app/models/katello/authorization/content_view_version.rb +0 -12
- data/app/models/katello/authorization/gpg_key.rb +0 -13
- data/app/models/katello/authorization/host_collection.rb +0 -13
- data/app/models/katello/authorization/lifecycle_environment.rb +0 -13
- data/app/models/katello/authorization/organization.rb +0 -13
- data/app/models/katello/authorization/pool.rb +13 -0
- data/app/models/katello/authorization/product.rb +0 -13
- data/app/models/katello/authorization/repository.rb +8 -16
- data/app/models/katello/authorization/subscription.rb +17 -0
- data/app/models/katello/authorization/sync_plan.rb +0 -13
- data/app/models/katello/authorization/system.rb +0 -13
- data/app/models/katello/candlepin/content.rb +28 -46
- data/app/models/katello/candlepin/product_content.rb +5 -12
- data/app/models/katello/capsule_lifecycle_environment.rb +0 -12
- data/app/models/katello/concerns/container_extensions.rb +0 -12
- data/app/models/katello/concerns/docker_container_wizard_state_extensions.rb +0 -12
- data/app/models/katello/concerns/environment_extensions.rb +7 -13
- data/app/models/katello/concerns/host_managed_extensions.rb +17 -11
- data/app/models/katello/concerns/hostgroup_extensions.rb +0 -11
- data/app/models/katello/concerns/location_extensions.rb +1 -13
- data/app/models/katello/concerns/medium_extensions.rb +14 -15
- data/app/models/katello/concerns/operatingsystem_extensions.rb +29 -0
- data/app/models/katello/concerns/organization_extensions.rb +21 -53
- data/app/models/katello/{glue/pulp/pulp_content_unit.rb → concerns/pulp_database_unit.rb} +23 -42
- data/app/models/katello/concerns/redhat_extensions.rb +13 -54
- data/app/models/katello/concerns/smart_proxy_extensions.rb +1 -13
- data/app/models/katello/concerns/user_extensions.rb +2 -190
- data/app/models/katello/content_view.rb +51 -81
- data/app/models/katello/content_view_component.rb +0 -12
- data/app/models/katello/content_view_environment.rb +4 -20
- data/app/models/katello/content_view_erratum_filter.rb +0 -14
- data/app/models/katello/content_view_erratum_filter_rule.rb +1 -13
- data/app/models/katello/content_view_filter.rb +20 -27
- data/app/models/katello/content_view_history.rb +42 -14
- data/app/models/katello/content_view_package_filter.rb +11 -23
- data/app/models/katello/content_view_package_filter_rule.rb +1 -13
- data/app/models/katello/content_view_package_group_filter.rb +3 -19
- data/app/models/katello/content_view_package_group_filter_rule.rb +1 -13
- data/app/models/katello/content_view_puppet_environment.rb +19 -18
- data/app/models/katello/content_view_puppet_environment_puppet_module.rb +13 -0
- data/app/models/katello/content_view_puppet_module.rb +18 -36
- data/app/models/katello/content_view_repository.rb +0 -12
- data/app/models/katello/content_view_version.rb +59 -26
- data/app/models/katello/content_view_version_component.rb +0 -12
- data/app/models/katello/cp_consumer_user.rb +0 -12
- data/app/models/katello/docker_image.rb +2 -14
- data/app/models/katello/docker_tag.rb +5 -13
- data/app/models/katello/erratum.rb +54 -34
- data/app/models/katello/erratum_bugzilla.rb +0 -13
- data/app/models/katello/erratum_cve.rb +0 -13
- data/app/models/katello/erratum_package.rb +0 -13
- data/app/models/katello/ext/indexed_model.rb +1 -13
- data/app/models/katello/ext/label_from_name.rb +0 -12
- data/app/models/katello/glue.rb +1 -13
- data/app/models/katello/glue/candlepin/activation_key.rb +20 -18
- data/app/models/katello/glue/candlepin/candlepin_object.rb +52 -0
- data/app/models/katello/glue/candlepin/consumer.rb +23 -56
- data/app/models/katello/glue/candlepin/content.rb +1 -13
- data/app/models/katello/glue/candlepin/environment.rb +0 -12
- data/app/models/katello/glue/candlepin/owner.rb +3 -23
- data/app/models/katello/glue/candlepin/owner_info.rb +0 -12
- data/app/models/katello/glue/candlepin/pool.rb +84 -155
- data/app/models/katello/glue/candlepin/product.rb +0 -27
- data/app/models/katello/glue/candlepin/subscription.rb +58 -0
- data/app/models/katello/glue/elastic_search/backend_indexed_model.rb +2 -13
- data/app/models/katello/glue/elastic_search/content_view_erratum_filter_rule.rb +0 -12
- data/app/models/katello/glue/elastic_search/content_view_history.rb +1 -13
- data/app/models/katello/glue/elastic_search/content_view_package_filter_rule.rb +0 -12
- data/app/models/katello/glue/elastic_search/content_view_package_group_filter_rule.rb +0 -12
- data/app/models/katello/glue/elastic_search/facet_item.rb +0 -12
- data/app/models/katello/glue/elastic_search/host_collection.rb +0 -33
- data/app/models/katello/glue/elastic_search/items.rb +1 -13
- data/app/models/katello/glue/elastic_search/job.rb +0 -12
- data/app/models/katello/glue/elastic_search/system.rb +0 -25
- data/app/models/katello/glue/elastic_search/task_status.rb +0 -12
- data/app/models/katello/glue/provider.rb +31 -122
- data/app/models/katello/glue/pulp/consumer.rb +2 -26
- data/app/models/katello/glue/pulp/consumer_group.rb +0 -12
- data/app/models/katello/glue/pulp/pulp_errors.rb +0 -12
- data/app/models/katello/glue/pulp/repo.rb +116 -173
- data/app/models/katello/glue/pulp/repos.rb +40 -89
- data/app/models/katello/glue/pulp/simple_package.rb +0 -12
- data/app/models/katello/gpg_key.rb +1 -13
- data/app/models/katello/hash_util.rb +0 -12
- data/app/models/katello/host_collection.rb +17 -15
- data/app/models/katello/hypervisor.rb +1 -13
- data/app/models/katello/job.rb +1 -13
- data/app/models/katello/job_task.rb +0 -12
- data/app/models/katello/key_host_collection.rb +0 -13
- data/app/models/katello/kt_environment.rb +9 -35
- data/app/models/katello/model.rb +0 -12
- data/app/models/katello/package_group.rb +41 -15
- data/app/models/katello/ping.rb +66 -52
- data/app/models/katello/pool.rb +44 -31
- data/app/models/katello/pool_activation_key.rb +6 -0
- data/app/models/katello/product.rb +37 -35
- data/app/models/katello/provider.rb +9 -28
- data/app/models/katello/proxy_association_owner.rb +0 -12
- data/app/models/katello/pulp_sync_status.rb +1 -13
- data/app/models/katello/pulp_task_status.rb +1 -13
- data/app/models/katello/puppet_module.rb +56 -16
- data/app/models/katello/repository.rb +129 -64
- data/app/models/katello/repository_docker_image.rb +0 -13
- data/app/models/katello/repository_erratum.rb +0 -13
- data/app/models/katello/repository_package_group.rb +8 -0
- data/app/models/katello/repository_puppet_module.rb +9 -0
- data/app/models/katello/repository_rpm.rb +9 -0
- data/app/models/katello/rpm.rb +62 -0
- data/app/models/katello/subscription.rb +17 -0
- data/app/models/katello/subscription_product.rb +7 -0
- data/app/models/katello/sync_plan.rb +0 -12
- data/app/models/katello/system.rb +55 -36
- data/app/models/katello/system_activation_key.rb +0 -12
- data/app/models/katello/system_erratum.rb +0 -13
- data/app/models/katello/system_host_collection.rb +0 -13
- data/app/models/katello/system_repository.rb +0 -13
- data/app/models/katello/task_status.rb +1 -13
- data/app/models/setting/katello.rb +2 -1
- data/app/overrides/add_activation_keys_input.rb +4 -4
- data/app/overrides/add_organization_attributes.rb +4 -4
- data/app/overrides/add_smart_proxy_form.rb +1 -1
- data/app/overrides/foreman/activation_keys/_host_environment_select.html.erb +2 -2
- data/app/overrides/foreman/organizations/_edit_override.html.erb +1 -1
- data/app/overrides/override_taxonomy_actions.rb +1 -1
- data/app/presenters/katello/content_view_version_compare_presenter.rb +0 -12
- data/app/presenters/katello/relation_presenter.rb +0 -12
- data/app/presenters/katello/repository_presenter.rb +0 -12
- data/app/presenters/katello/sync_status_presenter.rb +71 -0
- data/app/services/client/cert.rb +0 -12
- data/app/services/katello/authentication/client_authentication.rb +1 -13
- data/app/services/katello/pulp/docker_image.rb +7 -0
- data/app/services/katello/pulp/erratum.rb +11 -0
- data/app/services/katello/pulp/package_group.rb +14 -0
- data/app/services/katello/pulp/pulp_content_unit.rb +57 -0
- data/app/services/katello/pulp/puppet_module.rb +16 -0
- data/app/services/katello/pulp/rpm.rb +41 -0
- data/app/services/katello/puppet_class_importer_extensions.rb +0 -11
- data/app/views/dashboard/_content_views_widget.html.erb +34 -0
- data/app/views/dashboard/_errata_widget.html.erb +35 -0
- data/app/views/dashboard/_host_collection_widget.html.erb +38 -0
- data/app/views/dashboard/_subscription_status_widget.html.erb +32 -0
- data/app/views/dashboard/_subscription_widget.html.erb +37 -0
- data/app/views/dashboard/_sync_widget.html.erb +32 -0
- data/app/views/foreman/unattended/kickstart-katello.erb +1 -1
- data/app/views/foreman/unattended/snippets/_subscription_manager_registration.erb +0 -5
- data/app/views/katello/api/v2/activation_keys/product_content.json.rabl +12 -2
- data/app/views/katello/api/v2/content_view_filters/show.json.rabl +1 -1
- data/app/views/katello/api/v2/content_view_histories/show.json.rabl +4 -0
- data/app/views/katello/api/v2/content_view_puppet_modules/create.json.rabl +3 -0
- data/app/views/katello/api/v2/content_view_puppet_modules/index.json.rabl +5 -1
- data/app/views/katello/api/v2/content_view_puppet_modules/show.json.rabl +0 -4
- data/app/views/katello/api/v2/content_view_versions/base.json.rabl +4 -0
- data/app/views/katello/api/v2/content_view_versions/index.json.rabl +5 -2
- data/app/views/katello/api/v2/content_views/_content_view.json.rabl +5 -1
- data/app/views/katello/api/v2/content_views/puppet_modules.json.rabl +1 -1
- data/app/views/katello/api/v2/environments/show.json.rabl +2 -2
- data/app/views/katello/api/v2/layouts/collection.json.erb +1 -0
- data/app/views/katello/api/v2/layouts/resource.json.erb +5 -0
- data/app/views/katello/api/v2/organizations/show.json.rabl +2 -3
- data/app/views/katello/api/v2/package_groups/backend.json.rabl +4 -0
- data/app/views/katello/api/v2/package_groups/base.json.rabl +19 -0
- data/app/views/katello/api/v2/package_groups/index.json.rabl +1 -1
- data/app/views/katello/api/v2/package_groups/show.json.rabl +2 -22
- data/app/views/katello/api/v2/packages/backend.json.rabl +8 -0
- data/app/views/katello/api/v2/packages/base.json.rabl +5 -0
- data/app/views/katello/api/v2/packages/index.json.rabl +5 -1
- data/app/views/katello/api/v2/packages/show.json.rabl +2 -5
- data/app/views/katello/api/v2/products/base.json.rabl +1 -1
- data/app/views/katello/api/v2/puppet_modules/backend.json.rabl +7 -0
- data/app/views/katello/api/v2/puppet_modules/base.json.rabl +8 -0
- data/app/views/katello/api/v2/puppet_modules/index.json.rabl +5 -1
- data/app/views/katello/api/v2/puppet_modules/name.json.rabl +1 -2
- data/app/views/katello/api/v2/puppet_modules/show.json.rabl +2 -17
- data/app/views/katello/api/v2/repositories/base.json.rabl +34 -0
- data/app/views/katello/api/v2/repositories/index.json.rabl +5 -1
- data/app/views/katello/api/v2/repositories/show.json.rabl +10 -30
- data/app/views/katello/api/v2/subscriptions/base.json.rabl +15 -0
- data/app/views/katello/api/v2/subscriptions/index.json.rabl +6 -1
- data/app/views/katello/api/v2/subscriptions/show.json.rabl +11 -23
- data/app/views/katello/api/v2/{systems/errata.json.rabl → system_errata/index.json.rabl} +1 -1
- data/app/views/katello/api/v2/systems/_content.json.rabl +17 -0
- data/app/views/katello/api/v2/systems/content_override.json.rabl +3 -0
- data/app/views/katello/api/v2/systems/product_content.json.rabl +3 -0
- data/app/views/katello/api/v2/systems/show.json.rabl +0 -4
- data/app/views/katello/errata_mailer/_erratum.html.erb +10 -0
- data/app/views/katello/errata_mailer/sync_errata.html.erb +3 -3
- data/app/views/katello/layouts/katello.html.erb +23 -0
- data/app/views/katello/providers/redhat/_enable_errors.html.erb +12 -0
- data/app/views/katello/providers/redhat/_errors.html.erb +19 -0
- data/app/views/katello/providers/redhat/_repo_sets.html.erb +56 -0
- data/app/views/katello/providers/redhat/_repos.html.erb +56 -0
- data/app/views/katello/providers/redhat/_tab.html.erb +9 -0
- data/app/views/katello/providers/redhat/show.html.erb +35 -0
- data/app/views/katello/sync_management/_children.html.erb +14 -0
- data/app/views/katello/sync_management/_controls.html.erb +30 -0
- data/app/views/katello/sync_management/_product.html.erb +27 -0
- data/app/views/katello/sync_management/_products.html.erb +40 -0
- data/app/views/katello/sync_management/_repo.html.erb +43 -0
- data/app/views/katello/sync_management/_sync_plans.html.erb +23 -0
- data/app/views/katello/sync_management/index.html.erb +26 -0
- data/config/initializers/inflections.rb +0 -1
- data/config/initializers/runcible.rb +1 -1
- data/config/katello.yaml.example +91 -0
- data/config/katello.yml +223 -16
- data/config/katello_defaults.yml +0 -236
- data/config/routes.rb +1 -129
- data/config/routes/api/v2.rb +45 -29
- data/config/routes/overrides.rb +1 -13
- data/db/migrate/20140626204657_add_unlimited_to_activation_keys.rb +14 -10
- data/db/migrate/20140626204902_add_unlimited_to_host_collection.rb +14 -10
- data/db/migrate/20141003210742_add_docker_container_registry_url_to_providers.rb +0 -2
- data/db/migrate/20141209103005_disown_foreman_templates.rb +5 -1
- data/db/migrate/20150224083608_remove_docker_registry_url.rb +9 -0
- data/db/migrate/20150423134004_add_content_host_id_to_smart_proxy.rb +0 -15
- data/db/migrate/20150505180030_change_errata_timestamps_to_dates.rb +15 -0
- data/db/migrate/20150507131145_update_composite_default_for_content_view.rb +14 -0
- data/db/migrate/20150602153753_remove_help_tips.rb +16 -0
- data/db/migrate/20150602153754_remove_search_histories.rb +17 -0
- data/db/migrate/20150602153755_remove_search_favorites.rb +17 -0
- data/db/migrate/20150602153756_remove_user_notices.rb +16 -0
- data/db/migrate/20150602153757_remove_notices.rb +20 -0
- data/db/migrate/20150603045418_remove_user_fields.rb +18 -0
- data/db/migrate/20150606021722_create_puppet_modules.rb +58 -0
- data/db/migrate/20150611140455_remove_default_and_custom_info.rb +5 -0
- data/db/migrate/20150613134559_add_rpm.rb +38 -0
- data/db/migrate/20150623135424_create_package_groups.rb +29 -0
- data/db/migrate/20150715142649_assign_content_host_to_smart_proxies.rb +21 -0
- data/db/migrate/20150717142559_add_distributions_to_repository.rb +10 -0
- data/db/migrate/20150813185339_create_subscriptions.rb +82 -0
- data/db/migrate/20150901213759_remove_distributors.rb +25 -0
- data/db/migrate/20150902164543_remove_apply_info_task_id_from_taxonomies.rb +5 -0
- data/db/migrate/20150908222711_drop_marketing_engineering_products.rb +21 -0
- data/db/seeds.rb +3 -14
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activation-key.factory.js +3 -15
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activation-keys.controller.js +5 -18
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activation-keys.module.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activationKeyConsumed.filter.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-add-host-collections.controller.js +10 -23
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-add-subscriptions.controller.js +16 -28
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-associations.controller.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-details-info.controller.js +12 -16
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-details.controller.js +1 -14
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-host-collections.controller.js +10 -23
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-product-details.controller.js +14 -19
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-products.controller.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-subscriptions.controller.js +16 -29
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/views/activation-key-add-subscriptions.html +59 -86
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/views/activation-key-associations-content-hosts.html +6 -6
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/views/activation-key-host-collections-table.html +29 -29
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/views/activation-key-info.html +7 -3
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/views/activation-key-subscriptions-list.html +55 -79
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/new/new-activation-key.controller.js +13 -26
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/views/activation-keys-table-full.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/bastion-katello-bootstrap.js +1 -14
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/bastion_katello.js +0 -15
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/capsules/capsule.factory.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/capsules/capsules.module.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/content-hosts-bulk-action-environment.controller.js +9 -22
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/content-hosts-bulk-action-errata.controller.js +14 -28
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/content-hosts-bulk-action-host-collections.controller.js +11 -24
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/content-hosts-bulk-action-packages.controller.js +20 -33
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/content-hosts-bulk-action-subscriptions.controller.js +16 -29
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/content-hosts-bulk-action.controller.js +12 -16
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/views/bulk-actions-environment.html +4 -4
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/views/bulk-actions-errata.html +7 -8
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/views/bulk-actions-host-collections.html +4 -7
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-host-erratum.factory.js +1 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-host-events.controller.js +0 -14
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-host-package.factory.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-host-register.controller.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-host-status.controller.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-host.factory.js +1 -14
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-hosts-helper.service.js +37 -50
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-hosts.controller.js +7 -19
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-hosts.module.js +1 -14
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-errata.controller.js +24 -27
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-packages.controller.js +4 -17
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-errata.html +15 -4
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-packages.html +49 -47
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-add-host-collections.controller.js +8 -21
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-add-subscriptions.controller.js +22 -26
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-base-subscriptions.controller.js +11 -34
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-details-info.controller.js +40 -104
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-details.controller.js +1 -14
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-host-collections.controller.js +8 -21
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-product-details.controller.js +14 -19
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-products.controller.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-subscriptions.controller.js +20 -62
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-add-subscriptions.html +61 -96
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-details.html +8 -3
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-events.html +21 -19
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-info.html +3 -33
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-subscriptions-list.html +59 -91
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/host-collections-table.html +44 -42
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/views/content-hosts-table-full.html +0 -5
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/views/content-hosts.html +3 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/views/register.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/content-view.factory.js +3 -14
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/content-views.controller.js +4 -17
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/content-views.module.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/content-views.routes.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/deletion/content-view-deletion.controller.js +12 -25
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/deletion/content-view-version-deletion-activation-keys.controller.js +7 -20
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/deletion/content-view-version-deletion-confirm.controller.js +18 -30
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/deletion/content-view-version-deletion-content-hosts.controller.js +8 -21
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/deletion/content-view-version-deletion-environments.controller.js +5 -19
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/deletion/content-view-version-deletion.controller.js +9 -25
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-available-docker-repositories.controller.js +4 -17
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-available-puppet-modules.controller.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-available-repositories.controller.js +4 -17
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-composite-available-content-views.controller.js +9 -21
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-composite-content-views-list.controller.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-details-history.controller.js +2 -15
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-details.controller.js +77 -88
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-docker-repositories-list.controller.js +3 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-promotion.controller.js +60 -32
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-publish.controller.js +9 -22
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-repositories-list.controller.js +3 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-repositories.service.js +14 -27
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-versions.controller.js +34 -48
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/available-errata-filter.controller.js +24 -35
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/available-package-group-filter.controller.js +29 -35
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/date-type-errata-filter.controller.js +9 -22
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/edit-filter.controller.js +3 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/errata-filter-list.controller.js +34 -47
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/errata-filter.controller.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/filter-content-type.filter.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/filter-details.controller.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/filter-helper.service.js +1 -14
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/filter-repositories.controller.js +2 -15
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/filter-type.filter.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/filter.factory.js +3 -15
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/filters.controller.js +16 -29
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/new-filter.controller.js +33 -46
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/package-filter.controller.js +61 -74
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/package-group-filter.controller.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/package-group-list-filter.controller.js +25 -36
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/rule.factory.js +1 -14
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/views/edit-filter.html +18 -16
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/views/filter-repositories.html +0 -22
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/views/filters.html +6 -7
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/views/new-filter.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/views/package-filter-details.html +4 -4
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/views/package-filter.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/puppet-modules/content-view-puppet-module-names.controller.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/puppet-modules/content-view-puppet-module-versions.controller.js +2 -15
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/puppet-modules/content-view-puppet-module.factory.js +3 -14
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/puppet-modules/content-view-puppet-modules.controller.js +3 -15
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/puppet-modules/views/content-view-puppet-module-names.html +3 -3
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/puppet-modules/views/content-view-puppet-modules.html +3 -12
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-composite-content-views-list.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-details-history.html +2 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-details.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-docker-repositories.html +46 -50
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-promotion.html +12 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-repositories.html +51 -55
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-versions.html +38 -38
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/new/content-view-new.controller.js +15 -28
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/content-view-version-content.controller.js +9 -21
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/content-view-version.controller.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/content-view-version.factory.js +1 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/content-view-versions.module.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/views/content-view-version-details.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/views/content-view-version-package-groups.html +8 -4
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/views/content-view-version-packages.html +8 -4
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/views/content-views-table-full.html +1 -7
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/views/content-views.html +4 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-images/docker-image.factory.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-images/docker-images.module.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/details/docker-tags-details.controller.js +7 -21
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/docker-tags.controller.js +4 -17
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/docker-tags.factory.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/docker-tags.module.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/docker-tags.routes.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/views/docker-tags.html +4 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/content.service.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/details/environment-content.controller.js +8 -21
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/details/environment.controller.js +2 -14
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/details/views/environment-content-views.html +3 -7
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/details/views/environment-docker.html +4 -5
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/details/views/environment-errata.html +4 -5
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/details/views/environment-packages.html +4 -5
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/details/views/environment-puppet-modules.html +4 -5
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/details/views/environment-repositories.html +4 -5
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/environment.factory.js +1 -14
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/environments.controller.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/environments.module.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/environments.routes.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/new-environment.controller.js +12 -25
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/apply-errata.controller.js +17 -28
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/details/errata-content-hosts.controller.js +5 -16
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/details/errata-details-repositories.controller.js +1 -14
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/details/errata-details.controller.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/details/views/errata-details-content-hosts.html +7 -8
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/details/views/errata-details-info.html +3 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/details/views/errata-details-repositories.html +7 -14
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/errata-counts.directive.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/errata-severity.filter.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/errata-type.filter.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/errata.controller.js +20 -29
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/errata.module.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/errata.routes.js +3 -16
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/erratum.factory.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/views/apply-errata-confirm.html +8 -4
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/views/errata.html +13 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/gpg-keys/details/gpg-key-details-info.controller.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/gpg-keys/details/gpg-key-details.controller.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/gpg-keys/gpg-key.factory.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/gpg-keys/gpg-keys.controller.js +5 -18
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/gpg-keys/gpg-keys.module.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/gpg-keys/new/new-gpg-key.controller.js +1 -14
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/details/host-collection-add-content-hosts.controller.js +11 -24
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/details/host-collection-content-hosts.controller.js +5 -18
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/details/host-collection-details.controller.js +1 -14
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/details/views/host-collection-add-content-hosts.html +39 -37
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/details/views/host-collection-content-hosts-list.html +34 -32
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collection.factory.js +2 -14
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collections.controller.js +5 -18
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collections.module.js +0 -15
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/new/host-collection-form.controller.js +8 -21
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/new/new-host-collection.controller.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/README +12 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/bastion_katello.pot +4484 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/de.po +5324 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/es.po +5290 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/fr.po +5363 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/it.po +5349 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/ja.po +5281 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/ko.po +5191 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/pt_BR.po +5321 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/ru.po +5171 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/zh_CN.po +5103 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/zh_TW.po +5106 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/translations.js +14 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/organizations/check-current-organization.run.js +0 -14
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/organizations/organization-selector.controller.js +0 -14
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/organizations/organization.factory.js +5 -17
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/organizations/organizations.module.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/organizations/organizations.routes.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/package-groups/package-group.factory.js +4 -14
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/package-groups/package-groups.module.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/details/package-details-repositories.controller.js +59 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/details/package-details.controller.js +23 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/details/views/packages-details-dependencies.html +19 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/details/views/packages-details-files.html +11 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/details/views/packages-details-info.html +75 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/details/views/packages-details-repositories.html +83 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/details/views/packages-details.html +57 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/package.factory.js +2 -17
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/packages.controller.js +65 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/packages.module.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/packages.routes.js +66 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/views/packages-table-collapsed.html +19 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/views/packages-table-full.html +22 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/views/packages.html +19 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/bulk/products-bulk-action-sync-plan.controller.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/bulk/products-bulk-action-sync.controller.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/bulk/products-bulk-action.controller.js +2 -15
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/bulk/views/bulk-actions.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/product-details-info.controller.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/product-details.controller.js +2 -15
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/product-repositories.controller.js +16 -41
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/views/product-details.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/views/product-repositories.html +114 -115
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/discovery/discovery-form.controller.js +76 -94
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/discovery/discovery.controller.js +1 -14
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/discovery/views/discovery.html +7 -4
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/new/new-product.controller.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/new/product-form.controller.js +7 -15
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/new/views/product-new.html +2 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/product.factory.js +3 -14
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/products.controller.js +11 -22
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/products.module.js +9 -16
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/views/partials/product-table-sync-status.html +2 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/views/products-table-full.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/details/puppet-modules-details-content-views.controller.js +43 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/details/puppet-modules-details-repositories.controller.js +35 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/details/puppet-modules-details.controller.js +28 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/details/views/puppet-modules-details-content-views.html +37 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/details/views/puppet-modules-details-info.html +31 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/details/views/puppet-modules-details-repositories.html +52 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/details/views/puppet-modules-details.html +45 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/puppet-module.factory.js +5 -14
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/puppet-modules.controller.js +35 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/puppet-modules.module.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/puppet-modules.routes.js +69 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/views/puppet-modules-table-collapsed.html +20 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/views/puppet-modules-table-full.html +29 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/views/puppet-modules.html +16 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/repositories/details/repository-details-info.controller.js +10 -20
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/repositories/details/repository-details-manage-content.controller.js +26 -37
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/repositories/details/views/repository-info.html +59 -7
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/repositories/details/views/repository-manage-docker-images.html +1 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/repositories/details/views/repository-manage-package-groups.html +25 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/repositories/details/views/repository-manage-packages.html +1 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/repositories/details/views/repository-manage-puppet-modules.html +1 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/repositories/new/new-repository.controller.js +20 -32
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/repositories/repositories.module.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/repositories/repository.factory.js +2 -14
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/subscription-associations-activation-keys.controller.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/subscription-associations-content-hosts.controller.js +1 -14
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/subscription-details.controller.js +2 -15
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/subscription-product-details.controller.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/subscription-products.controller.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/views/subscription-associations-activation-keys.html +8 -8
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/views/subscription-associations-content-hosts.html +7 -7
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/views/subscription-details.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/views/subscription-info.html +3 -3
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/views/subscription-products.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/manifest/manifest-details.controller.js +2 -15
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/manifest/manifest-history.controller.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/manifest/manifest-import.controller.js +34 -47
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/manifest/manifest.controller.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/manifest/views/manifest-import.html +0 -10
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscription-type.directive.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptionAttachAmountFilter.filter.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptionConsumed.filter.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptions-helper.service.js +3 -16
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptions.controller.js +18 -29
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptions.factory.js +3 -14
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptions.module.js +3 -16
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/views/subscriptions-table-full.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/details/sync-plan-add-products.controller.js +5 -18
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/details/sync-plan-details-info.controller.js +14 -16
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/details/sync-plan-details.controller.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/details/sync-plan-products.controller.js +5 -18
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/details/views/sync-plan-info.html +14 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/details/views/sync-plan-products-table.html +37 -35
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/new/new-sync-plan.controller.js +2 -14
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plan.factory.js +2 -18
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plans.controller.js +7 -19
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plans.module.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/views/sync-plans.html +4 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/aggregate-task.factory.js +17 -30
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/task-details.controller.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/task-input-compile.filter.js +6 -16
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/task-input-part.directive.js +3 -16
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/task-input-reduce.filter.js +2 -15
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/task-input-short.filter.js +0 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/task.factory.js +36 -43
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/tasks-nutupane.factory.js +3 -15
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/tasks-table.directive.js +2 -15
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/tasks.module.js +0 -14
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/views/tasks-table.html +30 -28
- data/engines/bastion_katello/app/assets/stylesheets/bastion_katello/bastion_katello.less +6 -0
- data/engines/bastion_katello/app/assets/stylesheets/bastion_katello/systems.less +0 -24
- data/engines/bastion_katello/bastion_katello.gemspec +1 -1
- data/engines/bastion_katello/lib/bastion_katello/engine.rb +6 -1
- data/lib/katello.rb +2 -8
- data/lib/katello/apipie/validators.rb +1 -1
- data/lib/katello/engine.rb +54 -15
- data/lib/katello/permissions/content_host_permissions.rb +4 -5
- data/lib/katello/permissions/content_view_permissions.rb +2 -4
- data/lib/katello/permissions/host_collections_permissions.rb +0 -1
- data/lib/katello/permissions/product_permissions.rb +1 -2
- data/lib/katello/permissions/subscription_permissions.rb +1 -2
- data/lib/katello/permissions/sync_plan_permissions.rb +2 -1
- data/lib/katello/plugin.rb +36 -37
- data/lib/katello/tasks/reindex.rake +125 -18
- data/lib/katello/tasks/setup.rake +0 -3
- data/lib/katello/tasks/test.rake +92 -8
- data/lib/katello/tasks/upgrades/2.4/import_distributions.rake +12 -0
- data/lib/katello/tasks/upgrades/2.4/import_package_groups.rake +12 -0
- data/lib/katello/tasks/upgrades/2.4/import_puppet_modules.rake +12 -0
- data/lib/katello/tasks/upgrades/2.4/import_rpms.rake +12 -0
- data/lib/katello/tasks/upgrades/2.4/import_subscriptions.rake +13 -0
- data/lib/katello/tire_bridge.rb +20 -0
- data/lib/katello/url_constrained_cookie_store.rb +0 -12
- data/lib/katello/version.rb +1 -1
- data/lib/monkeys/passenger_tee_input.rb +0 -12
- data/locale/action_names.rb +47 -0
- data/locale/bn/katello.po +2728 -5025
- data/locale/cs/katello.po +1939 -2918
- data/locale/de/katello.po +3515 -5733
- data/locale/en/katello.po +1570 -1537
- data/locale/es/katello.po +3457 -5721
- data/locale/fr/katello.po +3604 -5753
- data/locale/gu/katello.po +2740 -5029
- data/locale/hi/katello.po +2731 -5032
- data/locale/it/katello.po +3502 -5769
- data/locale/ja/katello.po +3481 -5888
- data/locale/katello.pot +1277 -1472
- data/locale/kn/katello.po +2754 -5089
- data/locale/ko/katello.po +3327 -5775
- data/locale/mr/katello.po +2701 -5097
- data/locale/or/katello.po +2741 -5093
- data/locale/pa/katello.po +2601 -4937
- data/locale/pt/katello.po +1810 -1947
- data/locale/pt_BR/katello.po +3468 -5893
- data/locale/ru/katello.po +3352 -5856
- data/locale/ta/katello.po +2751 -5040
- data/locale/te/katello.po +2734 -5091
- data/locale/zh_CN/katello.po +3230 -5800
- data/locale/zh_TW/katello.po +3540 -5962
- metadata +1451 -1575
- checksums.yaml +0 -15
- data/app/assets/javascripts/katello/common/bastion-routes.js +0 -2870
- data/app/assets/javascripts/katello/common/notices.js +0 -176
- data/app/assets/javascripts/katello/common/panel.js +0 -1078
- data/app/assets/javascripts/katello/common/routes.js +0 -2878
- data/app/assets/javascripts/katello/common/search.js +0 -376
- data/app/assets/javascripts/katello/content_search/content_search.js +0 -854
- data/app/assets/javascripts/katello/content_search/index.js +0 -20
- data/app/assets/javascripts/katello/dashboard/dashboard.js +0 -210
- data/app/assets/javascripts/katello/dashboard/index.js +0 -14
- data/app/assets/javascripts/katello/notices/index.js +0 -14
- data/app/assets/javascripts/katello/notices/notices_list.js +0 -49
- data/app/assets/javascripts/katello/providers/index.js +0 -16
- data/app/assets/javascripts/katello/providers/products_repos.js +0 -46
- data/app/assets/javascripts/katello/providers/provider.js +0 -68
- data/app/assets/javascripts/katello/providers/provider_create.js +0 -21
- data/app/assets/javascripts/katello/providers/repo.js +0 -27
- data/app/assets/javascripts/katello/providers/repo_discovery.js +0 -376
- data/app/assets/javascripts/katello/providers/repo_discovery_create.js +0 -17
- data/app/assets/javascripts/katello/widgets/comparison_grid.js +0 -1033
- data/app/assets/javascripts/katello/widgets/slidingtree.js +0 -645
- data/app/assets/javascripts/katello/widgets/tipsy.custom.js +0 -197
- data/app/assets/stylesheets/katello/content_search.scss +0 -650
- data/app/assets/stylesheets/katello/custom_info.scss +0 -32
- data/app/assets/stylesheets/katello/dashboard.scss +0 -570
- data/app/assets/stylesheets/katello/widgets/tipsy_custom.scss +0 -81
- data/app/controllers/katello/api/v2/distributions_controller.rb +0 -50
- data/app/controllers/katello/api/v2/users_controller.rb +0 -16
- data/app/controllers/katello/concerns/api/v2/repository_db_content_controller.rb +0 -109
- data/app/controllers/katello/consumers_controller_logic.rb +0 -55
- data/app/controllers/katello/content_search_controller.rb +0 -676
- data/app/controllers/katello/content_views_controller.rb +0 -35
- data/app/controllers/katello/dashboard_controller.rb +0 -106
- data/app/controllers/katello/distributor_events_controller.rb +0 -114
- data/app/controllers/katello/distributors_controller.rb +0 -501
- data/app/controllers/katello/notices_controller.rb +0 -101
- data/app/controllers/katello/packages_controller.rb +0 -45
- data/app/controllers/katello/puppet_modules_controller.rb +0 -27
- data/app/controllers/katello/repositories_controller.rb +0 -39
- data/app/controllers/katello/search_controller.rb +0 -92
- data/app/helpers/katello/content_search_helper.rb +0 -62
- data/app/helpers/katello/dashboard_helper.rb +0 -204
- data/app/helpers/katello/distributors_helper.rb +0 -69
- data/app/helpers/katello/notices_helper.rb +0 -21
- data/app/helpers/katello/search_helper.rb +0 -35
- data/app/helpers/katello/users_helper.rb +0 -44
- data/app/lib/actions/candlepin/reindex_pool_subscription_handler.rb +0 -91
- data/app/lib/actions/elastic_search/content_view_puppet_environment/index_content.rb +0 -28
- data/app/lib/actions/elastic_search/repository/destroy.rb +0 -35
- data/app/lib/actions/elastic_search/repository/remove_puppet_modules.rb +0 -28
- data/app/lib/actions/katello/organization/index_subscriptions.rb +0 -61
- data/app/lib/actions/katello/repository/remove_docker_images.rb +0 -35
- data/app/lib/actions/katello/user/create.rb +0 -27
- data/app/lib/actions/katello/user/destroy.rb +0 -28
- data/app/lib/actions/pulp/superuser/abstract.rb +0 -35
- data/app/lib/actions/pulp/superuser/add.rb +0 -23
- data/app/lib/actions/pulp/superuser/remove.rb +0 -23
- data/app/lib/actions/pulp/user/create.rb +0 -35
- data/app/lib/actions/pulp/user/destroy.rb +0 -27
- data/app/lib/katello/content_search/cell.rb +0 -29
- data/app/lib/katello/content_search/column.rb +0 -18
- data/app/lib/katello/content_search/container_search.rb +0 -55
- data/app/lib/katello/content_search/content_view_comparison.rb +0 -200
- data/app/lib/katello/content_search/content_view_search.rb +0 -69
- data/app/lib/katello/content_search/element.rb +0 -57
- data/app/lib/katello/content_search/metadata_row.rb +0 -35
- data/app/lib/katello/content_search/product_row.rb +0 -35
- data/app/lib/katello/content_search/product_search.rb +0 -60
- data/app/lib/katello/content_search/repo_row.rb +0 -33
- data/app/lib/katello/content_search/repo_search.rb +0 -68
- data/app/lib/katello/content_search/row.rb +0 -25
- data/app/lib/katello/content_search/search.rb +0 -45
- data/app/lib/katello/content_search/search_utils.rb +0 -33
- data/app/lib/katello/content_search/span.rb +0 -21
- data/app/lib/katello/content_search/unit_row.rb +0 -55
- data/app/lib/katello/dashboard/content_views_widget.rb +0 -30
- data/app/lib/katello/dashboard/errata_widget.rb +0 -30
- data/app/lib/katello/dashboard/host_collections_widget.rb +0 -30
- data/app/lib/katello/dashboard/layout.rb +0 -73
- data/app/lib/katello/dashboard/notices_widget.rb +0 -23
- data/app/lib/katello/dashboard/subscriptions_totals_widget.rb +0 -29
- data/app/lib/katello/dashboard/subscriptions_widget.rb +0 -25
- data/app/lib/katello/dashboard/sync_widget.rb +0 -30
- data/app/lib/katello/dashboard/widget.rb +0 -45
- data/app/lib/katello/notifications.rb +0 -17
- data/app/lib/katello/notifications/controller_helper.rb +0 -43
- data/app/lib/katello/notifications/notifier.rb +0 -190
- data/app/lib/katello/notify.rb +0 -16
- data/app/lib/katello/validators/default_info_validator.rb +0 -40
- data/app/models/katello/authorization.rb +0 -25
- data/app/models/katello/authorization/distributor.rb +0 -58
- data/app/models/katello/custom_info.rb +0 -64
- data/app/models/katello/distribution.rb +0 -32
- data/app/models/katello/distributor.rb +0 -136
- data/app/models/katello/glue/elastic_search/activation_key.rb +0 -37
- data/app/models/katello/glue/elastic_search/content_view.rb +0 -58
- data/app/models/katello/glue/elastic_search/content_view_filter.rb +0 -39
- data/app/models/katello/glue/elastic_search/content_view_puppet_environment.rb +0 -72
- data/app/models/katello/glue/elastic_search/content_view_puppet_module.rb +0 -41
- data/app/models/katello/glue/elastic_search/distribution.rb +0 -72
- data/app/models/katello/glue/elastic_search/distributor.rb +0 -63
- data/app/models/katello/glue/elastic_search/marketing_product.rb +0 -21
- data/app/models/katello/glue/elastic_search/notice.rb +0 -36
- data/app/models/katello/glue/elastic_search/package.rb +0 -233
- data/app/models/katello/glue/elastic_search/package_group.rb +0 -136
- data/app/models/katello/glue/elastic_search/pool.rb +0 -185
- data/app/models/katello/glue/elastic_search/product.rb +0 -59
- data/app/models/katello/glue/elastic_search/provider.rb +0 -41
- data/app/models/katello/glue/elastic_search/puppet_module.rb +0 -251
- data/app/models/katello/glue/elastic_search/repository.rb +0 -133
- data/app/models/katello/glue/pulp/distribution.rb +0 -50
- data/app/models/katello/glue/pulp/package.rb +0 -76
- data/app/models/katello/glue/pulp/package_group.rb +0 -60
- data/app/models/katello/glue/pulp/puppet_module.rb +0 -76
- data/app/models/katello/glue/pulp/user.rb +0 -59
- data/app/models/katello/help_tip.rb +0 -20
- data/app/models/katello/marketing_engineering_product.rb +0 -21
- data/app/models/katello/marketing_product.rb +0 -21
- data/app/models/katello/notice.rb +0 -77
- data/app/models/katello/package.rb +0 -19
- data/app/models/katello/search_favorite.rb +0 -38
- data/app/models/katello/search_history.rb +0 -22
- data/app/models/katello/user_notice.rb +0 -27
- data/app/models/repository_docker_image.rb +0 -18
- data/app/views/katello/api/v2/custom_info/show.json.rabl +0 -5
- data/app/views/katello/api/v2/distributions/index.json.rabl +0 -3
- data/app/views/katello/api/v2/distributions/show.json.rabl +0 -9
- data/app/views/katello/api/v2/distributors/index.json.rabl +0 -9
- data/app/views/katello/api/v2/distributors/pools.json.rabl +0 -3
- data/app/views/katello/api/v2/distributors/show.json.rabl +0 -3
- data/app/views/katello/api/v2/distributors/task.json.rabl +0 -3
- data/app/views/katello/api/v2/distributors/tasks.json.rabl +0 -3
- data/app/views/katello/api/v2/layouts/collection.json.haml +0 -3
- data/app/views/katello/api/v2/layouts/resource.json.haml +0 -5
- data/app/views/katello/api/v2/organization_default_info/apply_to_all.json.rabl +0 -3
- data/app/views/katello/api/v2/organization_default_info/create.json.rabl +0 -5
- data/app/views/katello/api/v2/users/list_owners.json.rabl +0 -4
- data/app/views/katello/api/v2/users/show.json.rabl +0 -12
- data/app/views/katello/common/400.html.haml +0 -5
- data/app/views/katello/common/403.html.haml +0 -10
- data/app/views/katello/common/404.html.haml +0 -7
- data/app/views/katello/common/500.html.haml +0 -15
- data/app/views/katello/common/_ajax_notices.haml +0 -5
- data/app/views/katello/common/_common_i18n.html.haml +0 -45
- data/app/views/katello/common/_common_product_repo_selector.html.haml +0 -65
- data/app/views/katello/common/_common_products.html.haml +0 -24
- data/app/views/katello/common/_config.html.haml +0 -8
- data/app/views/katello/common/_edit_i18n.html.haml +0 -12
- data/app/views/katello/common/_env_select.html.haml +0 -40
- data/app/views/katello/common/_filter_table.html.haml +0 -5
- data/app/views/katello/common/_footer.haml +0 -5
- data/app/views/katello/common/_helptip.html.haml +0 -3
- data/app/views/katello/common/_helptip_button.html.haml +0 -2
- data/app/views/katello/common/_list_item.html.haml +0 -6
- data/app/views/katello/common/_list_items.html.haml +0 -2
- data/app/views/katello/common/_list_remove.js.haml +0 -3
- data/app/views/katello/common/_list_update.html.haml +0 -4
- data/app/views/katello/common/_notification.haml +0 -29
- data/app/views/katello/common/_one_panel.html.haml +0 -15
- data/app/views/katello/common/_one_panel_list_item.haml +0 -5
- data/app/views/katello/common/_package_actions_i18n.html.haml +0 -7
- data/app/views/katello/common/_panel.html.haml +0 -75
- data/app/views/katello/common/_post_action_close_subpanel.js.haml +0 -2
- data/app/views/katello/common/_post_delete_close_subpanel.js.haml +0 -2
- data/app/views/katello/common/_repo_selector.html.haml +0 -27
- data/app/views/katello/common/_search.html.haml +0 -17
- data/app/views/katello/common/_stats_line.html.haml +0 -3
- data/app/views/katello/common/_tupane.html.haml +0 -10
- data/app/views/katello/content_search/_browser_box.html.haml +0 -132
- data/app/views/katello/content_search/_container_hover.html.haml +0 -26
- data/app/views/katello/content_search/_grid.html.haml +0 -60
- data/app/views/katello/content_search/_repo_hover.html.haml +0 -18
- data/app/views/katello/content_search/index.html.haml +0 -32
- data/app/views/katello/custom_info/_edit.html.haml +0 -32
- data/app/views/katello/dashboard/_ajax_entry.html.haml +0 -11
- data/app/views/katello/dashboard/_content_views.haml +0 -22
- data/app/views/katello/dashboard/_entry.html.haml +0 -9
- data/app/views/katello/dashboard/_errata.haml +0 -21
- data/app/views/katello/dashboard/_host_collection_item.html.haml +0 -19
- data/app/views/katello/dashboard/_host_collections.html.haml +0 -31
- data/app/views/katello/dashboard/_notices.html.haml +0 -11
- data/app/views/katello/dashboard/_subscriptions.haml +0 -47
- data/app/views/katello/dashboard/_subscriptions_totals.haml +0 -19
- data/app/views/katello/dashboard/_sync.haml +0 -37
- data/app/views/katello/dashboard/_systems.html.haml +0 -22
- data/app/views/katello/dashboard/index.html.haml +0 -25
- data/app/views/katello/distributor_events/_details.html.haml +0 -32
- data/app/views/katello/distributor_events/_event_items.html.haml +0 -27
- data/app/views/katello/distributor_events/_events.html.haml +0 -36
- data/app/views/katello/distributor_events/_more_events.html.haml +0 -3
- data/app/views/katello/distributors/_actions.html.haml +0 -23
- data/app/views/katello/distributors/_distributor_tupane_header_nav.html.haml +0 -10
- data/app/views/katello/distributors/_edit.html.haml +0 -73
- data/app/views/katello/distributors/_edit_custom_info.html.haml +0 -10
- data/app/views/katello/distributors/_list_distributor.html.haml +0 -2
- data/app/views/katello/distributors/_list_distributor_show.html.haml +0 -18
- data/app/views/katello/distributors/_list_distributors.html.haml +0 -1
- data/app/views/katello/distributors/_more_products.html.haml +0 -5
- data/app/views/katello/distributors/_new.html.haml +0 -43
- data/app/views/katello/distributors/_products.html.haml +0 -23
- data/app/views/katello/distributors/_subs.html.haml +0 -149
- data/app/views/katello/distributors/_subs_update.js.haml +0 -1
- data/app/views/katello/distributors/_subscription_details.html.haml +0 -23
- data/app/views/katello/distributors/_subscriptions.html.haml +0 -22
- data/app/views/katello/distributors/index.html.haml +0 -10
- data/app/views/katello/errata/_short_details.html.haml +0 -44
- data/app/views/katello/layouts/katello.haml +0 -32
- data/app/views/katello/layouts/tupane_layout.html.haml +0 -45
- data/app/views/katello/nodes/_list.html.haml +0 -5
- data/app/views/katello/nodes/index.html.haml +0 -1
- data/app/views/katello/nodes/show.html.haml +0 -7
- data/app/views/katello/notices/_delete_all.js.haml +0 -1
- data/app/views/katello/notices/show.html.haml +0 -46
- data/app/views/katello/packages/_changelog.html.haml +0 -15
- data/app/views/katello/packages/_dependencies.html.haml +0 -27
- data/app/views/katello/packages/_details.html.haml +0 -100
- data/app/views/katello/packages/_filelist.html.haml +0 -15
- data/app/views/katello/packages/_show.html.haml +0 -90
- data/app/views/katello/providers/index.html.haml +0 -17
- data/app/views/katello/providers/redhat/_enable_errors.haml +0 -9
- data/app/views/katello/providers/redhat/_errors.html.haml +0 -13
- data/app/views/katello/providers/redhat/_repo_sets.haml +0 -31
- data/app/views/katello/providers/redhat/_repos.html.haml +0 -23
- data/app/views/katello/providers/redhat/_tab.html.haml +0 -8
- data/app/views/katello/providers/redhat/show.html.haml +0 -23
- data/app/views/katello/puppet_modules/_show.html.haml +0 -88
- data/app/views/katello/sync_management/_children.html.haml +0 -13
- data/app/views/katello/sync_management/_controls.html.haml +0 -13
- data/app/views/katello/sync_management/_product.html.haml +0 -21
- data/app/views/katello/sync_management/_products.html.haml +0 -20
- data/app/views/katello/sync_management/_repo.html.haml +0 -27
- data/app/views/katello/sync_management/_sync_plans.html.haml +0 -16
- data/app/views/katello/sync_management/index.html.haml +0 -22
- data/app/views/katello/sync_management/manage.html.haml +0 -25
- data/app/views/katello/user_mailer/logins.text.haml +0 -3
- data/app/views/katello/welcome/show.html.haml +0 -15
- data/config/initializers/tire.rb +0 -4
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/custom-info/custom-info.factory.js +0 -34
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/custom-info/custom-info.module.js +0 -24
- data/lib/headpin/headpin.rb +0 -6
- data/lib/katello/app_config.rb +0 -22
- data/lib/katello/configuration.rb +0 -70
- data/lib/katello/configuration/loader.rb +0 -128
- data/lib/katello/configuration/node.rb +0 -145
- data/lib/katello/configuration/validator.rb +0 -85
- data/lib/katello/load_configuration.rb +0 -95
- data/lib/katello/logging.rb +0 -245
- data/lib/katello/middleware/log_request_uuid.rb +0 -28
- data/lib/katello/middleware/silenced_logger.rb +0 -35
- data/lib/katello/permissions/dashboard_permissions.rb +0 -6
- data/lib/monkeys/string_to_bool.rb +0 -19
- data/lib/monkeys/yard_svg_fix.rb +0 -26
- data/lib/util/password.rb +0 -137
- data/vendor/assets/javascripts/katello/jquery.tipsy.js +0 -358
- data/vendor/assets/stylesheets/katello/jquery.timepickr.css +0 -40
- data/vendor/assets/stylesheets/katello/jquery.tipsy.css +0 -25
@@ -1,27 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
Copyright 2014 Red Hat, Inc.
|
3
|
-
|
4
|
-
This software is licensed to you under the GNU General Public
|
5
|
-
License as published by the Free Software Foundation; either version
|
6
|
-
2 of the License (GPLv2) or (at your option) any later version.
|
7
|
-
There is NO WARRANTY for this software, express or implied,
|
8
|
-
including the implied warranties of MERCHANTABILITY,
|
9
|
-
NON-INFRINGEMENT, or FITNESS FOR A PARTICULAR PURPOSE. You should
|
10
|
-
have received a copy of GPLv2 along with this software; if not, see
|
11
|
-
http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
|
12
|
-
*/
|
13
|
-
|
14
|
-
KT.repo = (function(){
|
15
|
-
var page_load = function(){
|
16
|
-
$('#repo_content_type').unbind('change').change(function() {
|
17
|
-
if ($(this).val() === 'puppet') {
|
18
|
-
$('#gpg_key').hide();
|
19
|
-
} else {
|
20
|
-
$('#gpg_key').show();
|
21
|
-
}
|
22
|
-
});
|
23
|
-
};
|
24
|
-
return {
|
25
|
-
page_load: page_load
|
26
|
-
};
|
27
|
-
})();
|
@@ -1,376 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
Copyright 2014 Red Hat, Inc.
|
3
|
-
|
4
|
-
This software is licensed to you under the GNU General Public
|
5
|
-
License as published by the Free Software Foundation; either version
|
6
|
-
2 of the License (GPLv2) or (at your option) any later version.
|
7
|
-
There is NO WARRANTY for this software, express or implied,
|
8
|
-
including the implied warranties of MERCHANTABILITY,
|
9
|
-
NON-INFRINGEMENT, or FITNESS FOR A PARTICULAR PURPOSE. You should
|
10
|
-
have received a copy of GPLv2 along with this software; if not, see
|
11
|
-
http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
|
12
|
-
*/
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
KT.repo_discovery = (function(){
|
17
|
-
var updater,
|
18
|
-
form_id = '#repo_discovery_form',
|
19
|
-
list_id = '#discovered_repos';
|
20
|
-
|
21
|
-
var page_load = function(){
|
22
|
-
draw_url_list(KT.initial_repo_discovery.urls);
|
23
|
-
if(KT.initial_repo_discovery.running){
|
24
|
-
discovery_started();
|
25
|
-
disable_discovery();
|
26
|
-
}
|
27
|
-
$(form_id).unbind('submit').submit(function(e){
|
28
|
-
e.preventDefault();
|
29
|
-
start_discovery();
|
30
|
-
});
|
31
|
-
|
32
|
-
$('#new_repos').unbind('click').click(open_subpane);
|
33
|
-
|
34
|
-
$('#url_filter').bind('change, keyup', function(){
|
35
|
-
$.uiTableFilter($(list_id), this.value, $(list_id).find("thead > tr:last > th").first().text().trim());
|
36
|
-
});
|
37
|
-
|
38
|
-
$(list_id).delegate("input[type=checkbox]", 'change', on_checkbox_change);
|
39
|
-
on_checkbox_change();
|
40
|
-
init_cancel();
|
41
|
-
},
|
42
|
-
open_subpane = function(){
|
43
|
-
var urls = '?';
|
44
|
-
KT.utils.each(selected(), function(element, index){
|
45
|
-
if(index > 0) {
|
46
|
-
urls += '&';
|
47
|
-
}
|
48
|
-
urls+= 'urls[]=' + element;
|
49
|
-
});
|
50
|
-
KT.panel.openSubPanel($(this).data('url') + urls );
|
51
|
-
},
|
52
|
-
page_close = function(){
|
53
|
-
if(updater !== undefined){
|
54
|
-
updater.stop();
|
55
|
-
updater = undefined;
|
56
|
-
}
|
57
|
-
},
|
58
|
-
init_updater = function(){
|
59
|
-
var url = $(list_id).data('url');
|
60
|
-
if(updater !== undefined){
|
61
|
-
return;
|
62
|
-
}
|
63
|
-
updater = $.PeriodicalUpdater(url, {
|
64
|
-
method: 'get',
|
65
|
-
type: 'json',
|
66
|
-
global: 'false'
|
67
|
-
},
|
68
|
-
function(data, success) {
|
69
|
-
if(data !== '') { //403
|
70
|
-
draw_url_list(data.urls);
|
71
|
-
if(!data.running){
|
72
|
-
discovery_ended();
|
73
|
-
}
|
74
|
-
}
|
75
|
-
});
|
76
|
-
},
|
77
|
-
init_cancel = function(){
|
78
|
-
var cancel = $(form_id).find('#cancel_discover');
|
79
|
-
cancel.unbind('click');
|
80
|
-
cancel.click(cancel_discovery);
|
81
|
-
},
|
82
|
-
draw_url_list = function(url_list){
|
83
|
-
var list = $(list_id),
|
84
|
-
find_text = function(){ return $(this).find('.hidden-text').html();};
|
85
|
-
list.find('.check_icon-black').tipsy('hide');
|
86
|
-
KT.initial_repo_discovery.urls = url_list;
|
87
|
-
list.find('tbody').html(KT.discovery_templates.url_list(url_list, selected()));
|
88
|
-
$('#url_filter').trigger('keyup');
|
89
|
-
|
90
|
-
list.find('.check_icon-black').tipsy({html:true, gravity:'w', className:'content-tipsy',
|
91
|
-
title:find_text});
|
92
|
-
},
|
93
|
-
start_discovery = function(){
|
94
|
-
var form = $(form_id),
|
95
|
-
discover_url = form.find('input[type=text]').val();
|
96
|
-
|
97
|
-
disable_discovery();
|
98
|
-
$.ajax({
|
99
|
-
contentType:"application/json",
|
100
|
-
type: "POST",
|
101
|
-
url: form.data('url'),
|
102
|
-
data: JSON.stringify({'url':discover_url}),
|
103
|
-
cache: false,
|
104
|
-
success: function(data) {
|
105
|
-
discovery_started();
|
106
|
-
},
|
107
|
-
error: function(data) {
|
108
|
-
enable_discovery();
|
109
|
-
}
|
110
|
-
});
|
111
|
-
draw_url_list([]);
|
112
|
-
},
|
113
|
-
cancel_discovery = function(){
|
114
|
-
var button = $(form_id).find('#cancel_discover');
|
115
|
-
button.attr('disabled', 'disabled');
|
116
|
-
$.ajax({
|
117
|
-
contentType:"application/json",
|
118
|
-
type: "POST",
|
119
|
-
url: button.data('url'),
|
120
|
-
cache: false,
|
121
|
-
success: function(data) {
|
122
|
-
},
|
123
|
-
error: function(data) {
|
124
|
-
button.removeAttr('disabled');
|
125
|
-
}
|
126
|
-
});
|
127
|
-
|
128
|
-
},
|
129
|
-
disable_discovery = function(){
|
130
|
-
var form = $(form_id),
|
131
|
-
cancel = form.find('#cancel_discover');
|
132
|
-
form.find('input[type=text]').attr('disabled', 'disabled');
|
133
|
-
form.find('input[type=submit]').parent().hide();
|
134
|
-
cancel.removeAttr('disabled');
|
135
|
-
cancel.parent().show();
|
136
|
-
},
|
137
|
-
enable_discovery = function(){
|
138
|
-
var form = $(form_id);
|
139
|
-
form.find('input[type=text]').removeAttr('disabled');
|
140
|
-
form.find('input[type=submit]').parent().show();
|
141
|
-
form.find('#cancel_discover').parent().hide();
|
142
|
-
},
|
143
|
-
discovery_started = function() {
|
144
|
-
$(list_id).find('tbody').html('<tr><td></td><td></td></tr>');
|
145
|
-
$('#url_filter').val('');
|
146
|
-
init_updater();
|
147
|
-
},
|
148
|
-
discovery_ended = function(){
|
149
|
-
updater.stop();
|
150
|
-
KT.initial_repo_discovery.running = false;
|
151
|
-
updater = undefined;
|
152
|
-
enable_discovery();
|
153
|
-
},
|
154
|
-
on_checkbox_change = function(){
|
155
|
-
var count = selected().length;
|
156
|
-
if(count === 0){
|
157
|
-
$('#new_repos').attr('disabled', 'disabled');
|
158
|
-
}else {
|
159
|
-
$('#new_repos').removeAttr('disabled');
|
160
|
-
}
|
161
|
-
},
|
162
|
-
selected = function(){
|
163
|
-
var to_ret = [];
|
164
|
-
KT.utils.each($(list_id).find(":checked"), function(element){
|
165
|
-
to_ret.push($(element).val());
|
166
|
-
});
|
167
|
-
return to_ret;
|
168
|
-
},
|
169
|
-
clear_selections = function(){
|
170
|
-
$(list_id).find(":checked").removeAttr('checked');
|
171
|
-
};
|
172
|
-
|
173
|
-
return {
|
174
|
-
page_load: page_load,
|
175
|
-
page_close: page_close,
|
176
|
-
clear_selections: clear_selections,
|
177
|
-
init_updater: init_updater
|
178
|
-
};
|
179
|
-
})();
|
180
|
-
|
181
|
-
|
182
|
-
KT.discovery_templates = (function(){
|
183
|
-
var url_list = function(url_list, selected_list){
|
184
|
-
var html = '';
|
185
|
-
|
186
|
-
if(selected_list === undefined){
|
187
|
-
selected_list = [];
|
188
|
-
}
|
189
|
-
if (url_list.length === 0) {
|
190
|
-
return '<tr><td></td><td></td></tr>';
|
191
|
-
}
|
192
|
-
KT.utils.each(url_list, function(elem, index){
|
193
|
-
html += url_list_item(elem, selected_list, index % 2 === 0);
|
194
|
-
});
|
195
|
-
return html;
|
196
|
-
},
|
197
|
-
url_list_item = function(item, selected_list, odd){
|
198
|
-
var selected = '',
|
199
|
-
html = '',
|
200
|
-
alt = '';
|
201
|
-
if (!odd) {
|
202
|
-
alt = 'alt';
|
203
|
-
}
|
204
|
-
if (KT.utils.indexOf(selected_list, item.url) !== -1){
|
205
|
-
selected = 'checked';
|
206
|
-
}
|
207
|
-
html = '<tr class="' + alt + '"><td><label>';
|
208
|
-
html += '<input type="checkbox"' + selected + ' value="' + item.url + '"/>' + item.path + '</label>';
|
209
|
-
html += '</td>';
|
210
|
-
html += '<td>' + existing_tipsy(item.existing) + '</td></tr>';
|
211
|
-
return html;
|
212
|
-
},
|
213
|
-
existing_tipsy = function(existing_hash){
|
214
|
-
var html = '';
|
215
|
-
if (KT.utils.isEmpty(existing_hash)) {
|
216
|
-
return html;
|
217
|
-
}
|
218
|
-
|
219
|
-
html += '<span class="grid_3"><span class="check_icon-black">';
|
220
|
-
html += '<span class="hidden-text hidden"><span class="repo_tipsy la">';
|
221
|
-
html += katelloI18n.existing_repos_found + '<ul>';
|
222
|
-
KT.utils.each(existing_hash, function(repo_list, product_name){
|
223
|
-
html += existing_product(product_name, repo_list);
|
224
|
-
});
|
225
|
-
|
226
|
-
html += '</ul></span></span></span></span>';
|
227
|
-
return html;
|
228
|
-
},
|
229
|
-
existing_product = function(product_name, repo_list){
|
230
|
-
var html = '<li class="product_item">' + product_name + '<ul class="repo_list">';
|
231
|
-
KT.utils.each(repo_list, function(repo_name){
|
232
|
-
html += '<li class="repo_item">' + repo_name + '</li>';
|
233
|
-
});
|
234
|
-
|
235
|
-
return html + '</ul></li>';
|
236
|
-
};
|
237
|
-
|
238
|
-
return {
|
239
|
-
url_list:url_list
|
240
|
-
};
|
241
|
-
|
242
|
-
})();
|
243
|
-
|
244
|
-
|
245
|
-
KT.repo_discovery.new_page = (function(){
|
246
|
-
var panel_id = '#repo_creation',
|
247
|
-
product_select_id = "#existing_product_select",
|
248
|
-
form_id = '#discovered_creation',
|
249
|
-
product_details = '#product_details';
|
250
|
-
|
251
|
-
|
252
|
-
var init_panel = function(){
|
253
|
-
$(product_select_id).chosen();
|
254
|
-
$(panel_id).find('input[type=radio]').change(radio_change);
|
255
|
-
$(form_id).submit(submit_form);
|
256
|
-
$(window).unbind('repo.create');
|
257
|
-
$(window).bind('repo.create', create_repos);
|
258
|
-
},
|
259
|
-
submit_form = function(event) {
|
260
|
-
event.preventDefault();
|
261
|
-
var form = $(form_id),
|
262
|
-
product_details = form.find('#product_details'),
|
263
|
-
product_id, name, label, provider_id;
|
264
|
-
|
265
|
-
disable_form();
|
266
|
-
|
267
|
-
if (product_details.find('input[type=radio]:checked').val() === 'true'){
|
268
|
-
name = product_details.find('input[type=text][name=product_name]').val();
|
269
|
-
label = product_details.find('input[type=text][name=product_label]').val();
|
270
|
-
create_product(name, label, $('#new_product').data('url'));
|
271
|
-
}
|
272
|
-
else {
|
273
|
-
product_id = $(product_select_id).val();
|
274
|
-
initiate_repo_creation(product_id);
|
275
|
-
}
|
276
|
-
|
277
|
-
},
|
278
|
-
initiate_repo_creation = function(product_id) {
|
279
|
-
var repos = [],
|
280
|
-
provider_id = $(form_id).data('provider_id'),
|
281
|
-
create_url = KT.routes.provider_product_repositories_path(provider_id, product_id);
|
282
|
-
|
283
|
-
KT.utils.each($('.new_repo'), function(repo_div){
|
284
|
-
repo_div = $(repo_div);
|
285
|
-
var name = repo_div.find('.name_input').val(),
|
286
|
-
label = repo_div.find('.label_input').val(),
|
287
|
-
url = repo_div.find('input[type=hidden]').val(),
|
288
|
-
id = '#' + repo_div.attr('id'),
|
289
|
-
unprotected = $('#unprotected').find('input[type=checkbox]:checked').val() === '1';
|
290
|
-
repos.push({name:name, label:label, url:url, id:id, unprotected:unprotected});
|
291
|
-
});
|
292
|
-
$(window).trigger('repo.create', [create_url, repos]);
|
293
|
-
},
|
294
|
-
create_product = function(name, label, create_url){
|
295
|
-
$.ajax({
|
296
|
-
url:create_url,
|
297
|
-
type: 'POST',
|
298
|
-
data: {product:{name:name, label:label}},
|
299
|
-
success: function(data){
|
300
|
-
var product_div = $('#new_product');
|
301
|
-
product_div.find('.name_input').replaceWith(name);
|
302
|
-
product_div.find('.label_input').replaceWith(label);
|
303
|
-
initiate_repo_creation(data.id);
|
304
|
-
},
|
305
|
-
error: function(){
|
306
|
-
enable_form();
|
307
|
-
}
|
308
|
-
});
|
309
|
-
},
|
310
|
-
create_repos = function(event, create_url, repo_list){
|
311
|
-
var repo = repo_list.shift();
|
312
|
-
|
313
|
-
$.ajax({
|
314
|
-
url:create_url,
|
315
|
-
type: 'POST',
|
316
|
-
data: {'repo':repo, 'ignore_success_notice':true},
|
317
|
-
success:function(){
|
318
|
-
var repo_div = $(repo.id),
|
319
|
-
created_num, created_msg;
|
320
|
-
repo_div.removeClass('new_repo').addClass('created_repo');
|
321
|
-
repo_div.find('.name_input').replaceWith(repo.name);
|
322
|
-
repo_div.find('.label_input').replaceWith(repo.label);
|
323
|
-
|
324
|
-
if (repo_list.length !== 0){
|
325
|
-
$(window).trigger('repo.create', [create_url, repo_list]);
|
326
|
-
}
|
327
|
-
else {
|
328
|
-
KT.repo_discovery.clear_selections();
|
329
|
-
KT.repo_discovery.init_updater();
|
330
|
-
|
331
|
-
created_num = $('.created_repo').length;
|
332
|
-
if (created_num === 1) {
|
333
|
-
created_msg = katelloI18n.discovery_success_one;
|
334
|
-
}
|
335
|
-
else{
|
336
|
-
created_msg = katelloI18n.discovery_success_multi(created_num);
|
337
|
-
}
|
338
|
-
|
339
|
-
KT.panel.closeSubPanel($('#subpanel'));
|
340
|
-
notices.displayNotice('success', JSON.stringify({notices:[created_msg]}),
|
341
|
-
'repositories___create');
|
342
|
-
|
343
|
-
}
|
344
|
-
},
|
345
|
-
error: function(){
|
346
|
-
enable_form();
|
347
|
-
}
|
348
|
-
});
|
349
|
-
|
350
|
-
|
351
|
-
},
|
352
|
-
disable_form = function(){
|
353
|
-
$(form_id).find('input').attr('disabled', 'disabled');
|
354
|
-
$(product_select_id).attr('disabled', true).trigger("liszt:updated");
|
355
|
-
},
|
356
|
-
enable_form = function(){
|
357
|
-
$(form_id).find('input').removeAttr('disabled');
|
358
|
-
$(product_select_id).attr('disabled', false).trigger("liszt:updated");
|
359
|
-
},
|
360
|
-
radio_change = function(){
|
361
|
-
if ($(this).val() === 'true'){
|
362
|
-
$(product_select_id).attr('disabled', true).trigger("liszt:updated");
|
363
|
-
$('#new_product').show();
|
364
|
-
}
|
365
|
-
else {
|
366
|
-
$(product_select_id).attr('disabled', false).trigger("liszt:updated");
|
367
|
-
$('#new_product').hide();
|
368
|
-
}
|
369
|
-
};
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
return {
|
374
|
-
init_panel:init_panel
|
375
|
-
};
|
376
|
-
})();
|
@@ -1,17 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
Copyright 2014 Red Hat, Inc.
|
3
|
-
|
4
|
-
This software is licensed to you under the GNU General Public
|
5
|
-
License as published by the Free Software Foundation; either version
|
6
|
-
2 of the License (GPLv2) or (at your option) any later version.
|
7
|
-
There is NO WARRANTY for this software, express or implied,
|
8
|
-
including the implied warranties of MERCHANTABILITY,
|
9
|
-
NON-INFRINGEMENT, or FITNESS FOR A PARTICULAR PURPOSE. You should
|
10
|
-
have received a copy of GPLv2 along with this software; if not, see
|
11
|
-
http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
|
12
|
-
*/
|
13
|
-
|
14
|
-
|
15
|
-
$(document).ready(function() {
|
16
|
-
KT.repo_discovery.new_page.init_panel();
|
17
|
-
});
|
@@ -1,1033 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
Copyright 2014 Red Hat, Inc.
|
3
|
-
|
4
|
-
This software is licensed to you under the GNU General Public
|
5
|
-
License as published by the Free Software Foundation; either version
|
6
|
-
2 of the License (GPLv2) or (at your option) any later version.
|
7
|
-
There is NO WARRANTY for this software, express or implied,
|
8
|
-
including the implied warranties of MERCHANTABILITY,
|
9
|
-
NON-INFRINGEMENT, or FITNESS FOR A PARTICULAR PURPOSE. You should
|
10
|
-
have received a copy of GPLv2 along with this software; if not, see
|
11
|
-
http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
|
12
|
-
*/
|
13
|
-
|
14
|
-
var KT = (KT === undefined) ? {} : KT;
|
15
|
-
|
16
|
-
KT.comparison_grid = function(){
|
17
|
-
var templates = KT.comparison_grid.templates,
|
18
|
-
utils = KT.utils,
|
19
|
-
events,
|
20
|
-
models = KT.comparison_grid.models(),
|
21
|
-
num_columns_shown = 0,
|
22
|
-
grid_row_headers_el,
|
23
|
-
grid_content_el,
|
24
|
-
default_row_level = 0,
|
25
|
-
max_visible_columns = 7;
|
26
|
-
|
27
|
-
var init = function(){
|
28
|
-
events = KT.comparison_grid.events(this).init();
|
29
|
-
grid_row_headers_el = $('#grid_row_headers');
|
30
|
-
grid_content_el = $('#grid_content');
|
31
|
-
controls = KT.comparison_grid.controls(this);
|
32
|
-
default_row_level = 0;
|
33
|
-
},
|
34
|
-
add_row = function(id, name, type, cell_data, parent_id, comparable){
|
35
|
-
var cells = [],
|
36
|
-
cell_columns = utils.keys(cell_data),
|
37
|
-
has_children = models.rows.has_children(id),
|
38
|
-
row_element,
|
39
|
-
parent,
|
40
|
-
row_level = models.rows.get_nested_level(id) - 1 + default_row_level;
|
41
|
-
|
42
|
-
utils.each(models.columns, function(col){
|
43
|
-
in_column = utils.include(cell_columns, '' + col['id']) ? true : false;
|
44
|
-
|
45
|
-
if( in_column ){
|
46
|
-
cells.push({'in_column' : in_column, 'display' : cell_data[col['id']]['display'], 'span' : col['span'],
|
47
|
-
'id' : col['id'], 'hover' : cell_data[col['id']]['hover'],
|
48
|
-
'hover_details' : cell_data[col['id']]['hover_details'],
|
49
|
-
'comparable' : comparable, 'row_id' : id });
|
50
|
-
} else {
|
51
|
-
cells.push({ 'in_column' : in_column, 'id' : col['id'], 'span' : col['span'], 'row_id' : id });
|
52
|
-
}
|
53
|
-
});
|
54
|
-
|
55
|
-
add_row_header(id, name, type, row_level, has_children, parent_id);
|
56
|
-
|
57
|
-
row_element = templates.row(id, models.columns.length, cells, row_level, has_children, parent_id, name, type);
|
58
|
-
|
59
|
-
if( parent_id ){
|
60
|
-
parent = $('#child_list_' + parent_id);
|
61
|
-
} else {
|
62
|
-
parent = grid_content_el;
|
63
|
-
}
|
64
|
-
|
65
|
-
if( parent.children('.load_row').length > 0 ){
|
66
|
-
parent.children('.load_row').before(row_element);
|
67
|
-
} else {
|
68
|
-
parent.append(row_element);
|
69
|
-
}
|
70
|
-
},
|
71
|
-
add_metadata_row = function(id, parent_id, page_size, current, total){
|
72
|
-
var child_list;
|
73
|
-
|
74
|
-
if( $('.load_row[data-id="' + id + '"]').length === 0 ){
|
75
|
-
add_metadata_row_header(id, parent_id);
|
76
|
-
|
77
|
-
if( parent_id ){
|
78
|
-
child_list = $('#child_list_' + parent_id);
|
79
|
-
child_list.append(templates.load_more_row(id, page_size, current, total));
|
80
|
-
} else {
|
81
|
-
grid_content_el.append(templates.load_more_row(id, page_size, current, total));
|
82
|
-
}
|
83
|
-
}
|
84
|
-
},
|
85
|
-
add_metadata_row_header = function(id, parent_id) {
|
86
|
-
var child_list;
|
87
|
-
|
88
|
-
if( parent_id ){
|
89
|
-
child_list = $('#child_header_list_' + parent_id);
|
90
|
-
|
91
|
-
child_list.append(templates.load_more_row_header(id, parent_id));
|
92
|
-
} else {
|
93
|
-
grid_row_headers_el.append(templates.load_more_row_header(id, parent_id));
|
94
|
-
}
|
95
|
-
},
|
96
|
-
update_metadata_row = function(id, current, total){
|
97
|
-
var metadata_row = $('.load_row[data-id="' + id + '"]');
|
98
|
-
|
99
|
-
if( current === total ){
|
100
|
-
metadata_row.remove();
|
101
|
-
$('#row_header_' + id).remove();
|
102
|
-
} else {
|
103
|
-
metadata_row.find('span').html(katelloI18n.counts.replace('%C', current).replace('%T', total));
|
104
|
-
}
|
105
|
-
},
|
106
|
-
add_row_header = function(id, name, type, row_level, has_children, parent_id) {
|
107
|
-
var parent;
|
108
|
-
|
109
|
-
if( parent_id ){
|
110
|
-
parent = $('#child_header_list_' + parent_id);
|
111
|
-
} else {
|
112
|
-
parent = grid_row_headers_el;
|
113
|
-
}
|
114
|
-
|
115
|
-
if( parent.children('.load_row_header').length > 0 ) {
|
116
|
-
parent.children('.load_row_header').before(templates.row_header(id, name, type, row_level, has_children, parent_id));
|
117
|
-
} else {
|
118
|
-
parent.append(templates.row_header(id, name, type, row_level, has_children, parent_id));
|
119
|
-
}
|
120
|
-
},
|
121
|
-
add_rows = function(append) {
|
122
|
-
append = (append === undefined) ? false : append;
|
123
|
-
|
124
|
-
if( !append ){
|
125
|
-
grid_content_el.empty();
|
126
|
-
grid_row_headers_el.empty();
|
127
|
-
}
|
128
|
-
|
129
|
-
if( append ){
|
130
|
-
utils.each(append, function(row, key) {
|
131
|
-
if( row['metadata'] ){
|
132
|
-
update_metadata_row(row['id'], row['current'], row['total']);
|
133
|
-
} else {
|
134
|
-
add_row(row['id'], row['name'], row['data_type'], row['cells'], row['parent_id'], row['comparable']);
|
135
|
-
}
|
136
|
-
});
|
137
|
-
} else {
|
138
|
-
utils.each(models.rows.get(), function(row, key) {
|
139
|
-
if( row['metadata'] ){
|
140
|
-
add_metadata_row(row['id'], row['parent_id'], row['page_size'], row['current'], row['total']);
|
141
|
-
} else {
|
142
|
-
add_row(row['id'], row['name'], row['data_type'], row['cells'], row['parent_id'], row['comparable']);
|
143
|
-
}
|
144
|
-
});
|
145
|
-
}
|
146
|
-
|
147
|
-
utils.each(models.columns, function(column){
|
148
|
-
if( column['shown'] ){
|
149
|
-
$('.cell_' + column['id']).show();
|
150
|
-
} else {
|
151
|
-
$('.cell_' + column['id']).hide();
|
152
|
-
}
|
153
|
-
});
|
154
|
-
|
155
|
-
if( models.columns.length > max_visible_columns ){
|
156
|
-
$('.grid_row').css('width',
|
157
|
-
utils.reduce(models.columns, function(memo, col){ return ((parseInt(col['span'], 10) * 100) + memo); }, 0));
|
158
|
-
} else {
|
159
|
-
$('.grid_row').css('width', 100 * max_visible_columns);
|
160
|
-
}
|
161
|
-
|
162
|
-
$('.load_row').find('.spinner').css('visibility', 'hidden');
|
163
|
-
$('.load_row').find('a').removeClass('disabled');
|
164
|
-
|
165
|
-
$('.three-line-ellipsis').trunk8({
|
166
|
-
lines : 3
|
167
|
-
});
|
168
|
-
|
169
|
-
set_loading(false);
|
170
|
-
},
|
171
|
-
set_rows = function(data, initial) {
|
172
|
-
var append_rows, insert;
|
173
|
-
|
174
|
-
if( initial ){
|
175
|
-
models.rows.clear();
|
176
|
-
} else {
|
177
|
-
append_rows = [];
|
178
|
-
}
|
179
|
-
|
180
|
-
utils.each(data, function(item) {
|
181
|
-
if( item['metadata'] ){
|
182
|
-
insert = models.rows.insert_metadata(item['id'], item['parent_id'], item['page_size'], item['current_count'], item['total'], item['data']);
|
183
|
-
|
184
|
-
if( !initial ){
|
185
|
-
append_rows.push(insert);
|
186
|
-
}
|
187
|
-
} else {
|
188
|
-
insert = models.rows.insert(item['id'], item['name'], item['cols'], item['parent_id'], item['comparable'], item['data_type'], item['value']);
|
189
|
-
|
190
|
-
if( !initial ){
|
191
|
-
append_rows.push(insert);
|
192
|
-
}
|
193
|
-
}
|
194
|
-
});
|
195
|
-
|
196
|
-
if( initial ){
|
197
|
-
add_rows();
|
198
|
-
} else {
|
199
|
-
add_rows(append_rows);
|
200
|
-
}
|
201
|
-
},
|
202
|
-
add_columns = function() {
|
203
|
-
$('#column_headers').empty();
|
204
|
-
|
205
|
-
utils.each(models.columns, function(column) {
|
206
|
-
add_column_header(column['id'], column['to_display'], column['span']);
|
207
|
-
});
|
208
|
-
},
|
209
|
-
add_column_header = function(id, to_display, span) {
|
210
|
-
var column_headers = $('#column_headers');
|
211
|
-
|
212
|
-
column_headers.append(templates.column_header(id, to_display, span));
|
213
|
-
},
|
214
|
-
set_columns = function(data){
|
215
|
-
models.columns = [];
|
216
|
-
|
217
|
-
utils.each(data, function(col) {
|
218
|
-
var to_display, custom;
|
219
|
-
|
220
|
-
if( col['content'] ){
|
221
|
-
to_display = col['content']['custom'] ? col['content'] : col['content']['name'],
|
222
|
-
custom = col['content']['custom'] ? true : false;
|
223
|
-
} else {
|
224
|
-
to_display = col['name'];
|
225
|
-
custom = false;
|
226
|
-
}
|
227
|
-
|
228
|
-
models.columns.push({ 'id' : col['id'], 'to_display' : { 'content' : to_display, 'custom' : custom },
|
229
|
-
'span' : col['span'] ? col['span'] : 1 });
|
230
|
-
});
|
231
|
-
|
232
|
-
add_columns();
|
233
|
-
},
|
234
|
-
show_columns = function(data){
|
235
|
-
var last_visible,
|
236
|
-
previous_num_shown = num_columns_shown;
|
237
|
-
|
238
|
-
num_columns_shown = 0;
|
239
|
-
|
240
|
-
utils.each(models.columns, function(column){
|
241
|
-
if( data[column['id']] ){
|
242
|
-
column['shown'] = true;
|
243
|
-
num_columns_shown += parseInt(column['span'], 10);
|
244
|
-
$('.cell_' + column['id']).show();
|
245
|
-
$('#column_' + column['id']).show();
|
246
|
-
} else {
|
247
|
-
column['shown'] = false;
|
248
|
-
$('#column_' + column['id']).hide();
|
249
|
-
$('.cell_' + column['id']).hide();
|
250
|
-
}
|
251
|
-
});
|
252
|
-
|
253
|
-
$('#column_headers').width(num_columns_shown * 100 + 1);
|
254
|
-
|
255
|
-
if( num_columns_shown > max_visible_columns ){
|
256
|
-
|
257
|
-
if( previous_num_shown > num_columns_shown ){
|
258
|
-
if( $('#column_headers').find(':not(:hidden)').last().position().left + 100 === -($('#column_headers').position().left) + 400 ){
|
259
|
-
controls.horizontal_scroll.slide('right');
|
260
|
-
}
|
261
|
-
}
|
262
|
-
controls.horizontal_scroll.show();
|
263
|
-
$('#column_headers_window').width(100 * max_visible_columns + 1);
|
264
|
-
} else {
|
265
|
-
controls.horizontal_scroll.reset();
|
266
|
-
controls.horizontal_scroll.hide();
|
267
|
-
$('#column_headers_window').width(num_columns_shown * 100);
|
268
|
-
}
|
269
|
-
},
|
270
|
-
set_loading = function(show){
|
271
|
-
if( show ){
|
272
|
-
$('#grid_loading_screen').height($('#grid_content_window').height()).show();
|
273
|
-
} else {
|
274
|
-
$('#grid_loading_screen').hide();
|
275
|
-
}
|
276
|
-
},
|
277
|
-
set_mode = function(mode, options){
|
278
|
-
var columns_to_show = {};
|
279
|
-
options = options || {};
|
280
|
-
models.mode = (mode === undefined) ? models.mode : mode;
|
281
|
-
|
282
|
-
if( models.mode === 'results' ){
|
283
|
-
controls.column_selector.show();
|
284
|
-
utils.each(
|
285
|
-
utils.filter(models.columns,
|
286
|
-
function(col){
|
287
|
-
return col['shown'] === true;
|
288
|
-
}
|
289
|
-
),
|
290
|
-
function(element, index) {
|
291
|
-
columns_to_show[element['id']] = {};
|
292
|
-
}
|
293
|
-
);
|
294
|
-
show_columns(columns_to_show);
|
295
|
-
$('#grid_header').find('header h2[data-title="results"]').show();
|
296
|
-
$('#grid_header').find('header h2[data-title="details"]').hide();
|
297
|
-
$('#return_to_results_btn').hide();
|
298
|
-
} else if( models.mode === 'details' ){
|
299
|
-
controls.column_selector.hide();
|
300
|
-
show_columns(models.columns);
|
301
|
-
$('#grid_header').find('header h2[data-title="results"]').hide();
|
302
|
-
$('#grid_header').find('header h2[data-title="details"]').show();
|
303
|
-
$('#grid_header').find('header .button').show();
|
304
|
-
}
|
305
|
-
if(options['show_compare_btn']){
|
306
|
-
controls.comparison.show();
|
307
|
-
}
|
308
|
-
else{
|
309
|
-
controls.comparison.hide();
|
310
|
-
}
|
311
|
-
if(options['right_selector']){
|
312
|
-
controls.right_select.show();
|
313
|
-
}
|
314
|
-
else {
|
315
|
-
controls.right_select.hide();
|
316
|
-
}
|
317
|
-
if(options['left_selector']){
|
318
|
-
controls.left_select.show();
|
319
|
-
}
|
320
|
-
else {
|
321
|
-
controls.left_select.hide();
|
322
|
-
}
|
323
|
-
|
324
|
-
},
|
325
|
-
set_default_row_level = function(level) {
|
326
|
-
default_row_level = level;
|
327
|
-
},
|
328
|
-
set_left_select = function(options, selected){
|
329
|
-
controls.left_select.set(options, selected);
|
330
|
-
},
|
331
|
-
set_right_select = function(options, selected){
|
332
|
-
controls.right_select.set(options, selected);
|
333
|
-
},
|
334
|
-
set_title = function(title){
|
335
|
-
$('#grid_header').find('header h2[data-title="details"]').html(title);
|
336
|
-
},
|
337
|
-
set_templates = function(templates_object) {
|
338
|
-
templates = templates_object;
|
339
|
-
};
|
340
|
-
|
341
|
-
return {
|
342
|
-
init : init,
|
343
|
-
controls : function(){return controls;},
|
344
|
-
models : models,
|
345
|
-
export_data : models.export_data,
|
346
|
-
import_data : models.import_data,
|
347
|
-
add_rows : add_rows,
|
348
|
-
set_rows : set_rows,
|
349
|
-
set_columns : set_columns,
|
350
|
-
add_columns : add_columns,
|
351
|
-
show_columns : show_columns,
|
352
|
-
set_loading : set_loading,
|
353
|
-
set_mode : set_mode,
|
354
|
-
set_default_row_level : set_default_row_level,
|
355
|
-
set_left_select : set_left_select,
|
356
|
-
set_right_select : set_right_select,
|
357
|
-
set_title : set_title,
|
358
|
-
get_num_columns_shown : function(){ return num_columns_shown; },
|
359
|
-
get_max_visible_columns : function(){ return max_visible_columns; },
|
360
|
-
set_templates : set_templates
|
361
|
-
};
|
362
|
-
};
|
363
|
-
|
364
|
-
KT.comparison_grid.models = function() {
|
365
|
-
var self = this;
|
366
|
-
|
367
|
-
self.rows = KT.comparison_grid.models.rows();
|
368
|
-
self.columns = KT.comparison_grid.models.columns;
|
369
|
-
self.mode = "results";
|
370
|
-
|
371
|
-
self.export_data = function(type) {
|
372
|
-
if( type === "columns" ){
|
373
|
-
return { columns :$.extend(true, [], self.columns) };
|
374
|
-
} else if( type === "rows" ){
|
375
|
-
return { rows : $.extend(true, {}, self.rows.get()) };
|
376
|
-
} else if( type === "mode" ){
|
377
|
-
return { mode : self.mode };
|
378
|
-
} else {
|
379
|
-
return { columns : $.extend(true, [], self.columns),
|
380
|
-
rows : $.extend(true, {}, self.rows.get()),
|
381
|
-
mode : self.mode };
|
382
|
-
}
|
383
|
-
};
|
384
|
-
self.import_data = function(data) {
|
385
|
-
if( data['columns'] !== undefined ){
|
386
|
-
self.columns = data['columns'];
|
387
|
-
}
|
388
|
-
if( data['rows'] !== undefined ){
|
389
|
-
self.rows.set(data['rows']);
|
390
|
-
}
|
391
|
-
if( data['mode'] !== undefined ){
|
392
|
-
self.mode = data['mode'];
|
393
|
-
}
|
394
|
-
|
395
|
-
$(document).trigger('draw.comparison_grid');
|
396
|
-
};
|
397
|
-
|
398
|
-
return self;
|
399
|
-
|
400
|
-
};
|
401
|
-
|
402
|
-
KT.comparison_grid.models.columns = [];
|
403
|
-
|
404
|
-
KT.comparison_grid.models.rows = function(){
|
405
|
-
|
406
|
-
var rows = {},
|
407
|
-
|
408
|
-
clear = function() {
|
409
|
-
rows = {};
|
410
|
-
},
|
411
|
-
set = function(data) {
|
412
|
-
rows = data;
|
413
|
-
},
|
414
|
-
get = function(id) {
|
415
|
-
if( id === undefined ){
|
416
|
-
return rows;
|
417
|
-
} else {
|
418
|
-
return rows[id];
|
419
|
-
}
|
420
|
-
},
|
421
|
-
get_parent = function(id){
|
422
|
-
return rows[rows[id]['parent_id']];
|
423
|
-
},
|
424
|
-
get_children = function(id){
|
425
|
-
return rows[id]['child_ids'];
|
426
|
-
},
|
427
|
-
has_children = function(id){
|
428
|
-
return (rows[id]['child_ids'] === undefined) ? false : true;
|
429
|
-
},
|
430
|
-
get_nested_level = function(id) {
|
431
|
-
var level = 1,
|
432
|
-
parent = get_parent(id);
|
433
|
-
|
434
|
-
if( parent !== undefined ){
|
435
|
-
level += get_nested_level(parent['id']);
|
436
|
-
}
|
437
|
-
|
438
|
-
return level;
|
439
|
-
},
|
440
|
-
insert = function(id, name, cells, parent_id, comparable, data_type, value){
|
441
|
-
if( parent_id ){
|
442
|
-
rows[id] = { 'id' : id, 'name' : name, 'cells' : cells,
|
443
|
-
'parent_id' : parent_id, 'comparable' : comparable,
|
444
|
-
'data_type' : data_type, 'value' : value };
|
445
|
-
|
446
|
-
var parent = get_parent(id);
|
447
|
-
|
448
|
-
if (parent) {
|
449
|
-
if( parent['child_ids'] === undefined ){
|
450
|
-
parent['child_ids'] = [id];
|
451
|
-
} else {
|
452
|
-
parent['child_ids'].push(id);
|
453
|
-
}
|
454
|
-
}
|
455
|
-
} else {
|
456
|
-
rows[id] = { 'id' : id, 'name' : name, 'cells' : cells, 'comparable' : comparable, 'data_type' : data_type, 'value' : value };
|
457
|
-
}
|
458
|
-
|
459
|
-
return rows[id];
|
460
|
-
},
|
461
|
-
insert_metadata = function(id, parent_id, page_size, current, total, data){
|
462
|
-
rows[id] = { 'id' : id, 'parent_id' : parent_id, 'data' : data, 'metadata' : true,
|
463
|
-
'page_size' : page_size, 'current' : current, 'total' : total };
|
464
|
-
|
465
|
-
return rows[id];
|
466
|
-
};
|
467
|
-
|
468
|
-
return {
|
469
|
-
get : get,
|
470
|
-
set : set,
|
471
|
-
clear : clear,
|
472
|
-
insert : insert,
|
473
|
-
insert_metadata : insert_metadata,
|
474
|
-
get_parent : get_parent,
|
475
|
-
get_children : get_children,
|
476
|
-
has_children : has_children,
|
477
|
-
get_nested_level: get_nested_level
|
478
|
-
};
|
479
|
-
|
480
|
-
};
|
481
|
-
|
482
|
-
KT.comparison_grid.controls = function(grid) {
|
483
|
-
var column_selector = (function() {
|
484
|
-
var hide = function() {
|
485
|
-
$('#column_selector').hide();
|
486
|
-
$('.slide_arrow[data-arrow_direction="right"]').css({ right : '-1px' });
|
487
|
-
},
|
488
|
-
show = function() {
|
489
|
-
$('#column_selector').show();
|
490
|
-
$('.slide_arrow[data-arrow_direction="right"]').css({ right : '25px' });
|
491
|
-
};
|
492
|
-
|
493
|
-
return {
|
494
|
-
show : show,
|
495
|
-
hide : hide
|
496
|
-
};
|
497
|
-
|
498
|
-
}()),
|
499
|
-
|
500
|
-
horizontal_scroll = (function() {
|
501
|
-
var right_arrow = $('.slide_arrow[data-arrow_direction="right"]'),
|
502
|
-
right_arrow_trigger = right_arrow.find('.slide_trigger'),
|
503
|
-
left_arrow = $('.slide_arrow[data-arrow_direction="left"]'),
|
504
|
-
left_arrow_trigger = left_arrow.find('.slide_trigger'),
|
505
|
-
arrow = $('.slide_arrow'),
|
506
|
-
arrow_trigger = arrow.find('.slide_trigger'),
|
507
|
-
|
508
|
-
show = function() {
|
509
|
-
right_arrow.show();
|
510
|
-
left_arrow.show();
|
511
|
-
$('#more_columns_fade').show();
|
512
|
-
},
|
513
|
-
hide = function() {
|
514
|
-
right_arrow.hide();
|
515
|
-
left_arrow.hide();
|
516
|
-
$('#more_columns_fade').hide();
|
517
|
-
},
|
518
|
-
current_position = function(){
|
519
|
-
return $('#column_headers').position().left;
|
520
|
-
},
|
521
|
-
stop_position = function(){
|
522
|
-
return -((grid.get_num_columns_shown() - grid.get_max_visible_columns()) * 100);
|
523
|
-
},
|
524
|
-
reset = function(){
|
525
|
-
var distance = $('#grid_content').css('left');
|
526
|
-
|
527
|
-
$('#grid_content').animate({ 'left' : 0 }, 'fast');
|
528
|
-
$('#column_headers').animate({ 'left' : 0 }, 'fast',
|
529
|
-
function() {
|
530
|
-
set_arrow_states();
|
531
|
-
}
|
532
|
-
);
|
533
|
-
|
534
|
-
},
|
535
|
-
set_arrow_states = function() {
|
536
|
-
if( current_position() === 0 ){
|
537
|
-
left_arrow.find('span').addClass('disabled');
|
538
|
-
right_arrow.find('span').removeClass('disabled');
|
539
|
-
|
540
|
-
if( right_arrow.is(":visible") ){
|
541
|
-
$('#more_columns_fade').show();
|
542
|
-
}
|
543
|
-
} else if( stop_position() === current_position() ) {
|
544
|
-
right_arrow.find('span').addClass('disabled');
|
545
|
-
left_arrow.find('span').removeClass('disabled');
|
546
|
-
$('#more_columns_fade').hide();
|
547
|
-
} else {
|
548
|
-
right_arrow.find('span').removeClass('disabled');
|
549
|
-
left_arrow.find('span').removeClass('disabled');
|
550
|
-
if( right_arrow.is(":visible") ){
|
551
|
-
$('#more_columns_fade').show();
|
552
|
-
}
|
553
|
-
}
|
554
|
-
},
|
555
|
-
slide = function(direction) {
|
556
|
-
var position = (direction === 'left') ? '+=100' : '-=100';
|
557
|
-
|
558
|
-
$('#grid_content').animate({ 'left' : position }, 'fast');
|
559
|
-
$('#column_headers').animate({ 'left' : position }, 'fast',
|
560
|
-
function() {
|
561
|
-
set_arrow_states();
|
562
|
-
}
|
563
|
-
);
|
564
|
-
};
|
565
|
-
|
566
|
-
arrow_trigger.click(
|
567
|
-
function(){
|
568
|
-
var slide_arrow = $(this).parent(),
|
569
|
-
direction = slide_arrow.data('arrow_direction');
|
570
|
-
|
571
|
-
if( !slide_arrow.find('span').hasClass('disabled') ){
|
572
|
-
slide_arrow.find('span').addClass('disabled');
|
573
|
-
|
574
|
-
if( direction === "right" ){
|
575
|
-
if( stop_position() < current_position() && current_position() <= 0 ){
|
576
|
-
slide(direction);
|
577
|
-
}
|
578
|
-
} else if( direction === "left" ){
|
579
|
-
if( stop_position() <= current_position() && current_position() < 0 ){
|
580
|
-
slide(direction);
|
581
|
-
}
|
582
|
-
}
|
583
|
-
}
|
584
|
-
}
|
585
|
-
).hover(
|
586
|
-
function(){
|
587
|
-
if( !$(this).find('span').hasClass('disabled') ){
|
588
|
-
$(this).parent().addClass('slide_arrow_hover');
|
589
|
-
}
|
590
|
-
},
|
591
|
-
function(){
|
592
|
-
$(this).parent().removeClass('slide_arrow_hover');
|
593
|
-
}
|
594
|
-
);
|
595
|
-
|
596
|
-
return {
|
597
|
-
show : show,
|
598
|
-
hide : hide,
|
599
|
-
slide : slide,
|
600
|
-
reset : reset
|
601
|
-
};
|
602
|
-
}()),
|
603
|
-
|
604
|
-
generic_select = function(id){
|
605
|
-
var container = $(id),
|
606
|
-
selector = container.find('select'),
|
607
|
-
|
608
|
-
set = function(options, selected_id){
|
609
|
-
var html = "";
|
610
|
-
|
611
|
-
selector.empty();
|
612
|
-
KT.utils.each(options, function(option){
|
613
|
-
html += '<option value="' + option['id'] + '"' ;
|
614
|
-
if (option['id'] === selected_id){
|
615
|
-
html += "selected=selected";
|
616
|
-
}
|
617
|
-
html += '>' + option['name'] + '</option>';
|
618
|
-
});
|
619
|
-
|
620
|
-
selector.append(html);
|
621
|
-
selector.chosen({disable_search_threshold: 3});
|
622
|
-
selector.trigger("liszt:updated");
|
623
|
-
},
|
624
|
-
show = function(){
|
625
|
-
container.show();
|
626
|
-
},
|
627
|
-
hide = function(){
|
628
|
-
container.hide();
|
629
|
-
};
|
630
|
-
|
631
|
-
return {
|
632
|
-
set : set,
|
633
|
-
show : show,
|
634
|
-
hide : hide
|
635
|
-
};
|
636
|
-
},
|
637
|
-
comparison = (function(){
|
638
|
-
var show = function(){
|
639
|
-
var elements = $('.grid_cell').find('input[type="checkbox"]:checked');
|
640
|
-
|
641
|
-
$('#compare_btn').show();
|
642
|
-
|
643
|
-
if( elements.length < 2 ){
|
644
|
-
$('#compare_btn').addClass('disabled');
|
645
|
-
}
|
646
|
-
},
|
647
|
-
hide = function(){
|
648
|
-
$('#compare_btn').hide();
|
649
|
-
};
|
650
|
-
return {
|
651
|
-
show:show,
|
652
|
-
hide:hide
|
653
|
-
};
|
654
|
-
}()),
|
655
|
-
row_collapse = (function(){
|
656
|
-
var init = function(grid) {
|
657
|
-
$('.row_header[data-collapsed]').live('click', function(){
|
658
|
-
if( $(this).data('collapsed') ){
|
659
|
-
expand($(this).data('id'), grid.models.rows);
|
660
|
-
$(this).data('collapsed', false);
|
661
|
-
} else {
|
662
|
-
collapse($(this).data('id'), grid.models.rows);
|
663
|
-
$(this).data('collapsed', true);
|
664
|
-
}
|
665
|
-
});
|
666
|
-
},
|
667
|
-
show = function(id, should_show, rows){
|
668
|
-
if( should_show ){
|
669
|
-
$('#child_list_' + id).show();
|
670
|
-
$('#child_header_list_' + id).show();
|
671
|
-
} else {
|
672
|
-
$('#child_list_' + id).hide();
|
673
|
-
$('#child_header_list_' + id).hide();
|
674
|
-
}
|
675
|
-
},
|
676
|
-
collapse = function(id, rows){
|
677
|
-
var parent_row_header = $('#row_header_' + KT.common.escapeId(id));
|
678
|
-
|
679
|
-
show(id, false, rows);
|
680
|
-
|
681
|
-
parent_row_header.find('.icon-chevron-down').hide();
|
682
|
-
parent_row_header.find('.icon-chevron-right').show();
|
683
|
-
},
|
684
|
-
expand = function(id, rows){
|
685
|
-
var parent_row_header = $('#row_header_' + KT.common.escapeId(id));
|
686
|
-
|
687
|
-
show(id, true, rows);
|
688
|
-
|
689
|
-
parent_row_header.find('.icon-chevron-down').show();
|
690
|
-
parent_row_header.find('.icon-chevron-right').hide();
|
691
|
-
};
|
692
|
-
|
693
|
-
return {
|
694
|
-
init : init,
|
695
|
-
expand : expand,
|
696
|
-
collapse : collapse
|
697
|
-
};
|
698
|
-
}()).init(grid);
|
699
|
-
|
700
|
-
return {
|
701
|
-
horizontal_scroll : horizontal_scroll,
|
702
|
-
column_selector : column_selector,
|
703
|
-
row_collapse : row_collapse,
|
704
|
-
left_select : generic_select("#left_select"),
|
705
|
-
right_select : generic_select("#right_select"),
|
706
|
-
comparison : comparison
|
707
|
-
};
|
708
|
-
};
|
709
|
-
|
710
|
-
KT.comparison_grid.events = function(grid) {
|
711
|
-
var init = function() {
|
712
|
-
$(document).bind('draw.comparison_grid', function(event, data){
|
713
|
-
grid.set_loading(true);
|
714
|
-
grid.add_columns();
|
715
|
-
grid.add_rows();
|
716
|
-
grid.set_mode();
|
717
|
-
grid.set_loading(false);
|
718
|
-
});
|
719
|
-
|
720
|
-
$(document).bind('loading.comparison_grid', function(event, data){
|
721
|
-
grid.set_loading(true);
|
722
|
-
});
|
723
|
-
|
724
|
-
$(document).bind('show_more.comparison_grid', function(event, data){
|
725
|
-
grid.set_rows(data);
|
726
|
-
});
|
727
|
-
|
728
|
-
cell_hover();
|
729
|
-
details_view();
|
730
|
-
change_selectors();
|
731
|
-
load_row_links();
|
732
|
-
comparable_cells();
|
733
|
-
},
|
734
|
-
cell_hover = function() {
|
735
|
-
$('.grid_cell').live('hover', function(event){
|
736
|
-
if( $(this).data('hover') ){
|
737
|
-
if( event.type === 'mouseenter' ){
|
738
|
-
$(this).find('.grid_cell_hover').show();
|
739
|
-
}
|
740
|
-
|
741
|
-
if( event.type === 'mouseleave' ){
|
742
|
-
$(this).find('.grid_cell_hover').hide();
|
743
|
-
}
|
744
|
-
}
|
745
|
-
});
|
746
|
-
$('.hover_details').tipsy({ gravity : 'w', live : true, html : true });
|
747
|
-
},
|
748
|
-
details_view = function() {
|
749
|
-
$('#return_to_results_btn').live('click', function() {
|
750
|
-
grid.set_loading(true);
|
751
|
-
$(document).trigger('return_to_results.comparison_grid');
|
752
|
-
});
|
753
|
-
},
|
754
|
-
change_selectors = function() {
|
755
|
-
$('#left_select').find('select').live('change', function(){
|
756
|
-
$(document).trigger({ type : 'left_select.comparison_grid', value : $(this).val() });
|
757
|
-
});
|
758
|
-
$('#right_select').find('select').live('change', function(){
|
759
|
-
$(document).trigger({ type : 'right_select.comparison_grid', value : $(this).val() });
|
760
|
-
});
|
761
|
-
},
|
762
|
-
comparable_cells = function(){
|
763
|
-
$('#compare_btn').live('click', function(){
|
764
|
-
var elements = $('.grid_cell').find('input[type="checkbox"]:checked'),
|
765
|
-
selected = [],
|
766
|
-
type = "";
|
767
|
-
|
768
|
-
KT.utils.each(elements, function(item){
|
769
|
-
selected.push({ col_id : $(item).val(), row_id : $(item).attr('name') });
|
770
|
-
|
771
|
-
});
|
772
|
-
type = "compare_" + $("select#content").val() + ".comparison_grid";
|
773
|
-
$(document).trigger({ type : type, selected : selected });
|
774
|
-
});
|
775
|
-
$('.grid_cell').find('input[type="checkbox"]').live('click', function(){
|
776
|
-
var elements = $('.grid_cell').find('input[type="checkbox"]:checked');
|
777
|
-
|
778
|
-
if( elements.length < 2 ){
|
779
|
-
$('#compare_btn').addClass('disabled');
|
780
|
-
} else {
|
781
|
-
if( $('#compare_btn').hasClass('disabled') ){
|
782
|
-
$('#compare_btn').removeClass('disabled');
|
783
|
-
}
|
784
|
-
}
|
785
|
-
});
|
786
|
-
$('#compare_btn').tipsy({ gravity: 'w' });
|
787
|
-
},
|
788
|
-
load_row_links = function(){
|
789
|
-
$('.load_row_link').live('click', function(event){
|
790
|
-
var cell = grid.models.rows.get($(this).parent().data('id'));
|
791
|
-
event.preventDefault();
|
792
|
-
|
793
|
-
if( !$(this).hasClass('disabled') ){
|
794
|
-
$(this).addClass('disabled').parent().find('.spinner').css('visibility', 'visible');
|
795
|
-
$(document).trigger({type : 'load_more.comparison_grid', cell_data : cell['data'], offset : cell['current']});
|
796
|
-
}
|
797
|
-
});
|
798
|
-
};
|
799
|
-
|
800
|
-
return {
|
801
|
-
init : init
|
802
|
-
};
|
803
|
-
};
|
804
|
-
|
805
|
-
KT.comparison_grid.templates = (function(i18n) {
|
806
|
-
var auto_collapse_rows = [2, 3];
|
807
|
-
|
808
|
-
var cell = function(data, row_height) {
|
809
|
-
var display,
|
810
|
-
hover = data['hover'] ? data['hover'] : false,
|
811
|
-
hover_details = '',
|
812
|
-
html = $('<div/>', {
|
813
|
-
'data-span' : data['span'],
|
814
|
-
'class' : 'grid_cell cell_' + data['id']
|
815
|
-
});
|
816
|
-
|
817
|
-
if ( data['hover_details'] ) {
|
818
|
-
hover_details = $('<span/>', {
|
819
|
-
'class' : 'icon-circle hover_details',
|
820
|
-
'original-title' : data['hover_details']
|
821
|
-
});
|
822
|
-
}
|
823
|
-
|
824
|
-
if( data['in_column'] ){
|
825
|
-
if( data['display'] !== undefined ){
|
826
|
-
display = '<div class="grid_cell_data three-line-ellipsis">' + data['display'] + '</div>';
|
827
|
-
} else {
|
828
|
-
display = $('<i/>', { 'class' : "icon-circle" });
|
829
|
-
}
|
830
|
-
} else {
|
831
|
-
display = "<i>--</i>";
|
832
|
-
}
|
833
|
-
|
834
|
-
html.append(display);
|
835
|
-
|
836
|
-
if( hover ){
|
837
|
-
html.attr('data-hover', true);
|
838
|
-
|
839
|
-
if( row_height ){
|
840
|
-
html.append($('<span/>', { 'class' : "hidden grid_cell_hover " + row_height,
|
841
|
-
'data-span' : data['span'],
|
842
|
-
'html' : hover_details.before(hover) }));
|
843
|
-
} else {
|
844
|
-
html.append($('<span/>', { 'class' : "hidden grid_cell_hover",
|
845
|
-
'data-span' : data['span'],
|
846
|
-
'html' : hover_details.before(hover) }));
|
847
|
-
}
|
848
|
-
}
|
849
|
-
|
850
|
-
if( data['comparable'] && data['in_column'] ){
|
851
|
-
html.append($('<input/>', {
|
852
|
-
'type' : 'checkbox',
|
853
|
-
'name' : data['row_id'],
|
854
|
-
'value': data['id']
|
855
|
-
}));
|
856
|
-
}
|
857
|
-
|
858
|
-
return html;
|
859
|
-
},
|
860
|
-
row = function(id, num_columns, cell_data, row_level, has_children, parent_id, name, type) {
|
861
|
-
var i,
|
862
|
-
html = $('<div/>', {
|
863
|
-
'id' : 'grid_row_' + id,
|
864
|
-
'class' : 'grid_row grid_row_level_' + row_level
|
865
|
-
});
|
866
|
-
|
867
|
-
name = this.row_header_content(name, type);
|
868
|
-
if( parent_id !== undefined ){
|
869
|
-
html.attr('data-parent_id', parent_id);
|
870
|
-
}
|
871
|
-
|
872
|
-
if( name.length <= 30 ) {
|
873
|
-
for(i = 0; i < num_columns; i += 1){
|
874
|
-
html.append(cell(cell_data[i]));
|
875
|
-
}
|
876
|
-
} else if( name.length > 30 && name.length < 51 ) {
|
877
|
-
html.addClass('row_height_2');
|
878
|
-
for(i = 0; i < num_columns; i += 1){
|
879
|
-
html.append(cell(cell_data[i], 'row_height_2'));
|
880
|
-
}
|
881
|
-
|
882
|
-
} else if( name.length >= 51 ){
|
883
|
-
html.addClass('row_height_3');
|
884
|
-
for(i = 0; i < num_columns; i += 1){
|
885
|
-
html.append(cell(cell_data[i], 'row_height_3'));
|
886
|
-
}
|
887
|
-
}
|
888
|
-
|
889
|
-
if( has_children ){
|
890
|
-
html.attr('data-collapsed', "false");
|
891
|
-
}
|
892
|
-
|
893
|
-
var temp_html = $('<div/>');
|
894
|
-
|
895
|
-
temp_html.append(html);
|
896
|
-
|
897
|
-
if( has_children ){
|
898
|
-
if (KT.utils.contains(auto_collapse_rows, row_level)) {
|
899
|
-
temp_html.append($('<ul/>', { 'id' : 'child_list_' + id, 'class' : 'hidden' }));
|
900
|
-
} else {
|
901
|
-
temp_html.append($('<ul/>', { 'id' : 'child_list_' + id }));
|
902
|
-
}
|
903
|
-
}
|
904
|
-
|
905
|
-
return temp_html.html();
|
906
|
-
},
|
907
|
-
row_header_content = function(name, type) {
|
908
|
-
// override me
|
909
|
-
return name;
|
910
|
-
},
|
911
|
-
row_header = function(id, name, type, row_level, has_children, parent_id) {
|
912
|
-
var html = $('<li/>', {
|
913
|
-
'data-id' : id,
|
914
|
-
'id' : 'row_header_' + id,
|
915
|
-
'class' : 'row_header grid_row_level_' + row_level
|
916
|
-
});
|
917
|
-
|
918
|
-
if( parent_id !== undefined ){
|
919
|
-
html.attr('data-parent_id', parent_id);
|
920
|
-
}
|
921
|
-
name = this.row_header_content(name, type);
|
922
|
-
|
923
|
-
if( row_level === 2 ){
|
924
|
-
if( name.length > 30 && name.length < 51 ){
|
925
|
-
html.addClass('row_height_2');
|
926
|
-
html.append($('<span/>', { 'class': 'one-line-ellipsis'}).html(name));
|
927
|
-
} else if( name.length >= 51 && name.length <= 94 ){
|
928
|
-
html.addClass('row_height_3');
|
929
|
-
html.append($('<span/>', { 'class': 'one-line-ellipsis'}).html(name));
|
930
|
-
} else if( name.length > 94 ) {
|
931
|
-
html.addClass('row_height_3');
|
932
|
-
html.append($('<span/>', { 'class' : 'three-line-ellipsis tipsify', 'title' : name }).html(name));
|
933
|
-
} else {
|
934
|
-
html.append($('<span/>', { 'class': 'one-line-ellipsis'}).html(name));
|
935
|
-
}
|
936
|
-
} else if( row_level >= 3 ){
|
937
|
-
if( name.length > 30 ){
|
938
|
-
html.addClass('row_height_2');
|
939
|
-
}
|
940
|
-
html.append($('<span/>', { 'class': 'one-line-ellipsis'}).html(name));
|
941
|
-
} else {
|
942
|
-
if( (has_children && name.length > 26) || (parent_id && name.length > 28) || name.length > 28 ){
|
943
|
-
html.append($('<span/>', { 'class' : 'one-line-ellipsis tipsify', 'title' : name }).html(name));
|
944
|
-
} else {
|
945
|
-
html.append($('<span/>').html(name));
|
946
|
-
}
|
947
|
-
}
|
948
|
-
|
949
|
-
var temp_html = $('<div/>');
|
950
|
-
|
951
|
-
if( has_children ){
|
952
|
-
if (KT.utils.contains(auto_collapse_rows, row_level)) {
|
953
|
-
html.prepend(collapse_arrow({ open : false }));
|
954
|
-
html.attr('data-collapsed', "true");
|
955
|
-
temp_html.append(html);
|
956
|
-
temp_html.append($('<ul/>', { 'id' : 'child_header_list_' + id, 'class' : 'hidden' }));
|
957
|
-
} else {
|
958
|
-
html.prepend(collapse_arrow({ open : true }));
|
959
|
-
html.attr('data-collapsed', "false");
|
960
|
-
temp_html.append(html);
|
961
|
-
temp_html.append($('<ul/>', { 'id' : 'child_header_list_' + id }));
|
962
|
-
}
|
963
|
-
} else {
|
964
|
-
temp_html.append(html);
|
965
|
-
}
|
966
|
-
|
967
|
-
return temp_html.html();
|
968
|
-
},
|
969
|
-
column_header = function(id, to_display, span) {
|
970
|
-
var html = $('<li/>', {
|
971
|
-
'id' : 'column_' + id,
|
972
|
-
'data-id' : id,
|
973
|
-
'data-span' : span,
|
974
|
-
'class' : 'column_header hidden'
|
975
|
-
}).html(to_display['content']);
|
976
|
-
|
977
|
-
if( !to_display['custom'] ){
|
978
|
-
if( to_display['content'].length > span * 12 ){
|
979
|
-
html.addClass('tipsify one-line-ellipsis').attr('title', to_display['content']);
|
980
|
-
}
|
981
|
-
}
|
982
|
-
|
983
|
-
return html;
|
984
|
-
},
|
985
|
-
collapse_arrow = function(options){
|
986
|
-
var html;
|
987
|
-
|
988
|
-
if( options['open'] ){
|
989
|
-
html = '<i class="icon-chevron-down"/><i class="icon-chevron-right" style="display:none;"/>';
|
990
|
-
} else {
|
991
|
-
html = '<i class="icon-chevron-down" style="display:none;" /><i class="icon-chevron-right" />';
|
992
|
-
}
|
993
|
-
|
994
|
-
return html;
|
995
|
-
},
|
996
|
-
load_more_row = function(id, load_size, current, total){
|
997
|
-
var html = $('<div/>', {
|
998
|
-
'class' : 'load_row grid_row',
|
999
|
-
'data-id' : id
|
1000
|
-
});
|
1001
|
-
|
1002
|
-
html.append('<i class="fl spinner invisible" />');
|
1003
|
-
html.append('<a class="load_row_link fl" href="" >' + i18n.show_more.replace('%P', load_size) + '</a>');
|
1004
|
-
html.append('<i class="icon-chevron-down"/>');
|
1005
|
-
html.append($('<span/>').html(i18n.counts.replace('%C', current).replace('%T', total)));
|
1006
|
-
|
1007
|
-
return html;
|
1008
|
-
},
|
1009
|
-
load_more_row_header = function(id, parent_id){
|
1010
|
-
var html = $('<li/>', {
|
1011
|
-
'data-id' : id,
|
1012
|
-
'id' : 'row_header_' + id,
|
1013
|
-
'class' : 'one-line-ellipsis row_header load_row_header grid_row_level_3'
|
1014
|
-
});
|
1015
|
-
|
1016
|
-
if( parent_id !== undefined ){
|
1017
|
-
html.attr('data-parent_id', parent_id);
|
1018
|
-
}
|
1019
|
-
|
1020
|
-
return html;
|
1021
|
-
};
|
1022
|
-
|
1023
|
-
return {
|
1024
|
-
cell : cell,
|
1025
|
-
row : row,
|
1026
|
-
row_header : row_header,
|
1027
|
-
row_header_content : row_header_content,
|
1028
|
-
column_header : column_header,
|
1029
|
-
load_more_row_header : load_more_row_header,
|
1030
|
-
load_more_row : load_more_row,
|
1031
|
-
collapse_arrow : collapse_arrow
|
1032
|
-
};
|
1033
|
-
}(katelloI18n));
|