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.

Files changed (1222) hide show
  1. data/app/assets/javascripts/katello/common/env_select.js +0 -12
  2. data/app/assets/javascripts/katello/common/experimental/katello-globals.module.js +0 -13
  3. data/app/assets/javascripts/katello/common/index.js +0 -17
  4. data/app/assets/javascripts/katello/common/jquery.jeditable.custominputs.js +0 -44
  5. data/app/assets/javascripts/katello/common/katello.common.js +0 -13
  6. data/app/assets/javascripts/katello/common/katello.global.js +0 -13
  7. data/app/assets/javascripts/katello/common/katello.js +2 -70
  8. data/app/assets/javascripts/katello/common/katello_object.js +0 -13
  9. data/app/assets/javascripts/katello/common/menu.js +0 -13
  10. data/app/assets/javascripts/katello/common/vendor.js +0 -13
  11. data/app/assets/javascripts/katello/containers/container.js +0 -13
  12. data/app/assets/javascripts/katello/hosts/activation_key_edit.js +3 -3
  13. data/app/assets/javascripts/katello/hosts/host_and_hostgroup_edit.js +18 -4
  14. data/app/assets/javascripts/katello/html5/index.js +0 -12
  15. data/app/assets/javascripts/katello/organizations/download_certificate.js +0 -13
  16. data/app/assets/javascripts/katello/providers/provider_redhat.js +2 -14
  17. data/app/assets/javascripts/katello/providers/redhat/index.js +0 -13
  18. data/app/assets/javascripts/katello/sync_management/index.js +0 -13
  19. data/app/assets/javascripts/katello/sync_management/sync_management.js +2 -17
  20. data/app/assets/javascripts/katello/widgets/auto_complete.js +0 -12
  21. data/app/assets/javascripts/katello/widgets/env_content_view_selector.js +0 -13
  22. data/app/assets/javascripts/katello/widgets/filtertable/filtertable.js +0 -12
  23. data/app/assets/javascripts/katello/widgets/jquery.jeditable.helpers.js +0 -38
  24. data/app/assets/javascripts/katello/widgets/one_panel.js +0 -13
  25. data/app/assets/javascripts/katello/widgets/path_selector.js +0 -14
  26. data/app/assets/javascripts/katello/widgets/subpanel_new.js +0 -12
  27. data/app/assets/javascripts/katello/widgets/tabs.js +0 -13
  28. data/app/assets/stylesheets/katello/_katello_colors.scss +0 -2
  29. data/app/assets/stylesheets/katello/_katello_mixins.scss +0 -13
  30. data/app/assets/stylesheets/katello/_overrides.scss +0 -12
  31. data/app/assets/stylesheets/katello/contents.scss +0 -1
  32. data/app/assets/stylesheets/katello/katello.scss +0 -71
  33. data/app/controllers/katello/api/api_controller.rb +0 -12
  34. data/app/controllers/katello/api/rhsm/candlepin_proxies_controller.rb +29 -21
  35. data/app/controllers/katello/api/v2/activation_keys_controller.rb +14 -37
  36. data/app/controllers/katello/api/v2/api_controller.rb +12 -14
  37. data/app/controllers/katello/api/v2/capsule_content_controller.rb +0 -12
  38. data/app/controllers/katello/api/v2/capsules_controller.rb +0 -12
  39. data/app/controllers/katello/api/v2/content_uploads_controller.rb +0 -12
  40. data/app/controllers/katello/api/v2/content_view_filter_rules_controller.rb +0 -12
  41. data/app/controllers/katello/api/v2/content_view_filters_controller.rb +28 -76
  42. data/app/controllers/katello/api/v2/content_view_puppet_modules_controller.rb +23 -25
  43. data/app/controllers/katello/api/v2/content_view_versions_controller.rb +19 -25
  44. data/app/controllers/katello/api/v2/content_views_controller.rb +30 -52
  45. data/app/controllers/katello/api/v2/docker_images_controller.rb +0 -13
  46. data/app/controllers/katello/api/v2/docker_tags_controller.rb +0 -13
  47. data/app/controllers/katello/api/v2/environments_controller.rb +0 -21
  48. data/app/controllers/katello/api/v2/errata_controller.rb +18 -15
  49. data/app/controllers/katello/api/v2/gpg_keys_controller.rb +1 -13
  50. data/app/controllers/katello/api/v2/host_collections_controller.rb +14 -55
  51. data/app/controllers/katello/api/v2/organizations_controller.rb +26 -22
  52. data/app/controllers/katello/api/v2/package_groups_controller.rb +21 -13
  53. data/app/controllers/katello/api/v2/packages_controller.rb +19 -15
  54. data/app/controllers/katello/api/v2/ping_controller.rb +0 -12
  55. data/app/controllers/katello/api/v2/products_bulk_actions_controller.rb +0 -12
  56. data/app/controllers/katello/api/v2/products_controller.rb +42 -44
  57. data/app/controllers/katello/api/v2/puppet_modules_controller.rb +0 -19
  58. data/app/controllers/katello/api/v2/repositories_bulk_actions_controller.rb +0 -12
  59. data/app/controllers/katello/api/v2/repositories_controller.rb +73 -48
  60. data/app/controllers/katello/api/v2/repository_sets_controller.rb +7 -17
  61. data/app/controllers/katello/api/v2/root_controller.rb +0 -12
  62. data/app/controllers/katello/api/v2/subscriptions_controller.rb +71 -99
  63. data/app/controllers/katello/api/v2/sync_controller.rb +0 -12
  64. data/app/controllers/katello/api/v2/sync_plans_controller.rb +2 -32
  65. data/app/controllers/katello/api/v2/system_errata_controller.rb +38 -13
  66. data/app/controllers/katello/api/v2/system_packages_controller.rb +1 -13
  67. data/app/controllers/katello/api/v2/systems_bulk_actions_controller.rb +9 -20
  68. data/app/controllers/katello/api/v2/systems_controller.rb +63 -54
  69. data/app/controllers/katello/api/v2/uebercerts_controller.rb +0 -12
  70. data/app/controllers/katello/application_controller.rb +2 -42
  71. data/app/controllers/katello/auto_complete_search_controller.rb +0 -12
  72. data/app/controllers/katello/concerns/api/api_controller.rb +0 -12
  73. data/app/controllers/katello/concerns/api/v2/bulk_systems_extensions.rb +10 -16
  74. data/app/controllers/katello/concerns/api/v2/hostgroups_controller_extensions.rb +0 -12
  75. data/app/controllers/katello/concerns/api/v2/hosts_controller_extensions.rb +0 -12
  76. data/app/controllers/katello/concerns/api/v2/repository_content_controller.rb +100 -72
  77. data/app/controllers/katello/concerns/authorization/api/v2/content_views_controller.rb +0 -12
  78. data/app/controllers/katello/concerns/containers/steps_controller_extensions.rb +0 -12
  79. data/app/controllers/katello/concerns/filtered_auto_complete_search.rb +4 -14
  80. data/app/controllers/katello/concerns/hosts_controller_extensions.rb +0 -12
  81. data/app/controllers/katello/concerns/operatingsystems_controller_extensions.rb +0 -12
  82. data/app/controllers/katello/concerns/organizations_controller_extensions.rb +0 -12
  83. data/app/controllers/katello/errata_controller.rb +0 -12
  84. data/app/controllers/katello/errors_controller.rb +0 -12
  85. data/app/controllers/katello/failed_authentication_controller.rb +0 -14
  86. data/app/controllers/katello/http_errors.rb +0 -12
  87. data/app/controllers/katello/organizations_controller.rb +0 -13
  88. data/app/controllers/katello/products_controller.rb +37 -43
  89. data/app/controllers/katello/providers_controller.rb +1 -14
  90. data/app/controllers/katello/sort_column_list.rb +0 -12
  91. data/app/controllers/katello/sync_management_controller.rb +1 -74
  92. data/app/helpers/katello/activation_keys_helper.rb +0 -12
  93. data/app/helpers/katello/application_helper.rb +1 -34
  94. data/app/helpers/katello/concerns/foreman_docker/container_steps_helper_extensions.rb +0 -12
  95. data/app/helpers/katello/errata_mailer_helper.rb +6 -12
  96. data/app/helpers/katello/host_collection_events_helper.rb +0 -12
  97. data/app/helpers/katello/hosts_and_hostgroups_helper.rb +0 -12
  98. data/app/helpers/katello/katello_form_builder.rb +0 -12
  99. data/app/helpers/katello/katello_url_helper.rb +0 -12
  100. data/app/helpers/katello/katello_urls_helper.rb +1 -13
  101. data/app/helpers/katello/layout_helper.rb +6 -12
  102. data/app/helpers/katello/organizations_helper.rb +0 -12
  103. data/app/helpers/katello/packages_helper.rb +0 -12
  104. data/app/helpers/katello/products_helper.rb +0 -12
  105. data/app/helpers/katello/providers_helper.rb +2 -14
  106. data/app/helpers/katello/repositories_helper.rb +0 -12
  107. data/app/helpers/katello/subscriptions_helper.rb +0 -12
  108. data/app/helpers/katello/sync_management_helper.rb +0 -12
  109. data/app/helpers/katello/system_events_helper.rb +0 -12
  110. data/app/helpers/katello/system_packages_helper.rb +0 -12
  111. data/app/helpers/katello/taxonomy_helper.rb +0 -12
  112. data/app/helpers/katello/translation_helper.rb +0 -12
  113. data/app/lib/actions/abstract_async_task.rb +0 -12
  114. data/app/lib/actions/candlepin/abstract.rb +2 -13
  115. data/app/lib/actions/candlepin/abstract_async_task.rb +15 -12
  116. data/app/lib/actions/candlepin/activation_key/create.rb +0 -12
  117. data/app/lib/actions/candlepin/activation_key/destroy.rb +0 -12
  118. data/app/lib/actions/candlepin/activation_key/update.rb +0 -12
  119. data/app/lib/actions/candlepin/candlepin_listening_service.rb +12 -24
  120. data/app/lib/actions/candlepin/consumer/auto_attach_subscriptions.rb +0 -12
  121. data/app/lib/actions/candlepin/consumer/create.rb +3 -13
  122. data/app/lib/actions/candlepin/consumer/destroy.rb +0 -12
  123. data/app/lib/actions/candlepin/consumer/update.rb +0 -12
  124. data/app/lib/actions/candlepin/environment/create.rb +0 -12
  125. data/app/lib/actions/candlepin/environment/destroy.rb +0 -12
  126. data/app/lib/actions/candlepin/environment/set_content.rb +27 -29
  127. data/app/lib/actions/candlepin/import_pool_handler.rb +82 -0
  128. data/app/lib/actions/candlepin/listen_on_candlepin_events.rb +43 -33
  129. data/app/lib/actions/candlepin/owner/auto_attach.rb +0 -12
  130. data/app/lib/actions/candlepin/owner/create.rb +0 -12
  131. data/app/lib/actions/candlepin/owner/destroy.rb +0 -12
  132. data/app/lib/actions/candlepin/product/content_add.rb +0 -12
  133. data/app/lib/actions/candlepin/product/content_create.rb +0 -12
  134. data/app/lib/actions/candlepin/product/content_destroy.rb +0 -12
  135. data/app/lib/actions/candlepin/product/content_remove.rb +0 -12
  136. data/app/lib/actions/candlepin/product/content_update.rb +0 -12
  137. data/app/lib/actions/candlepin/product/create.rb +0 -12
  138. data/app/lib/actions/candlepin/product/create_unlimited_subscription.rb +0 -12
  139. data/app/lib/actions/candlepin/product/delete_pools.rb +0 -12
  140. data/app/lib/actions/candlepin/product/delete_subscriptions.rb +0 -12
  141. data/app/lib/actions/candlepin/product/destroy.rb +0 -12
  142. data/app/lib/actions/candlepin/product/update.rb +0 -13
  143. data/app/lib/actions/elastic_search/abstract.rb +1 -12
  144. data/app/lib/actions/elastic_search/provider/reindex_subscriptions.rb +0 -12
  145. data/app/lib/actions/elastic_search/reindex.rb +0 -12
  146. data/app/lib/actions/elastic_search/reindex_on_association_change.rb +0 -12
  147. data/app/lib/actions/elastic_search/repository/filtered_index_content.rb +2 -14
  148. data/app/lib/actions/elastic_search/repository/index_content.rb +0 -12
  149. data/app/lib/actions/elastic_search/repository/remove_packages.rb +0 -12
  150. data/app/lib/actions/foreman/environment/destroy.rb +0 -12
  151. data/app/lib/actions/helpers/presenter.rb +0 -12
  152. data/app/lib/actions/katello/activation_key/create.rb +1 -16
  153. data/app/lib/actions/katello/activation_key/destroy.rb +0 -13
  154. data/app/lib/actions/katello/activation_key/reassign.rb +0 -13
  155. data/app/lib/actions/katello/activation_key/update.rb +0 -13
  156. data/app/lib/actions/katello/capsule_content/configure_capsule.rb +0 -12
  157. data/app/lib/actions/katello/capsule_content/manage_bound_repositories.rb +0 -12
  158. data/app/lib/actions/katello/capsule_content/sync.rb +0 -12
  159. data/app/lib/actions/katello/capsule_content/update_without_content.rb +0 -12
  160. data/app/lib/actions/katello/content_view/add_to_environment.rb +0 -12
  161. data/app/lib/actions/katello/content_view/capsule_generate_and_sync.rb +0 -12
  162. data/app/lib/actions/katello/content_view/create.rb +0 -14
  163. data/app/lib/actions/katello/content_view/destroy.rb +0 -13
  164. data/app/lib/actions/katello/content_view/environment_create.rb +1 -13
  165. data/app/lib/actions/katello/content_view/errata_mail.rb +6 -12
  166. data/app/lib/actions/katello/content_view/incremental_updates.rb +0 -12
  167. data/app/lib/actions/katello/content_view/node_metadata_generate.rb +0 -12
  168. data/app/lib/actions/katello/content_view/presenters/incremental_updates_presenter.rb +2 -14
  169. data/app/lib/actions/katello/content_view/promote.rb +0 -12
  170. data/app/lib/actions/katello/content_view/publish.rb +3 -13
  171. data/app/lib/actions/katello/content_view/remove.rb +3 -17
  172. data/app/lib/actions/katello/content_view/remove_from_environment.rb +0 -12
  173. data/app/lib/actions/katello/content_view/remove_version.rb +1 -14
  174. data/app/lib/actions/katello/content_view/update.rb +0 -32
  175. data/app/lib/actions/katello/content_view/update_environment.rb +0 -12
  176. data/app/lib/actions/katello/content_view_environment/destroy.rb +0 -12
  177. data/app/lib/actions/katello/content_view_environment/reassign_objects.rb +0 -12
  178. data/app/lib/actions/katello/content_view_puppet_environment/clear.rb +0 -12
  179. data/app/lib/actions/katello/content_view_puppet_environment/clone.rb +2 -13
  180. data/app/lib/actions/katello/content_view_puppet_environment/clone_content.rb +9 -17
  181. data/app/lib/actions/katello/content_view_puppet_environment/create.rb +0 -14
  182. data/app/lib/actions/katello/content_view_puppet_environment/create_for_version.rb +0 -12
  183. data/app/lib/actions/katello/content_view_puppet_environment/destroy.rb +0 -13
  184. data/app/lib/actions/katello/content_view_puppet_module/destroy.rb +0 -12
  185. data/app/lib/actions/katello/content_view_version/destroy.rb +7 -15
  186. data/app/lib/actions/katello/content_view_version/incremental_update.rb +3 -15
  187. data/app/lib/actions/katello/environment/destroy.rb +0 -12
  188. data/app/lib/actions/katello/environment/library_create.rb +0 -12
  189. data/app/lib/actions/katello/foreman/abstract.rb +0 -12
  190. data/app/lib/actions/katello/foreman/content_update.rb +10 -21
  191. data/app/lib/actions/katello/organization/auto_attach_subscriptions.rb +0 -12
  192. data/app/lib/actions/katello/organization/create.rb +1 -13
  193. data/app/lib/actions/katello/organization/destroy.rb +1 -14
  194. data/app/lib/actions/katello/product/content_create.rb +0 -12
  195. data/app/lib/actions/katello/product/content_destroy.rb +0 -12
  196. data/app/lib/actions/katello/product/create.rb +0 -14
  197. data/app/lib/actions/katello/product/destroy.rb +5 -23
  198. data/app/lib/actions/katello/product/repositories_gpg_reset.rb +0 -12
  199. data/app/lib/actions/katello/product/update.rb +2 -16
  200. data/app/lib/actions/katello/provider/destroy.rb +0 -13
  201. data/app/lib/actions/katello/provider/manifest_delete.rb +0 -12
  202. data/app/lib/actions/katello/provider/manifest_import.rb +0 -12
  203. data/app/lib/actions/katello/provider/manifest_refresh.rb +0 -12
  204. data/app/lib/actions/katello/provider/update.rb +38 -0
  205. data/app/lib/actions/katello/repository/capsule_generate_and_sync.rb +0 -12
  206. data/app/lib/actions/katello/repository/clear.rb +0 -12
  207. data/app/lib/actions/katello/repository/clone_docker_content.rb +0 -12
  208. data/app/lib/actions/katello/repository/clone_to_environment.rb +0 -12
  209. data/app/lib/actions/katello/repository/clone_to_version.rb +0 -12
  210. data/app/lib/actions/katello/repository/clone_yum_content.rb +1 -12
  211. data/app/lib/actions/katello/repository/correct_checksum.rb +0 -12
  212. data/app/lib/actions/katello/repository/create.rb +0 -14
  213. data/app/lib/actions/katello/repository/destroy.rb +9 -14
  214. data/app/lib/actions/katello/repository/destroy_medium.rb +12 -0
  215. data/app/lib/actions/katello/repository/discover.rb +25 -24
  216. data/app/lib/actions/katello/repository/errata_mail.rb +6 -12
  217. data/app/lib/actions/katello/repository/finish_upload.rb +0 -12
  218. data/app/lib/actions/katello/repository/import_upload.rb +0 -12
  219. data/app/lib/actions/katello/repository/index_errata.rb +0 -12
  220. data/app/lib/actions/katello/repository/index_package_groups.rb +18 -0
  221. data/app/lib/actions/katello/repository/metadata_generate.rb +0 -12
  222. data/app/lib/actions/katello/repository/node_metadata_generate.rb +0 -12
  223. data/app/lib/actions/katello/repository/remove_content.rb +14 -25
  224. data/app/lib/actions/katello/repository/sync.rb +6 -17
  225. data/app/lib/actions/katello/repository/update.rb +3 -18
  226. data/app/lib/actions/katello/repository/update_media.rb +0 -12
  227. data/app/lib/actions/katello/repository/upload_files.rb +0 -12
  228. data/app/lib/actions/katello/repository_set/disable_repository.rb +16 -19
  229. data/app/lib/actions/katello/repository_set/enable_repository.rb +14 -20
  230. data/app/lib/actions/katello/repository_set/scan_cdn.rb +43 -20
  231. data/app/lib/actions/katello/sync_plan/add_products.rb +0 -12
  232. data/app/lib/actions/katello/sync_plan/destroy.rb +0 -12
  233. data/app/lib/actions/katello/sync_plan/remove_products.rb +0 -12
  234. data/app/lib/actions/katello/sync_plan/update.rb +0 -12
  235. data/app/lib/actions/katello/system/activation_keys.rb +0 -12
  236. data/app/lib/actions/katello/system/auto_attach_subscriptions.rb +2 -14
  237. data/app/lib/actions/katello/system/create.rb +2 -13
  238. data/app/lib/actions/katello/system/destroy.rb +0 -12
  239. data/app/lib/actions/katello/system/erratum/applicable_errata_install.rb +0 -12
  240. data/app/lib/actions/katello/system/erratum/install.rb +0 -12
  241. data/app/lib/actions/katello/system/generate_applicability.rb +1 -13
  242. data/app/lib/actions/katello/system/host_destroy.rb +0 -12
  243. data/app/lib/actions/katello/system/package/install.rb +0 -12
  244. data/app/lib/actions/katello/system/package/remove.rb +0 -12
  245. data/app/lib/actions/katello/system/package/update.rb +0 -12
  246. data/app/lib/actions/katello/system/package_group/install.rb +0 -12
  247. data/app/lib/actions/katello/system/package_group/remove.rb +0 -12
  248. data/app/lib/actions/katello/system/reassign.rb +0 -12
  249. data/app/lib/actions/katello/system/update.rb +4 -16
  250. data/app/lib/actions/middleware/backend_services_check.rb +40 -0
  251. data/app/lib/actions/middleware/candlepin_services_check.rb +9 -0
  252. data/app/lib/actions/middleware/elasticsearch_services_check.rb +9 -0
  253. data/app/lib/actions/middleware/keep_locale.rb +0 -12
  254. data/app/lib/actions/middleware/propagate_candlepin_errors.rb +0 -12
  255. data/app/lib/actions/middleware/pulp_services_check.rb +9 -0
  256. data/app/lib/actions/middleware/record_fixtures.rb +0 -12
  257. data/app/lib/actions/middleware/remote_action.rb +3 -15
  258. data/app/lib/actions/pulp/abstract.rb +1 -12
  259. data/app/lib/actions/pulp/abstract_async_task.rb +19 -12
  260. data/app/lib/actions/pulp/consumer.rb +0 -12
  261. data/app/lib/actions/pulp/consumer/abstract_content_action.rb +0 -12
  262. data/app/lib/actions/pulp/consumer/abstract_node_distributor_task.rb +0 -12
  263. data/app/lib/actions/pulp/consumer/abstract_sync_node_task.rb +0 -12
  264. data/app/lib/actions/pulp/consumer/activate_node.rb +0 -12
  265. data/app/lib/actions/pulp/consumer/bind_node_distributor.rb +0 -12
  266. data/app/lib/actions/pulp/consumer/content_install.rb +0 -12
  267. data/app/lib/actions/pulp/consumer/content_uninstall.rb +0 -12
  268. data/app/lib/actions/pulp/consumer/content_update.rb +0 -12
  269. data/app/lib/actions/pulp/consumer/create.rb +0 -12
  270. data/app/lib/actions/pulp/consumer/deactivate_node.rb +0 -12
  271. data/app/lib/actions/pulp/consumer/destroy.rb +0 -12
  272. data/app/lib/actions/pulp/consumer/generate_applicability.rb +0 -12
  273. data/app/lib/actions/pulp/consumer/sync_node.rb +0 -12
  274. data/app/lib/actions/pulp/consumer/unbind_node_distributor.rb +0 -12
  275. data/app/lib/actions/pulp/consumer/update.rb +0 -12
  276. data/app/lib/actions/pulp/content_view_puppet_environment/index_content.rb +17 -0
  277. data/app/lib/actions/pulp/expect_one_task.rb +0 -12
  278. data/app/lib/actions/pulp/repos/update.rb +0 -13
  279. data/app/lib/actions/pulp/repository/abstract_copy_content.rb +0 -12
  280. data/app/lib/actions/pulp/repository/abstract_remove_content.rb +0 -12
  281. data/app/lib/actions/pulp/repository/associate_distributor.rb +0 -12
  282. data/app/lib/actions/pulp/repository/copy_distribution.rb +0 -12
  283. data/app/lib/actions/pulp/repository/copy_docker_image.rb +0 -12
  284. data/app/lib/actions/pulp/repository/copy_docker_tag.rb +0 -13
  285. data/app/lib/actions/pulp/repository/copy_errata.rb +0 -12
  286. data/app/lib/actions/pulp/repository/copy_package_group.rb +0 -12
  287. data/app/lib/actions/pulp/repository/copy_puppet_module.rb +0 -12
  288. data/app/lib/actions/pulp/repository/copy_rpm.rb +1 -13
  289. data/app/lib/actions/pulp/repository/copy_yum_metadata_file.rb +0 -12
  290. data/app/lib/actions/pulp/repository/create.rb +0 -12
  291. data/app/lib/actions/pulp/repository/create_in_plan.rb +0 -12
  292. data/app/lib/actions/pulp/repository/create_upload_request.rb +0 -12
  293. data/app/lib/actions/pulp/repository/delete_upload_request.rb +0 -12
  294. data/app/lib/actions/pulp/repository/destroy.rb +0 -12
  295. data/app/lib/actions/pulp/repository/distributor_publish.rb +0 -12
  296. data/app/lib/actions/pulp/repository/import_upload.rb +0 -12
  297. data/app/lib/actions/pulp/repository/presenters/abstract_sync_presenter.rb +0 -12
  298. data/app/lib/actions/pulp/repository/presenters/docker_presenter.rb +1 -13
  299. data/app/lib/actions/pulp/repository/presenters/iso_presenter.rb +0 -12
  300. data/app/lib/actions/pulp/repository/presenters/puppet_presenter.rb +6 -15
  301. data/app/lib/actions/pulp/repository/presenters/yum_presenter.rb +1 -13
  302. data/app/lib/actions/pulp/repository/purge_empty_errata.rb +0 -12
  303. data/app/lib/actions/pulp/repository/purge_empty_package_groups.rb +3 -16
  304. data/app/lib/actions/pulp/repository/refresh.rb +0 -12
  305. data/app/lib/actions/pulp/repository/refresh_distributor.rb +0 -12
  306. data/app/lib/actions/pulp/repository/regenerate_applicability.rb +0 -12
  307. data/app/lib/actions/pulp/repository/remove_distribution.rb +0 -12
  308. data/app/lib/actions/pulp/repository/remove_docker_image.rb +0 -12
  309. data/app/lib/actions/pulp/repository/remove_errata.rb +0 -12
  310. data/app/lib/actions/pulp/repository/remove_package_group.rb +0 -12
  311. data/app/lib/actions/pulp/repository/remove_puppet_module.rb +0 -12
  312. data/app/lib/actions/pulp/repository/remove_rpm.rb +1 -13
  313. data/app/lib/actions/pulp/repository/remove_schedule.rb +0 -11
  314. data/app/lib/actions/pulp/repository/sync.rb +5 -17
  315. data/app/lib/actions/pulp/repository/update_importer.rb +0 -12
  316. data/app/lib/actions/pulp/repository/update_schedule.rb +0 -11
  317. data/app/lib/actions/pulp/repository/upload_file.rb +1 -13
  318. data/app/lib/katello/api/constraints/activation_key_constraint.rb +0 -12
  319. data/app/lib/katello/api/v2/error_handling.rb +5 -12
  320. data/app/lib/katello/bulk_actions.rb +2 -16
  321. data/app/lib/katello/concerns/renderer_extensions.rb +21 -0
  322. data/app/lib/katello/errors.rb +5 -13
  323. data/app/lib/katello/foreman.rb +0 -12
  324. data/app/lib/katello/glue/queue.rb +0 -12
  325. data/app/lib/katello/glue/task.rb +0 -12
  326. data/app/lib/katello/http_resource.rb +2 -14
  327. data/app/lib/katello/lazy_accessor.rb +2 -14
  328. data/app/lib/katello/mapping.rb +0 -12
  329. data/app/lib/katello/repo_discovery.rb +27 -40
  330. data/app/lib/katello/resources/candlepin.rb +23 -34
  331. data/app/lib/katello/resources/cdn.rb +42 -18
  332. data/app/lib/katello/util/cdn_var_substitutor.rb +21 -16
  333. data/app/lib/katello/util/data.rb +0 -12
  334. data/app/lib/katello/util/errata.rb +0 -12
  335. data/app/lib/katello/util/filter_clause_generator.rb +0 -12
  336. data/app/lib/katello/util/model.rb +0 -12
  337. data/app/lib/katello/util/package.rb +21 -51
  338. data/app/lib/katello/util/package_clause_generator.rb +1 -13
  339. data/app/lib/katello/util/package_filter.rb +16 -62
  340. data/app/lib/katello/util/report_table.rb +0 -12
  341. data/app/lib/katello/util/search.rb +0 -23
  342. data/app/lib/katello/util/support.rb +13 -12
  343. data/app/lib/katello/util/task_status.rb +0 -12
  344. data/app/lib/katello/util/thread_session.rb +10 -22
  345. data/app/lib/katello/util/url_matcher.rb +0 -12
  346. data/app/lib/katello/validators/content_validator.rb +0 -12
  347. data/app/lib/katello/validators/content_view_environment_validator.rb +0 -12
  348. data/app/lib/katello/validators/content_view_erratum_filter_rule_validator.rb +0 -12
  349. data/app/lib/katello/validators/content_view_filter_version_validator.rb +0 -12
  350. data/app/lib/katello/validators/content_view_puppet_module_validator.rb +4 -15
  351. data/app/lib/katello/validators/gpg_key_content_validator.rb +0 -11
  352. data/app/lib/katello/validators/katello_label_format_validator.rb +0 -12
  353. data/app/lib/katello/validators/katello_name_format_validator.rb +0 -11
  354. data/app/lib/katello/validators/katello_url_format_validator.rb +0 -12
  355. data/app/lib/katello/validators/library_presence_validator.rb +0 -12
  356. data/app/lib/katello/validators/no_trailing_space_validator.rb +0 -12
  357. data/app/lib/katello/validators/non_library_environment_validator.rb +0 -12
  358. data/app/lib/katello/validators/not_in_library_validator.rb +0 -12
  359. data/app/lib/katello/validators/path_descendents_validator.rb +0 -12
  360. data/app/lib/katello/validators/prior_validator.rb +0 -12
  361. data/app/lib/katello/validators/product_unique_attribute_validator.rb +1 -15
  362. data/app/lib/katello/validators/repo_disablement_validator.rb +0 -12
  363. data/app/lib/katello/validators/repository_unique_attribute_validator.rb +0 -12
  364. data/app/lib/katello/validators/self_reference_environment_validator.rb +0 -12
  365. data/app/lib/katello/validators/unique_field_in_org.rb +0 -12
  366. data/app/mailers/katello/errata_mailer.rb +0 -12
  367. data/app/models/katello/activation_key.rb +23 -46
  368. data/app/models/katello/authorization/activation_key.rb +0 -13
  369. data/app/models/katello/authorization/content_view.rb +0 -13
  370. data/app/models/katello/authorization/content_view_environment.rb +0 -12
  371. data/app/models/katello/authorization/content_view_history.rb +14 -0
  372. data/app/models/katello/authorization/content_view_version.rb +0 -12
  373. data/app/models/katello/authorization/gpg_key.rb +0 -13
  374. data/app/models/katello/authorization/host_collection.rb +0 -13
  375. data/app/models/katello/authorization/lifecycle_environment.rb +0 -13
  376. data/app/models/katello/authorization/organization.rb +0 -13
  377. data/app/models/katello/authorization/pool.rb +13 -0
  378. data/app/models/katello/authorization/product.rb +0 -13
  379. data/app/models/katello/authorization/repository.rb +8 -16
  380. data/app/models/katello/authorization/subscription.rb +17 -0
  381. data/app/models/katello/authorization/sync_plan.rb +0 -13
  382. data/app/models/katello/authorization/system.rb +0 -13
  383. data/app/models/katello/candlepin/content.rb +28 -46
  384. data/app/models/katello/candlepin/product_content.rb +5 -12
  385. data/app/models/katello/capsule_lifecycle_environment.rb +0 -12
  386. data/app/models/katello/concerns/container_extensions.rb +0 -12
  387. data/app/models/katello/concerns/docker_container_wizard_state_extensions.rb +0 -12
  388. data/app/models/katello/concerns/environment_extensions.rb +7 -13
  389. data/app/models/katello/concerns/host_managed_extensions.rb +17 -11
  390. data/app/models/katello/concerns/hostgroup_extensions.rb +0 -11
  391. data/app/models/katello/concerns/location_extensions.rb +1 -13
  392. data/app/models/katello/concerns/medium_extensions.rb +14 -15
  393. data/app/models/katello/concerns/operatingsystem_extensions.rb +29 -0
  394. data/app/models/katello/concerns/organization_extensions.rb +21 -53
  395. data/app/models/katello/{glue/pulp/pulp_content_unit.rb → concerns/pulp_database_unit.rb} +23 -42
  396. data/app/models/katello/concerns/redhat_extensions.rb +13 -54
  397. data/app/models/katello/concerns/smart_proxy_extensions.rb +1 -13
  398. data/app/models/katello/concerns/user_extensions.rb +2 -190
  399. data/app/models/katello/content_view.rb +51 -81
  400. data/app/models/katello/content_view_component.rb +0 -12
  401. data/app/models/katello/content_view_environment.rb +4 -20
  402. data/app/models/katello/content_view_erratum_filter.rb +0 -14
  403. data/app/models/katello/content_view_erratum_filter_rule.rb +1 -13
  404. data/app/models/katello/content_view_filter.rb +20 -27
  405. data/app/models/katello/content_view_history.rb +42 -14
  406. data/app/models/katello/content_view_package_filter.rb +11 -23
  407. data/app/models/katello/content_view_package_filter_rule.rb +1 -13
  408. data/app/models/katello/content_view_package_group_filter.rb +3 -19
  409. data/app/models/katello/content_view_package_group_filter_rule.rb +1 -13
  410. data/app/models/katello/content_view_puppet_environment.rb +19 -18
  411. data/app/models/katello/content_view_puppet_environment_puppet_module.rb +13 -0
  412. data/app/models/katello/content_view_puppet_module.rb +18 -36
  413. data/app/models/katello/content_view_repository.rb +0 -12
  414. data/app/models/katello/content_view_version.rb +59 -26
  415. data/app/models/katello/content_view_version_component.rb +0 -12
  416. data/app/models/katello/cp_consumer_user.rb +0 -12
  417. data/app/models/katello/docker_image.rb +2 -14
  418. data/app/models/katello/docker_tag.rb +5 -13
  419. data/app/models/katello/erratum.rb +54 -34
  420. data/app/models/katello/erratum_bugzilla.rb +0 -13
  421. data/app/models/katello/erratum_cve.rb +0 -13
  422. data/app/models/katello/erratum_package.rb +0 -13
  423. data/app/models/katello/ext/indexed_model.rb +1 -13
  424. data/app/models/katello/ext/label_from_name.rb +0 -12
  425. data/app/models/katello/glue.rb +1 -13
  426. data/app/models/katello/glue/candlepin/activation_key.rb +20 -18
  427. data/app/models/katello/glue/candlepin/candlepin_object.rb +52 -0
  428. data/app/models/katello/glue/candlepin/consumer.rb +23 -56
  429. data/app/models/katello/glue/candlepin/content.rb +1 -13
  430. data/app/models/katello/glue/candlepin/environment.rb +0 -12
  431. data/app/models/katello/glue/candlepin/owner.rb +3 -23
  432. data/app/models/katello/glue/candlepin/owner_info.rb +0 -12
  433. data/app/models/katello/glue/candlepin/pool.rb +84 -155
  434. data/app/models/katello/glue/candlepin/product.rb +0 -27
  435. data/app/models/katello/glue/candlepin/subscription.rb +58 -0
  436. data/app/models/katello/glue/elastic_search/backend_indexed_model.rb +2 -13
  437. data/app/models/katello/glue/elastic_search/content_view_erratum_filter_rule.rb +0 -12
  438. data/app/models/katello/glue/elastic_search/content_view_history.rb +1 -13
  439. data/app/models/katello/glue/elastic_search/content_view_package_filter_rule.rb +0 -12
  440. data/app/models/katello/glue/elastic_search/content_view_package_group_filter_rule.rb +0 -12
  441. data/app/models/katello/glue/elastic_search/facet_item.rb +0 -12
  442. data/app/models/katello/glue/elastic_search/host_collection.rb +0 -33
  443. data/app/models/katello/glue/elastic_search/items.rb +1 -13
  444. data/app/models/katello/glue/elastic_search/job.rb +0 -12
  445. data/app/models/katello/glue/elastic_search/system.rb +0 -25
  446. data/app/models/katello/glue/elastic_search/task_status.rb +0 -12
  447. data/app/models/katello/glue/provider.rb +31 -122
  448. data/app/models/katello/glue/pulp/consumer.rb +2 -26
  449. data/app/models/katello/glue/pulp/consumer_group.rb +0 -12
  450. data/app/models/katello/glue/pulp/pulp_errors.rb +0 -12
  451. data/app/models/katello/glue/pulp/repo.rb +116 -173
  452. data/app/models/katello/glue/pulp/repos.rb +40 -89
  453. data/app/models/katello/glue/pulp/simple_package.rb +0 -12
  454. data/app/models/katello/gpg_key.rb +1 -13
  455. data/app/models/katello/hash_util.rb +0 -12
  456. data/app/models/katello/host_collection.rb +17 -15
  457. data/app/models/katello/hypervisor.rb +1 -13
  458. data/app/models/katello/job.rb +1 -13
  459. data/app/models/katello/job_task.rb +0 -12
  460. data/app/models/katello/key_host_collection.rb +0 -13
  461. data/app/models/katello/kt_environment.rb +9 -35
  462. data/app/models/katello/model.rb +0 -12
  463. data/app/models/katello/package_group.rb +41 -15
  464. data/app/models/katello/ping.rb +66 -52
  465. data/app/models/katello/pool.rb +44 -31
  466. data/app/models/katello/pool_activation_key.rb +6 -0
  467. data/app/models/katello/product.rb +37 -35
  468. data/app/models/katello/provider.rb +9 -28
  469. data/app/models/katello/proxy_association_owner.rb +0 -12
  470. data/app/models/katello/pulp_sync_status.rb +1 -13
  471. data/app/models/katello/pulp_task_status.rb +1 -13
  472. data/app/models/katello/puppet_module.rb +56 -16
  473. data/app/models/katello/repository.rb +129 -64
  474. data/app/models/katello/repository_docker_image.rb +0 -13
  475. data/app/models/katello/repository_erratum.rb +0 -13
  476. data/app/models/katello/repository_package_group.rb +8 -0
  477. data/app/models/katello/repository_puppet_module.rb +9 -0
  478. data/app/models/katello/repository_rpm.rb +9 -0
  479. data/app/models/katello/rpm.rb +62 -0
  480. data/app/models/katello/subscription.rb +17 -0
  481. data/app/models/katello/subscription_product.rb +7 -0
  482. data/app/models/katello/sync_plan.rb +0 -12
  483. data/app/models/katello/system.rb +55 -36
  484. data/app/models/katello/system_activation_key.rb +0 -12
  485. data/app/models/katello/system_erratum.rb +0 -13
  486. data/app/models/katello/system_host_collection.rb +0 -13
  487. data/app/models/katello/system_repository.rb +0 -13
  488. data/app/models/katello/task_status.rb +1 -13
  489. data/app/models/setting/katello.rb +2 -1
  490. data/app/overrides/add_activation_keys_input.rb +4 -4
  491. data/app/overrides/add_organization_attributes.rb +4 -4
  492. data/app/overrides/add_smart_proxy_form.rb +1 -1
  493. data/app/overrides/foreman/activation_keys/_host_environment_select.html.erb +2 -2
  494. data/app/overrides/foreman/organizations/_edit_override.html.erb +1 -1
  495. data/app/overrides/override_taxonomy_actions.rb +1 -1
  496. data/app/presenters/katello/content_view_version_compare_presenter.rb +0 -12
  497. data/app/presenters/katello/relation_presenter.rb +0 -12
  498. data/app/presenters/katello/repository_presenter.rb +0 -12
  499. data/app/presenters/katello/sync_status_presenter.rb +71 -0
  500. data/app/services/client/cert.rb +0 -12
  501. data/app/services/katello/authentication/client_authentication.rb +1 -13
  502. data/app/services/katello/pulp/docker_image.rb +7 -0
  503. data/app/services/katello/pulp/erratum.rb +11 -0
  504. data/app/services/katello/pulp/package_group.rb +14 -0
  505. data/app/services/katello/pulp/pulp_content_unit.rb +57 -0
  506. data/app/services/katello/pulp/puppet_module.rb +16 -0
  507. data/app/services/katello/pulp/rpm.rb +41 -0
  508. data/app/services/katello/puppet_class_importer_extensions.rb +0 -11
  509. data/app/views/dashboard/_content_views_widget.html.erb +34 -0
  510. data/app/views/dashboard/_errata_widget.html.erb +35 -0
  511. data/app/views/dashboard/_host_collection_widget.html.erb +38 -0
  512. data/app/views/dashboard/_subscription_status_widget.html.erb +32 -0
  513. data/app/views/dashboard/_subscription_widget.html.erb +37 -0
  514. data/app/views/dashboard/_sync_widget.html.erb +32 -0
  515. data/app/views/foreman/unattended/kickstart-katello.erb +1 -1
  516. data/app/views/foreman/unattended/snippets/_subscription_manager_registration.erb +0 -5
  517. data/app/views/katello/api/v2/activation_keys/product_content.json.rabl +12 -2
  518. data/app/views/katello/api/v2/content_view_filters/show.json.rabl +1 -1
  519. data/app/views/katello/api/v2/content_view_histories/show.json.rabl +4 -0
  520. data/app/views/katello/api/v2/content_view_puppet_modules/create.json.rabl +3 -0
  521. data/app/views/katello/api/v2/content_view_puppet_modules/index.json.rabl +5 -1
  522. data/app/views/katello/api/v2/content_view_puppet_modules/show.json.rabl +0 -4
  523. data/app/views/katello/api/v2/content_view_versions/base.json.rabl +4 -0
  524. data/app/views/katello/api/v2/content_view_versions/index.json.rabl +5 -2
  525. data/app/views/katello/api/v2/content_views/_content_view.json.rabl +5 -1
  526. data/app/views/katello/api/v2/content_views/puppet_modules.json.rabl +1 -1
  527. data/app/views/katello/api/v2/environments/show.json.rabl +2 -2
  528. data/app/views/katello/api/v2/layouts/collection.json.erb +1 -0
  529. data/app/views/katello/api/v2/layouts/resource.json.erb +5 -0
  530. data/app/views/katello/api/v2/organizations/show.json.rabl +2 -3
  531. data/app/views/katello/api/v2/package_groups/backend.json.rabl +4 -0
  532. data/app/views/katello/api/v2/package_groups/base.json.rabl +19 -0
  533. data/app/views/katello/api/v2/package_groups/index.json.rabl +1 -1
  534. data/app/views/katello/api/v2/package_groups/show.json.rabl +2 -22
  535. data/app/views/katello/api/v2/packages/backend.json.rabl +8 -0
  536. data/app/views/katello/api/v2/packages/base.json.rabl +5 -0
  537. data/app/views/katello/api/v2/packages/index.json.rabl +5 -1
  538. data/app/views/katello/api/v2/packages/show.json.rabl +2 -5
  539. data/app/views/katello/api/v2/products/base.json.rabl +1 -1
  540. data/app/views/katello/api/v2/puppet_modules/backend.json.rabl +7 -0
  541. data/app/views/katello/api/v2/puppet_modules/base.json.rabl +8 -0
  542. data/app/views/katello/api/v2/puppet_modules/index.json.rabl +5 -1
  543. data/app/views/katello/api/v2/puppet_modules/name.json.rabl +1 -2
  544. data/app/views/katello/api/v2/puppet_modules/show.json.rabl +2 -17
  545. data/app/views/katello/api/v2/repositories/base.json.rabl +34 -0
  546. data/app/views/katello/api/v2/repositories/index.json.rabl +5 -1
  547. data/app/views/katello/api/v2/repositories/show.json.rabl +10 -30
  548. data/app/views/katello/api/v2/subscriptions/base.json.rabl +15 -0
  549. data/app/views/katello/api/v2/subscriptions/index.json.rabl +6 -1
  550. data/app/views/katello/api/v2/subscriptions/show.json.rabl +11 -23
  551. data/app/views/katello/api/v2/{systems/errata.json.rabl → system_errata/index.json.rabl} +1 -1
  552. data/app/views/katello/api/v2/systems/_content.json.rabl +17 -0
  553. data/app/views/katello/api/v2/systems/content_override.json.rabl +3 -0
  554. data/app/views/katello/api/v2/systems/product_content.json.rabl +3 -0
  555. data/app/views/katello/api/v2/systems/show.json.rabl +0 -4
  556. data/app/views/katello/errata_mailer/_erratum.html.erb +10 -0
  557. data/app/views/katello/errata_mailer/sync_errata.html.erb +3 -3
  558. data/app/views/katello/layouts/katello.html.erb +23 -0
  559. data/app/views/katello/providers/redhat/_enable_errors.html.erb +12 -0
  560. data/app/views/katello/providers/redhat/_errors.html.erb +19 -0
  561. data/app/views/katello/providers/redhat/_repo_sets.html.erb +56 -0
  562. data/app/views/katello/providers/redhat/_repos.html.erb +56 -0
  563. data/app/views/katello/providers/redhat/_tab.html.erb +9 -0
  564. data/app/views/katello/providers/redhat/show.html.erb +35 -0
  565. data/app/views/katello/sync_management/_children.html.erb +14 -0
  566. data/app/views/katello/sync_management/_controls.html.erb +30 -0
  567. data/app/views/katello/sync_management/_product.html.erb +27 -0
  568. data/app/views/katello/sync_management/_products.html.erb +40 -0
  569. data/app/views/katello/sync_management/_repo.html.erb +43 -0
  570. data/app/views/katello/sync_management/_sync_plans.html.erb +23 -0
  571. data/app/views/katello/sync_management/index.html.erb +26 -0
  572. data/config/initializers/inflections.rb +0 -1
  573. data/config/initializers/runcible.rb +1 -1
  574. data/config/katello.yaml.example +91 -0
  575. data/config/katello.yml +223 -16
  576. data/config/katello_defaults.yml +0 -236
  577. data/config/routes.rb +1 -129
  578. data/config/routes/api/v2.rb +45 -29
  579. data/config/routes/overrides.rb +1 -13
  580. data/db/migrate/20140626204657_add_unlimited_to_activation_keys.rb +14 -10
  581. data/db/migrate/20140626204902_add_unlimited_to_host_collection.rb +14 -10
  582. data/db/migrate/20141003210742_add_docker_container_registry_url_to_providers.rb +0 -2
  583. data/db/migrate/20141209103005_disown_foreman_templates.rb +5 -1
  584. data/db/migrate/20150224083608_remove_docker_registry_url.rb +9 -0
  585. data/db/migrate/20150423134004_add_content_host_id_to_smart_proxy.rb +0 -15
  586. data/db/migrate/20150505180030_change_errata_timestamps_to_dates.rb +15 -0
  587. data/db/migrate/20150507131145_update_composite_default_for_content_view.rb +14 -0
  588. data/db/migrate/20150602153753_remove_help_tips.rb +16 -0
  589. data/db/migrate/20150602153754_remove_search_histories.rb +17 -0
  590. data/db/migrate/20150602153755_remove_search_favorites.rb +17 -0
  591. data/db/migrate/20150602153756_remove_user_notices.rb +16 -0
  592. data/db/migrate/20150602153757_remove_notices.rb +20 -0
  593. data/db/migrate/20150603045418_remove_user_fields.rb +18 -0
  594. data/db/migrate/20150606021722_create_puppet_modules.rb +58 -0
  595. data/db/migrate/20150611140455_remove_default_and_custom_info.rb +5 -0
  596. data/db/migrate/20150613134559_add_rpm.rb +38 -0
  597. data/db/migrate/20150623135424_create_package_groups.rb +29 -0
  598. data/db/migrate/20150715142649_assign_content_host_to_smart_proxies.rb +21 -0
  599. data/db/migrate/20150717142559_add_distributions_to_repository.rb +10 -0
  600. data/db/migrate/20150813185339_create_subscriptions.rb +82 -0
  601. data/db/migrate/20150901213759_remove_distributors.rb +25 -0
  602. data/db/migrate/20150902164543_remove_apply_info_task_id_from_taxonomies.rb +5 -0
  603. data/db/migrate/20150908222711_drop_marketing_engineering_products.rb +21 -0
  604. data/db/seeds.rb +3 -14
  605. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activation-key.factory.js +3 -15
  606. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activation-keys.controller.js +5 -18
  607. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activation-keys.module.js +0 -13
  608. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activationKeyConsumed.filter.js +0 -13
  609. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-add-host-collections.controller.js +10 -23
  610. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-add-subscriptions.controller.js +16 -28
  611. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-associations.controller.js +0 -13
  612. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-details-info.controller.js +12 -16
  613. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-details.controller.js +1 -14
  614. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-host-collections.controller.js +10 -23
  615. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-product-details.controller.js +14 -19
  616. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-products.controller.js +0 -13
  617. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-subscriptions.controller.js +16 -29
  618. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/views/activation-key-add-subscriptions.html +59 -86
  619. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/views/activation-key-associations-content-hosts.html +6 -6
  620. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/views/activation-key-host-collections-table.html +29 -29
  621. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/views/activation-key-info.html +7 -3
  622. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/views/activation-key-subscriptions-list.html +55 -79
  623. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/new/new-activation-key.controller.js +13 -26
  624. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/views/activation-keys-table-full.html +1 -1
  625. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/bastion-katello-bootstrap.js +1 -14
  626. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/bastion_katello.js +0 -15
  627. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/capsules/capsule.factory.js +0 -13
  628. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/capsules/capsules.module.js +0 -13
  629. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/content-hosts-bulk-action-environment.controller.js +9 -22
  630. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/content-hosts-bulk-action-errata.controller.js +14 -28
  631. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/content-hosts-bulk-action-host-collections.controller.js +11 -24
  632. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/content-hosts-bulk-action-packages.controller.js +20 -33
  633. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/content-hosts-bulk-action-subscriptions.controller.js +16 -29
  634. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/content-hosts-bulk-action.controller.js +12 -16
  635. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/views/bulk-actions-environment.html +4 -4
  636. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/views/bulk-actions-errata.html +7 -8
  637. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/views/bulk-actions-host-collections.html +4 -7
  638. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-host-erratum.factory.js +1 -13
  639. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-host-events.controller.js +0 -14
  640. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-host-package.factory.js +0 -13
  641. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-host-register.controller.js +0 -13
  642. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-host-status.controller.js +0 -13
  643. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-host.factory.js +1 -14
  644. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-hosts-helper.service.js +37 -50
  645. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-hosts.controller.js +7 -19
  646. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-hosts.module.js +1 -14
  647. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-errata.controller.js +24 -27
  648. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-packages.controller.js +4 -17
  649. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-errata.html +15 -4
  650. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-packages.html +49 -47
  651. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-add-host-collections.controller.js +8 -21
  652. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-add-subscriptions.controller.js +22 -26
  653. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-base-subscriptions.controller.js +11 -34
  654. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-details-info.controller.js +40 -104
  655. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-details.controller.js +1 -14
  656. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-host-collections.controller.js +8 -21
  657. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-product-details.controller.js +14 -19
  658. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-products.controller.js +0 -13
  659. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-subscriptions.controller.js +20 -62
  660. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-add-subscriptions.html +61 -96
  661. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-details.html +8 -3
  662. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-events.html +21 -19
  663. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-info.html +3 -33
  664. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-subscriptions-list.html +59 -91
  665. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/host-collections-table.html +44 -42
  666. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/views/content-hosts-table-full.html +0 -5
  667. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/views/content-hosts.html +3 -0
  668. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/views/register.html +1 -1
  669. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/content-view.factory.js +3 -14
  670. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/content-views.controller.js +4 -17
  671. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/content-views.module.js +0 -13
  672. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/content-views.routes.js +0 -13
  673. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/deletion/content-view-deletion.controller.js +12 -25
  674. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/deletion/content-view-version-deletion-activation-keys.controller.js +7 -20
  675. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/deletion/content-view-version-deletion-confirm.controller.js +18 -30
  676. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/deletion/content-view-version-deletion-content-hosts.controller.js +8 -21
  677. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/deletion/content-view-version-deletion-environments.controller.js +5 -19
  678. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/deletion/content-view-version-deletion.controller.js +9 -25
  679. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-available-docker-repositories.controller.js +4 -17
  680. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-available-puppet-modules.controller.js +0 -13
  681. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-available-repositories.controller.js +4 -17
  682. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-composite-available-content-views.controller.js +9 -21
  683. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-composite-content-views-list.controller.js +0 -13
  684. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-details-history.controller.js +2 -15
  685. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-details.controller.js +77 -88
  686. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-docker-repositories-list.controller.js +3 -13
  687. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-promotion.controller.js +60 -32
  688. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-publish.controller.js +9 -22
  689. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-repositories-list.controller.js +3 -13
  690. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-repositories.service.js +14 -27
  691. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-versions.controller.js +34 -48
  692. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/available-errata-filter.controller.js +24 -35
  693. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/available-package-group-filter.controller.js +29 -35
  694. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/date-type-errata-filter.controller.js +9 -22
  695. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/edit-filter.controller.js +3 -13
  696. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/errata-filter-list.controller.js +34 -47
  697. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/errata-filter.controller.js +0 -13
  698. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/filter-content-type.filter.js +0 -13
  699. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/filter-details.controller.js +0 -13
  700. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/filter-helper.service.js +1 -14
  701. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/filter-repositories.controller.js +2 -15
  702. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/filter-type.filter.js +0 -13
  703. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/filter.factory.js +3 -15
  704. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/filters.controller.js +16 -29
  705. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/new-filter.controller.js +33 -46
  706. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/package-filter.controller.js +61 -74
  707. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/package-group-filter.controller.js +0 -13
  708. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/package-group-list-filter.controller.js +25 -36
  709. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/rule.factory.js +1 -14
  710. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/views/edit-filter.html +18 -16
  711. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/views/filter-repositories.html +0 -22
  712. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/views/filters.html +6 -7
  713. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/views/new-filter.html +1 -1
  714. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/views/package-filter-details.html +4 -4
  715. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/views/package-filter.html +1 -1
  716. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/puppet-modules/content-view-puppet-module-names.controller.js +0 -13
  717. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/puppet-modules/content-view-puppet-module-versions.controller.js +2 -15
  718. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/puppet-modules/content-view-puppet-module.factory.js +3 -14
  719. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/puppet-modules/content-view-puppet-modules.controller.js +3 -15
  720. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/puppet-modules/views/content-view-puppet-module-names.html +3 -3
  721. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/puppet-modules/views/content-view-puppet-modules.html +3 -12
  722. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-composite-content-views-list.html +1 -1
  723. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-details-history.html +2 -0
  724. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-details.html +1 -1
  725. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-docker-repositories.html +46 -50
  726. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-promotion.html +12 -1
  727. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-repositories.html +51 -55
  728. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-versions.html +38 -38
  729. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/new/content-view-new.controller.js +15 -28
  730. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/content-view-version-content.controller.js +9 -21
  731. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/content-view-version.controller.js +0 -13
  732. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/content-view-version.factory.js +1 -13
  733. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/content-view-versions.module.js +0 -13
  734. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/views/content-view-version-details.html +1 -1
  735. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/views/content-view-version-package-groups.html +8 -4
  736. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/views/content-view-version-packages.html +8 -4
  737. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/views/content-views-table-full.html +1 -7
  738. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/views/content-views.html +4 -0
  739. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-images/docker-image.factory.js +0 -13
  740. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-images/docker-images.module.js +0 -13
  741. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/details/docker-tags-details.controller.js +7 -21
  742. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/docker-tags.controller.js +4 -17
  743. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/docker-tags.factory.js +0 -13
  744. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/docker-tags.module.js +0 -13
  745. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/docker-tags.routes.js +0 -13
  746. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/views/docker-tags.html +4 -0
  747. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/content.service.js +0 -13
  748. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/details/environment-content.controller.js +8 -21
  749. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/details/environment.controller.js +2 -14
  750. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/details/views/environment-content-views.html +3 -7
  751. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/details/views/environment-docker.html +4 -5
  752. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/details/views/environment-errata.html +4 -5
  753. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/details/views/environment-packages.html +4 -5
  754. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/details/views/environment-puppet-modules.html +4 -5
  755. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/details/views/environment-repositories.html +4 -5
  756. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/environment.factory.js +1 -14
  757. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/environments.controller.js +0 -13
  758. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/environments.module.js +0 -13
  759. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/environments.routes.js +0 -13
  760. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/new-environment.controller.js +12 -25
  761. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/apply-errata.controller.js +17 -28
  762. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/details/errata-content-hosts.controller.js +5 -16
  763. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/details/errata-details-repositories.controller.js +1 -14
  764. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/details/errata-details.controller.js +0 -13
  765. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/details/views/errata-details-content-hosts.html +7 -8
  766. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/details/views/errata-details-info.html +3 -1
  767. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/details/views/errata-details-repositories.html +7 -14
  768. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/errata-counts.directive.js +0 -13
  769. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/errata-severity.filter.js +0 -13
  770. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/errata-type.filter.js +0 -13
  771. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/errata.controller.js +20 -29
  772. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/errata.module.js +0 -13
  773. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/errata.routes.js +3 -16
  774. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/erratum.factory.js +0 -13
  775. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/views/apply-errata-confirm.html +8 -4
  776. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/views/errata.html +13 -2
  777. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/gpg-keys/details/gpg-key-details-info.controller.js +0 -13
  778. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/gpg-keys/details/gpg-key-details.controller.js +0 -13
  779. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/gpg-keys/gpg-key.factory.js +0 -13
  780. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/gpg-keys/gpg-keys.controller.js +5 -18
  781. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/gpg-keys/gpg-keys.module.js +0 -13
  782. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/gpg-keys/new/new-gpg-key.controller.js +1 -14
  783. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/details/host-collection-add-content-hosts.controller.js +11 -24
  784. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/details/host-collection-content-hosts.controller.js +5 -18
  785. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/details/host-collection-details.controller.js +1 -14
  786. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/details/views/host-collection-add-content-hosts.html +39 -37
  787. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/details/views/host-collection-content-hosts-list.html +34 -32
  788. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collection.factory.js +2 -14
  789. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collections.controller.js +5 -18
  790. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collections.module.js +0 -15
  791. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/new/host-collection-form.controller.js +8 -21
  792. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/new/new-host-collection.controller.js +0 -13
  793. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/README +12 -0
  794. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/bastion_katello.pot +4484 -0
  795. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/de.po +5324 -0
  796. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/es.po +5290 -0
  797. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/fr.po +5363 -0
  798. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/it.po +5349 -0
  799. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/ja.po +5281 -0
  800. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/ko.po +5191 -0
  801. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/pt_BR.po +5321 -0
  802. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/ru.po +5171 -0
  803. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/zh_CN.po +5103 -0
  804. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/locale/zh_TW.po +5106 -0
  805. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/i18n/translations.js +14 -0
  806. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/organizations/check-current-organization.run.js +0 -14
  807. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/organizations/organization-selector.controller.js +0 -14
  808. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/organizations/organization.factory.js +5 -17
  809. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/organizations/organizations.module.js +0 -13
  810. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/organizations/organizations.routes.js +0 -13
  811. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/package-groups/package-group.factory.js +4 -14
  812. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/package-groups/package-groups.module.js +0 -13
  813. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/details/package-details-repositories.controller.js +59 -0
  814. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/details/package-details.controller.js +23 -0
  815. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/details/views/packages-details-dependencies.html +19 -0
  816. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/details/views/packages-details-files.html +11 -0
  817. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/details/views/packages-details-info.html +75 -0
  818. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/details/views/packages-details-repositories.html +83 -0
  819. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/details/views/packages-details.html +57 -0
  820. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/package.factory.js +2 -17
  821. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/packages.controller.js +65 -0
  822. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/packages.module.js +0 -13
  823. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/packages.routes.js +66 -0
  824. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/views/packages-table-collapsed.html +19 -0
  825. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/views/packages-table-full.html +22 -0
  826. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/views/packages.html +19 -0
  827. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/bulk/products-bulk-action-sync-plan.controller.js +0 -13
  828. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/bulk/products-bulk-action-sync.controller.js +0 -13
  829. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/bulk/products-bulk-action.controller.js +2 -15
  830. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/bulk/views/bulk-actions.html +1 -1
  831. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/product-details-info.controller.js +0 -13
  832. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/product-details.controller.js +2 -15
  833. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/product-repositories.controller.js +16 -41
  834. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/views/product-details.html +1 -1
  835. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/views/product-repositories.html +114 -115
  836. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/discovery/discovery-form.controller.js +76 -94
  837. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/discovery/discovery.controller.js +1 -14
  838. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/discovery/views/discovery.html +7 -4
  839. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/new/new-product.controller.js +0 -13
  840. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/new/product-form.controller.js +7 -15
  841. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/new/views/product-new.html +2 -0
  842. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/product.factory.js +3 -14
  843. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/products.controller.js +11 -22
  844. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/products.module.js +9 -16
  845. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/views/partials/product-table-sync-status.html +2 -2
  846. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/views/products-table-full.html +1 -1
  847. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/details/puppet-modules-details-content-views.controller.js +43 -0
  848. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/details/puppet-modules-details-repositories.controller.js +35 -0
  849. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/details/puppet-modules-details.controller.js +28 -0
  850. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/details/views/puppet-modules-details-content-views.html +37 -0
  851. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/details/views/puppet-modules-details-info.html +31 -0
  852. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/details/views/puppet-modules-details-repositories.html +52 -0
  853. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/details/views/puppet-modules-details.html +45 -0
  854. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/puppet-module.factory.js +5 -14
  855. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/puppet-modules.controller.js +35 -0
  856. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/puppet-modules.module.js +0 -13
  857. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/puppet-modules.routes.js +69 -0
  858. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/views/puppet-modules-table-collapsed.html +20 -0
  859. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/views/puppet-modules-table-full.html +29 -0
  860. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/views/puppet-modules.html +16 -0
  861. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/repositories/details/repository-details-info.controller.js +10 -20
  862. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/repositories/details/repository-details-manage-content.controller.js +26 -37
  863. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/repositories/details/views/repository-info.html +59 -7
  864. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/repositories/details/views/repository-manage-docker-images.html +1 -0
  865. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/repositories/details/views/repository-manage-package-groups.html +25 -0
  866. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/repositories/details/views/repository-manage-packages.html +1 -0
  867. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/repositories/details/views/repository-manage-puppet-modules.html +1 -0
  868. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/repositories/new/new-repository.controller.js +20 -32
  869. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/repositories/repositories.module.js +0 -13
  870. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/repositories/repository.factory.js +2 -14
  871. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/subscription-associations-activation-keys.controller.js +0 -13
  872. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/subscription-associations-content-hosts.controller.js +1 -14
  873. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/subscription-details.controller.js +2 -15
  874. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/subscription-product-details.controller.js +0 -13
  875. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/subscription-products.controller.js +0 -13
  876. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/views/subscription-associations-activation-keys.html +8 -8
  877. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/views/subscription-associations-content-hosts.html +7 -7
  878. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/views/subscription-details.html +1 -1
  879. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/views/subscription-info.html +3 -3
  880. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/views/subscription-products.html +1 -1
  881. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/manifest/manifest-details.controller.js +2 -15
  882. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/manifest/manifest-history.controller.js +0 -13
  883. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/manifest/manifest-import.controller.js +34 -47
  884. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/manifest/manifest.controller.js +0 -13
  885. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/manifest/views/manifest-import.html +0 -10
  886. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscription-type.directive.js +0 -13
  887. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptionAttachAmountFilter.filter.js +0 -13
  888. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptionConsumed.filter.js +0 -13
  889. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptions-helper.service.js +3 -16
  890. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptions.controller.js +18 -29
  891. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptions.factory.js +3 -14
  892. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptions.module.js +3 -16
  893. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/views/subscriptions-table-full.html +1 -1
  894. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/details/sync-plan-add-products.controller.js +5 -18
  895. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/details/sync-plan-details-info.controller.js +14 -16
  896. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/details/sync-plan-details.controller.js +0 -13
  897. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/details/sync-plan-products.controller.js +5 -18
  898. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/details/views/sync-plan-info.html +14 -1
  899. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/details/views/sync-plan-products-table.html +37 -35
  900. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/new/new-sync-plan.controller.js +2 -14
  901. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plan.factory.js +2 -18
  902. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plans.controller.js +7 -19
  903. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plans.module.js +0 -13
  904. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/views/sync-plans.html +4 -0
  905. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/aggregate-task.factory.js +17 -30
  906. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/task-details.controller.js +0 -13
  907. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/task-input-compile.filter.js +6 -16
  908. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/task-input-part.directive.js +3 -16
  909. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/task-input-reduce.filter.js +2 -15
  910. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/task-input-short.filter.js +0 -13
  911. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/task.factory.js +36 -43
  912. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/tasks-nutupane.factory.js +3 -15
  913. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/tasks-table.directive.js +2 -15
  914. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/tasks.module.js +0 -14
  915. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/views/tasks-table.html +30 -28
  916. data/engines/bastion_katello/app/assets/stylesheets/bastion_katello/bastion_katello.less +6 -0
  917. data/engines/bastion_katello/app/assets/stylesheets/bastion_katello/systems.less +0 -24
  918. data/engines/bastion_katello/bastion_katello.gemspec +1 -1
  919. data/engines/bastion_katello/lib/bastion_katello/engine.rb +6 -1
  920. data/lib/katello.rb +2 -8
  921. data/lib/katello/apipie/validators.rb +1 -1
  922. data/lib/katello/engine.rb +54 -15
  923. data/lib/katello/permissions/content_host_permissions.rb +4 -5
  924. data/lib/katello/permissions/content_view_permissions.rb +2 -4
  925. data/lib/katello/permissions/host_collections_permissions.rb +0 -1
  926. data/lib/katello/permissions/product_permissions.rb +1 -2
  927. data/lib/katello/permissions/subscription_permissions.rb +1 -2
  928. data/lib/katello/permissions/sync_plan_permissions.rb +2 -1
  929. data/lib/katello/plugin.rb +36 -37
  930. data/lib/katello/tasks/reindex.rake +125 -18
  931. data/lib/katello/tasks/setup.rake +0 -3
  932. data/lib/katello/tasks/test.rake +92 -8
  933. data/lib/katello/tasks/upgrades/2.4/import_distributions.rake +12 -0
  934. data/lib/katello/tasks/upgrades/2.4/import_package_groups.rake +12 -0
  935. data/lib/katello/tasks/upgrades/2.4/import_puppet_modules.rake +12 -0
  936. data/lib/katello/tasks/upgrades/2.4/import_rpms.rake +12 -0
  937. data/lib/katello/tasks/upgrades/2.4/import_subscriptions.rake +13 -0
  938. data/lib/katello/tire_bridge.rb +20 -0
  939. data/lib/katello/url_constrained_cookie_store.rb +0 -12
  940. data/lib/katello/version.rb +1 -1
  941. data/lib/monkeys/passenger_tee_input.rb +0 -12
  942. data/locale/action_names.rb +47 -0
  943. data/locale/bn/katello.po +2728 -5025
  944. data/locale/cs/katello.po +1939 -2918
  945. data/locale/de/katello.po +3515 -5733
  946. data/locale/en/katello.po +1570 -1537
  947. data/locale/es/katello.po +3457 -5721
  948. data/locale/fr/katello.po +3604 -5753
  949. data/locale/gu/katello.po +2740 -5029
  950. data/locale/hi/katello.po +2731 -5032
  951. data/locale/it/katello.po +3502 -5769
  952. data/locale/ja/katello.po +3481 -5888
  953. data/locale/katello.pot +1277 -1472
  954. data/locale/kn/katello.po +2754 -5089
  955. data/locale/ko/katello.po +3327 -5775
  956. data/locale/mr/katello.po +2701 -5097
  957. data/locale/or/katello.po +2741 -5093
  958. data/locale/pa/katello.po +2601 -4937
  959. data/locale/pt/katello.po +1810 -1947
  960. data/locale/pt_BR/katello.po +3468 -5893
  961. data/locale/ru/katello.po +3352 -5856
  962. data/locale/ta/katello.po +2751 -5040
  963. data/locale/te/katello.po +2734 -5091
  964. data/locale/zh_CN/katello.po +3230 -5800
  965. data/locale/zh_TW/katello.po +3540 -5962
  966. metadata +1451 -1575
  967. checksums.yaml +0 -15
  968. data/app/assets/javascripts/katello/common/bastion-routes.js +0 -2870
  969. data/app/assets/javascripts/katello/common/notices.js +0 -176
  970. data/app/assets/javascripts/katello/common/panel.js +0 -1078
  971. data/app/assets/javascripts/katello/common/routes.js +0 -2878
  972. data/app/assets/javascripts/katello/common/search.js +0 -376
  973. data/app/assets/javascripts/katello/content_search/content_search.js +0 -854
  974. data/app/assets/javascripts/katello/content_search/index.js +0 -20
  975. data/app/assets/javascripts/katello/dashboard/dashboard.js +0 -210
  976. data/app/assets/javascripts/katello/dashboard/index.js +0 -14
  977. data/app/assets/javascripts/katello/notices/index.js +0 -14
  978. data/app/assets/javascripts/katello/notices/notices_list.js +0 -49
  979. data/app/assets/javascripts/katello/providers/index.js +0 -16
  980. data/app/assets/javascripts/katello/providers/products_repos.js +0 -46
  981. data/app/assets/javascripts/katello/providers/provider.js +0 -68
  982. data/app/assets/javascripts/katello/providers/provider_create.js +0 -21
  983. data/app/assets/javascripts/katello/providers/repo.js +0 -27
  984. data/app/assets/javascripts/katello/providers/repo_discovery.js +0 -376
  985. data/app/assets/javascripts/katello/providers/repo_discovery_create.js +0 -17
  986. data/app/assets/javascripts/katello/widgets/comparison_grid.js +0 -1033
  987. data/app/assets/javascripts/katello/widgets/slidingtree.js +0 -645
  988. data/app/assets/javascripts/katello/widgets/tipsy.custom.js +0 -197
  989. data/app/assets/stylesheets/katello/content_search.scss +0 -650
  990. data/app/assets/stylesheets/katello/custom_info.scss +0 -32
  991. data/app/assets/stylesheets/katello/dashboard.scss +0 -570
  992. data/app/assets/stylesheets/katello/widgets/tipsy_custom.scss +0 -81
  993. data/app/controllers/katello/api/v2/distributions_controller.rb +0 -50
  994. data/app/controllers/katello/api/v2/users_controller.rb +0 -16
  995. data/app/controllers/katello/concerns/api/v2/repository_db_content_controller.rb +0 -109
  996. data/app/controllers/katello/consumers_controller_logic.rb +0 -55
  997. data/app/controllers/katello/content_search_controller.rb +0 -676
  998. data/app/controllers/katello/content_views_controller.rb +0 -35
  999. data/app/controllers/katello/dashboard_controller.rb +0 -106
  1000. data/app/controllers/katello/distributor_events_controller.rb +0 -114
  1001. data/app/controllers/katello/distributors_controller.rb +0 -501
  1002. data/app/controllers/katello/notices_controller.rb +0 -101
  1003. data/app/controllers/katello/packages_controller.rb +0 -45
  1004. data/app/controllers/katello/puppet_modules_controller.rb +0 -27
  1005. data/app/controllers/katello/repositories_controller.rb +0 -39
  1006. data/app/controllers/katello/search_controller.rb +0 -92
  1007. data/app/helpers/katello/content_search_helper.rb +0 -62
  1008. data/app/helpers/katello/dashboard_helper.rb +0 -204
  1009. data/app/helpers/katello/distributors_helper.rb +0 -69
  1010. data/app/helpers/katello/notices_helper.rb +0 -21
  1011. data/app/helpers/katello/search_helper.rb +0 -35
  1012. data/app/helpers/katello/users_helper.rb +0 -44
  1013. data/app/lib/actions/candlepin/reindex_pool_subscription_handler.rb +0 -91
  1014. data/app/lib/actions/elastic_search/content_view_puppet_environment/index_content.rb +0 -28
  1015. data/app/lib/actions/elastic_search/repository/destroy.rb +0 -35
  1016. data/app/lib/actions/elastic_search/repository/remove_puppet_modules.rb +0 -28
  1017. data/app/lib/actions/katello/organization/index_subscriptions.rb +0 -61
  1018. data/app/lib/actions/katello/repository/remove_docker_images.rb +0 -35
  1019. data/app/lib/actions/katello/user/create.rb +0 -27
  1020. data/app/lib/actions/katello/user/destroy.rb +0 -28
  1021. data/app/lib/actions/pulp/superuser/abstract.rb +0 -35
  1022. data/app/lib/actions/pulp/superuser/add.rb +0 -23
  1023. data/app/lib/actions/pulp/superuser/remove.rb +0 -23
  1024. data/app/lib/actions/pulp/user/create.rb +0 -35
  1025. data/app/lib/actions/pulp/user/destroy.rb +0 -27
  1026. data/app/lib/katello/content_search/cell.rb +0 -29
  1027. data/app/lib/katello/content_search/column.rb +0 -18
  1028. data/app/lib/katello/content_search/container_search.rb +0 -55
  1029. data/app/lib/katello/content_search/content_view_comparison.rb +0 -200
  1030. data/app/lib/katello/content_search/content_view_search.rb +0 -69
  1031. data/app/lib/katello/content_search/element.rb +0 -57
  1032. data/app/lib/katello/content_search/metadata_row.rb +0 -35
  1033. data/app/lib/katello/content_search/product_row.rb +0 -35
  1034. data/app/lib/katello/content_search/product_search.rb +0 -60
  1035. data/app/lib/katello/content_search/repo_row.rb +0 -33
  1036. data/app/lib/katello/content_search/repo_search.rb +0 -68
  1037. data/app/lib/katello/content_search/row.rb +0 -25
  1038. data/app/lib/katello/content_search/search.rb +0 -45
  1039. data/app/lib/katello/content_search/search_utils.rb +0 -33
  1040. data/app/lib/katello/content_search/span.rb +0 -21
  1041. data/app/lib/katello/content_search/unit_row.rb +0 -55
  1042. data/app/lib/katello/dashboard/content_views_widget.rb +0 -30
  1043. data/app/lib/katello/dashboard/errata_widget.rb +0 -30
  1044. data/app/lib/katello/dashboard/host_collections_widget.rb +0 -30
  1045. data/app/lib/katello/dashboard/layout.rb +0 -73
  1046. data/app/lib/katello/dashboard/notices_widget.rb +0 -23
  1047. data/app/lib/katello/dashboard/subscriptions_totals_widget.rb +0 -29
  1048. data/app/lib/katello/dashboard/subscriptions_widget.rb +0 -25
  1049. data/app/lib/katello/dashboard/sync_widget.rb +0 -30
  1050. data/app/lib/katello/dashboard/widget.rb +0 -45
  1051. data/app/lib/katello/notifications.rb +0 -17
  1052. data/app/lib/katello/notifications/controller_helper.rb +0 -43
  1053. data/app/lib/katello/notifications/notifier.rb +0 -190
  1054. data/app/lib/katello/notify.rb +0 -16
  1055. data/app/lib/katello/validators/default_info_validator.rb +0 -40
  1056. data/app/models/katello/authorization.rb +0 -25
  1057. data/app/models/katello/authorization/distributor.rb +0 -58
  1058. data/app/models/katello/custom_info.rb +0 -64
  1059. data/app/models/katello/distribution.rb +0 -32
  1060. data/app/models/katello/distributor.rb +0 -136
  1061. data/app/models/katello/glue/elastic_search/activation_key.rb +0 -37
  1062. data/app/models/katello/glue/elastic_search/content_view.rb +0 -58
  1063. data/app/models/katello/glue/elastic_search/content_view_filter.rb +0 -39
  1064. data/app/models/katello/glue/elastic_search/content_view_puppet_environment.rb +0 -72
  1065. data/app/models/katello/glue/elastic_search/content_view_puppet_module.rb +0 -41
  1066. data/app/models/katello/glue/elastic_search/distribution.rb +0 -72
  1067. data/app/models/katello/glue/elastic_search/distributor.rb +0 -63
  1068. data/app/models/katello/glue/elastic_search/marketing_product.rb +0 -21
  1069. data/app/models/katello/glue/elastic_search/notice.rb +0 -36
  1070. data/app/models/katello/glue/elastic_search/package.rb +0 -233
  1071. data/app/models/katello/glue/elastic_search/package_group.rb +0 -136
  1072. data/app/models/katello/glue/elastic_search/pool.rb +0 -185
  1073. data/app/models/katello/glue/elastic_search/product.rb +0 -59
  1074. data/app/models/katello/glue/elastic_search/provider.rb +0 -41
  1075. data/app/models/katello/glue/elastic_search/puppet_module.rb +0 -251
  1076. data/app/models/katello/glue/elastic_search/repository.rb +0 -133
  1077. data/app/models/katello/glue/pulp/distribution.rb +0 -50
  1078. data/app/models/katello/glue/pulp/package.rb +0 -76
  1079. data/app/models/katello/glue/pulp/package_group.rb +0 -60
  1080. data/app/models/katello/glue/pulp/puppet_module.rb +0 -76
  1081. data/app/models/katello/glue/pulp/user.rb +0 -59
  1082. data/app/models/katello/help_tip.rb +0 -20
  1083. data/app/models/katello/marketing_engineering_product.rb +0 -21
  1084. data/app/models/katello/marketing_product.rb +0 -21
  1085. data/app/models/katello/notice.rb +0 -77
  1086. data/app/models/katello/package.rb +0 -19
  1087. data/app/models/katello/search_favorite.rb +0 -38
  1088. data/app/models/katello/search_history.rb +0 -22
  1089. data/app/models/katello/user_notice.rb +0 -27
  1090. data/app/models/repository_docker_image.rb +0 -18
  1091. data/app/views/katello/api/v2/custom_info/show.json.rabl +0 -5
  1092. data/app/views/katello/api/v2/distributions/index.json.rabl +0 -3
  1093. data/app/views/katello/api/v2/distributions/show.json.rabl +0 -9
  1094. data/app/views/katello/api/v2/distributors/index.json.rabl +0 -9
  1095. data/app/views/katello/api/v2/distributors/pools.json.rabl +0 -3
  1096. data/app/views/katello/api/v2/distributors/show.json.rabl +0 -3
  1097. data/app/views/katello/api/v2/distributors/task.json.rabl +0 -3
  1098. data/app/views/katello/api/v2/distributors/tasks.json.rabl +0 -3
  1099. data/app/views/katello/api/v2/layouts/collection.json.haml +0 -3
  1100. data/app/views/katello/api/v2/layouts/resource.json.haml +0 -5
  1101. data/app/views/katello/api/v2/organization_default_info/apply_to_all.json.rabl +0 -3
  1102. data/app/views/katello/api/v2/organization_default_info/create.json.rabl +0 -5
  1103. data/app/views/katello/api/v2/users/list_owners.json.rabl +0 -4
  1104. data/app/views/katello/api/v2/users/show.json.rabl +0 -12
  1105. data/app/views/katello/common/400.html.haml +0 -5
  1106. data/app/views/katello/common/403.html.haml +0 -10
  1107. data/app/views/katello/common/404.html.haml +0 -7
  1108. data/app/views/katello/common/500.html.haml +0 -15
  1109. data/app/views/katello/common/_ajax_notices.haml +0 -5
  1110. data/app/views/katello/common/_common_i18n.html.haml +0 -45
  1111. data/app/views/katello/common/_common_product_repo_selector.html.haml +0 -65
  1112. data/app/views/katello/common/_common_products.html.haml +0 -24
  1113. data/app/views/katello/common/_config.html.haml +0 -8
  1114. data/app/views/katello/common/_edit_i18n.html.haml +0 -12
  1115. data/app/views/katello/common/_env_select.html.haml +0 -40
  1116. data/app/views/katello/common/_filter_table.html.haml +0 -5
  1117. data/app/views/katello/common/_footer.haml +0 -5
  1118. data/app/views/katello/common/_helptip.html.haml +0 -3
  1119. data/app/views/katello/common/_helptip_button.html.haml +0 -2
  1120. data/app/views/katello/common/_list_item.html.haml +0 -6
  1121. data/app/views/katello/common/_list_items.html.haml +0 -2
  1122. data/app/views/katello/common/_list_remove.js.haml +0 -3
  1123. data/app/views/katello/common/_list_update.html.haml +0 -4
  1124. data/app/views/katello/common/_notification.haml +0 -29
  1125. data/app/views/katello/common/_one_panel.html.haml +0 -15
  1126. data/app/views/katello/common/_one_panel_list_item.haml +0 -5
  1127. data/app/views/katello/common/_package_actions_i18n.html.haml +0 -7
  1128. data/app/views/katello/common/_panel.html.haml +0 -75
  1129. data/app/views/katello/common/_post_action_close_subpanel.js.haml +0 -2
  1130. data/app/views/katello/common/_post_delete_close_subpanel.js.haml +0 -2
  1131. data/app/views/katello/common/_repo_selector.html.haml +0 -27
  1132. data/app/views/katello/common/_search.html.haml +0 -17
  1133. data/app/views/katello/common/_stats_line.html.haml +0 -3
  1134. data/app/views/katello/common/_tupane.html.haml +0 -10
  1135. data/app/views/katello/content_search/_browser_box.html.haml +0 -132
  1136. data/app/views/katello/content_search/_container_hover.html.haml +0 -26
  1137. data/app/views/katello/content_search/_grid.html.haml +0 -60
  1138. data/app/views/katello/content_search/_repo_hover.html.haml +0 -18
  1139. data/app/views/katello/content_search/index.html.haml +0 -32
  1140. data/app/views/katello/custom_info/_edit.html.haml +0 -32
  1141. data/app/views/katello/dashboard/_ajax_entry.html.haml +0 -11
  1142. data/app/views/katello/dashboard/_content_views.haml +0 -22
  1143. data/app/views/katello/dashboard/_entry.html.haml +0 -9
  1144. data/app/views/katello/dashboard/_errata.haml +0 -21
  1145. data/app/views/katello/dashboard/_host_collection_item.html.haml +0 -19
  1146. data/app/views/katello/dashboard/_host_collections.html.haml +0 -31
  1147. data/app/views/katello/dashboard/_notices.html.haml +0 -11
  1148. data/app/views/katello/dashboard/_subscriptions.haml +0 -47
  1149. data/app/views/katello/dashboard/_subscriptions_totals.haml +0 -19
  1150. data/app/views/katello/dashboard/_sync.haml +0 -37
  1151. data/app/views/katello/dashboard/_systems.html.haml +0 -22
  1152. data/app/views/katello/dashboard/index.html.haml +0 -25
  1153. data/app/views/katello/distributor_events/_details.html.haml +0 -32
  1154. data/app/views/katello/distributor_events/_event_items.html.haml +0 -27
  1155. data/app/views/katello/distributor_events/_events.html.haml +0 -36
  1156. data/app/views/katello/distributor_events/_more_events.html.haml +0 -3
  1157. data/app/views/katello/distributors/_actions.html.haml +0 -23
  1158. data/app/views/katello/distributors/_distributor_tupane_header_nav.html.haml +0 -10
  1159. data/app/views/katello/distributors/_edit.html.haml +0 -73
  1160. data/app/views/katello/distributors/_edit_custom_info.html.haml +0 -10
  1161. data/app/views/katello/distributors/_list_distributor.html.haml +0 -2
  1162. data/app/views/katello/distributors/_list_distributor_show.html.haml +0 -18
  1163. data/app/views/katello/distributors/_list_distributors.html.haml +0 -1
  1164. data/app/views/katello/distributors/_more_products.html.haml +0 -5
  1165. data/app/views/katello/distributors/_new.html.haml +0 -43
  1166. data/app/views/katello/distributors/_products.html.haml +0 -23
  1167. data/app/views/katello/distributors/_subs.html.haml +0 -149
  1168. data/app/views/katello/distributors/_subs_update.js.haml +0 -1
  1169. data/app/views/katello/distributors/_subscription_details.html.haml +0 -23
  1170. data/app/views/katello/distributors/_subscriptions.html.haml +0 -22
  1171. data/app/views/katello/distributors/index.html.haml +0 -10
  1172. data/app/views/katello/errata/_short_details.html.haml +0 -44
  1173. data/app/views/katello/layouts/katello.haml +0 -32
  1174. data/app/views/katello/layouts/tupane_layout.html.haml +0 -45
  1175. data/app/views/katello/nodes/_list.html.haml +0 -5
  1176. data/app/views/katello/nodes/index.html.haml +0 -1
  1177. data/app/views/katello/nodes/show.html.haml +0 -7
  1178. data/app/views/katello/notices/_delete_all.js.haml +0 -1
  1179. data/app/views/katello/notices/show.html.haml +0 -46
  1180. data/app/views/katello/packages/_changelog.html.haml +0 -15
  1181. data/app/views/katello/packages/_dependencies.html.haml +0 -27
  1182. data/app/views/katello/packages/_details.html.haml +0 -100
  1183. data/app/views/katello/packages/_filelist.html.haml +0 -15
  1184. data/app/views/katello/packages/_show.html.haml +0 -90
  1185. data/app/views/katello/providers/index.html.haml +0 -17
  1186. data/app/views/katello/providers/redhat/_enable_errors.haml +0 -9
  1187. data/app/views/katello/providers/redhat/_errors.html.haml +0 -13
  1188. data/app/views/katello/providers/redhat/_repo_sets.haml +0 -31
  1189. data/app/views/katello/providers/redhat/_repos.html.haml +0 -23
  1190. data/app/views/katello/providers/redhat/_tab.html.haml +0 -8
  1191. data/app/views/katello/providers/redhat/show.html.haml +0 -23
  1192. data/app/views/katello/puppet_modules/_show.html.haml +0 -88
  1193. data/app/views/katello/sync_management/_children.html.haml +0 -13
  1194. data/app/views/katello/sync_management/_controls.html.haml +0 -13
  1195. data/app/views/katello/sync_management/_product.html.haml +0 -21
  1196. data/app/views/katello/sync_management/_products.html.haml +0 -20
  1197. data/app/views/katello/sync_management/_repo.html.haml +0 -27
  1198. data/app/views/katello/sync_management/_sync_plans.html.haml +0 -16
  1199. data/app/views/katello/sync_management/index.html.haml +0 -22
  1200. data/app/views/katello/sync_management/manage.html.haml +0 -25
  1201. data/app/views/katello/user_mailer/logins.text.haml +0 -3
  1202. data/app/views/katello/welcome/show.html.haml +0 -15
  1203. data/config/initializers/tire.rb +0 -4
  1204. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/custom-info/custom-info.factory.js +0 -34
  1205. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/custom-info/custom-info.module.js +0 -24
  1206. data/lib/headpin/headpin.rb +0 -6
  1207. data/lib/katello/app_config.rb +0 -22
  1208. data/lib/katello/configuration.rb +0 -70
  1209. data/lib/katello/configuration/loader.rb +0 -128
  1210. data/lib/katello/configuration/node.rb +0 -145
  1211. data/lib/katello/configuration/validator.rb +0 -85
  1212. data/lib/katello/load_configuration.rb +0 -95
  1213. data/lib/katello/logging.rb +0 -245
  1214. data/lib/katello/middleware/log_request_uuid.rb +0 -28
  1215. data/lib/katello/middleware/silenced_logger.rb +0 -35
  1216. data/lib/katello/permissions/dashboard_permissions.rb +0 -6
  1217. data/lib/monkeys/string_to_bool.rb +0 -19
  1218. data/lib/monkeys/yard_svg_fix.rb +0 -26
  1219. data/lib/util/password.rb +0 -137
  1220. data/vendor/assets/javascripts/katello/jquery.tipsy.js +0 -358
  1221. data/vendor/assets/stylesheets/katello/jquery.timepickr.css +0 -40
  1222. data/vendor/assets/stylesheets/katello/jquery.tipsy.css +0 -25
@@ -1,176 +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 notices = (function() {
15
- return {
16
- setup_notices: function(pollingTimeOut) {
17
- if (pollingTimeOut === undefined) {
18
- pollingTimeOut = 45000;
19
- }
20
-
21
- notices.checkTimeout = pollingTimeOut;
22
- //start continual checking for new notifications
23
- notices.start();
24
- },
25
- clearPreviousFailures: function(requestType) {
26
- $('.' + requestType).closest('.jnotify-notification').remove();
27
- },
28
- displayNotice: function(level, notice, requestType) {
29
- var noticesParsed = $.parseJSON(notice),
30
- options = {
31
- type: level,
32
- slideSpeed: 200,
33
- alwaysClosable: true
34
- },
35
- generate_list = function(notices){
36
- var notices_list = '<ul class='+requestType+'>',
37
- i, length = notices.length;
38
-
39
- for( i=0; i < length; i += 1) {
40
- notices_list += '<li>' + notices[i] + '</li>';
41
- }
42
- notices_list += '</ul>';
43
-
44
- return notices_list;
45
- };
46
-
47
- var noticeObj = {};
48
- noticeObj.time = (new Date()).valueOf();
49
- noticeObj.level = level;
50
- noticeObj.notices = noticesParsed['notices'];
51
- noticeObj.validationErrors = noticesParsed['validation_errors'];
52
- noticeObj.requestType = requestType;
53
- $(document).trigger("notice", noticeObj);
54
-
55
- if (level === 'success') {
56
- notices.clearPreviousFailures(requestType);
57
- }
58
-
59
- if ((level === "error") || (level === "warning")) {
60
- options["sticky"] = true;
61
- options["fadeSpeed"] = 600;
62
- } else if( level === "message" ) {
63
- options["sticky"] = true;
64
- options["fadeSpeed"] = 600;
65
- } else {
66
- options["sticky"] = false;
67
- options["fadeSpeed"] = 600;
68
- }
69
-
70
- if( noticesParsed['validation_errors'] !== undefined ){
71
- var validation_html = generate_list(noticesParsed['validation_errors']);
72
- validation_html = '<span>' + katelloI18n.validation_errors + '</span>' + validation_html;
73
- // set the options as this is an error
74
- options["type"] = "error";
75
- options["sticky"] = true;
76
- options["fadeSpeed"] = 600;
77
- $.jnotify(validation_html, options);
78
- $('.jnotify-message ul').css({'list-style': 'disc',
79
- 'margin-left': '30px'});
80
- }
81
- if( noticesParsed['notices'] && noticesParsed['notices'].length !== 0 ){
82
- $.jnotify(generate_list(noticesParsed['notices']), options);
83
- }
84
- },
85
- storeNotice: function(event, noticeObj) {
86
- var maxAge = 600000,
87
- curTime = (new Date()).valueOf(),
88
- idx = notices.noticeArray.length - 1;
89
- // Discard notices older than maxAge
90
- for (; idx>=0; idx-=1) {
91
- if (curTime - notices.noticeArray[idx].time > maxAge) {
92
- notices.noticeArray.splice(idx, 1);
93
- }
94
- }
95
- notices.noticeArray.push(noticeObj);
96
- },
97
- addNotices: function(data) {
98
- var unread_notices = $("#unread_notices");
99
- var unread_notices_count = $("#unread_notices_count");
100
- if (!data || data.unread_count.length === 0) {
101
- return true;
102
- }
103
- unread_notices.data('last', parseInt(unread_notices.text(), 10));
104
- //if coming from the server may have new count
105
- if (data.unread_count > 0 && data.unread_count > unread_notices.data('last')) {
106
- unread_notices_count.text(data.unread_count);
107
- unread_notices.effect("bounce", "fast");
108
- unread_notices.data('last', data.unread_count);
109
- }
110
-
111
- $.each(data.new_notices, function(index, notice) {
112
- notices.displayNotice(notice.level, window.JSON.stringify({ "notices": [notice.text] }), notice.request_type);
113
- });
114
-
115
- return true;
116
- },
117
- checkNotices : function() {
118
- var url = KT.routes.notices_get_new_path();
119
-
120
- //Make sure when we load the page we get notifs
121
- $.ajax({
122
- type: 'GET',
123
- url: url,
124
- dataType: 'json',
125
- global: false,
126
- success: notices.addNotices
127
- });
128
- },
129
- checkNoticesInResponse : function(xhr) {
130
- var message, messageType;
131
-
132
- if (xhr !== undefined) {
133
- message = xhr.getResponseHeader('X-Message');
134
- if (message) {
135
- messageType = xhr.getResponseHeader('X-Message-Type');
136
- messageRequestType = xhr.getResponseHeader('X-Message-Request-Type');
137
- notices.displayNotice(messageType, KT.common.decode(message), messageRequestType);
138
- }
139
- }
140
- },
141
- start: function () {
142
- var url = KT.routes.notices_get_new_path();
143
-
144
- // do not wait for PeriodUpdater, check new notices immediately
145
- $.ajax({
146
- type:"GET",
147
- url:url,
148
- cache:false,
149
- success:notices.addNotices
150
- });
151
-
152
- var pu = $.PeriodicalUpdater(url, {
153
- method: 'get',
154
- type: 'json',
155
- global: false,
156
- minTimeout: notices.checkTimeout,
157
- maxTimeout: notices.checkTimeout
158
- }, notices.addNotices);
159
-
160
- }
161
- };
162
- })();
163
-
164
- $(document).ready(function() {
165
-
166
- // perform periodic polling of notices (e.g. async scenarios)
167
- //notices.checkNotices();
168
-
169
- notices.noticeArray = [];
170
- $(document).bind("notice", notices.storeNotice);
171
-
172
- $(document).ajaxComplete(function(event, xhr, options){
173
- // look for notices in the response (e.g. sync scenarios)
174
- notices.checkNoticesInResponse(xhr);
175
- });
176
- });
@@ -1,1078 +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
- //some variables that are used throughout the panel
14
- var thisPanel = null,
15
- subpanel = null,
16
- subpanelSpacing = 55,
17
- panelLeft = null,
18
- count = 0,
19
- page_width = null,
20
- left = null,
21
- right = null;
22
-
23
- // Saves the state of the last subpanel viewed so selecting a new item from list will keep that subpanel open.
24
- var last_ajax_panelpage;
25
-
26
- $(document).ready(function () {
27
- page_width = $('.center').width();
28
- left = $('.left_panel');
29
- right = $('.right_panel');
30
- left.resize(function () {
31
- var apanel = $('.panel');
32
- panelLeft = left.width();
33
- $('.block').not('#new').width(panelLeft - 2);
34
- apanel.width((page_width - 21) - panelLeft);
35
- right.width(page_width - panelLeft - 19);
36
- if (apanel.hasClass('opened')) {
37
- apanel.css({
38
- "left": (panelLeft)
39
- });
40
- }
41
- $('.list-title').width(panelLeft);
42
- $('#list-title').width(panelLeft);
43
- if ($(this).hasClass('column_panel_3')) {
44
- var fontsize = Math.floor((panelLeft / 430) * 100);
45
- //if it's bigger than 100%, make it 100%.
46
- fontsize = (fontsize > 100) ? 100 : fontsize;
47
- $('#systems .block').css({
48
- "font-size": parseInt(fontsize, 10) + "%"
49
- });
50
- }
51
- }).resize();
52
- //$('#list .block').linkHover({"timeout":200});
53
- thisPanel = $("#panel");
54
- subpanel = $('#subpanel');
55
- var activeBlock = null;
56
- var activeBlockId = null;
57
- var ajax_url = null;
58
- var panel_selected;
59
-
60
-
61
- $('.block').live('click', function (event) {
62
- var subpanel_href,
63
- subpanel_name,
64
- ajax_panelpage;
65
-
66
- if (event.target.nodeName === "A" && event.target.className.match('content_add_remove')) {
67
- return false;
68
- } else {
69
- activeBlock = $(this);
70
- ajax_url = activeBlock.attr("data-ajax_url");
71
- activeBlockId = activeBlock.attr('id');
72
- ajax_panelpage = activeBlock.attr("data-ajax_panelpage");
73
-
74
- // If the panel is currently open, get the currently open tab
75
- if (thisPanel.hasClass('opened') && $.bbq.getState("panel") !== "new") {
76
- subpanel_href = $('.panel_link.selected > a').last().attr('href');
77
- if (subpanel_href) {
78
- last_ajax_panelpage = KT.panel.extract_panelpage(subpanel_href);
79
- }
80
- }
81
-
82
- if (last_ajax_panelpage === "new") {
83
- last_ajax_panelpage = undefined;
84
- }
85
-
86
- if((event.ctrlKey || event.metaKey) && !thisPanel.hasClass('opened') && (event.target.id !== "new") && !activeBlock.hasClass('active')) {
87
- if (activeBlock.hasClass('active')) {
88
- activeBlock.removeClass('active');
89
- } else {
90
- activeBlock.addClass('active');
91
- activeBlock.find('.arrow-right').hide();
92
- }
93
- } else if ((event.ctrlKey || event.metaKey) && !thisPanel.hasClass('opened') && (event.target.id !== "new") && activeBlock.hasClass('active') && $('.block.active').length > 1) {
94
- activeBlock.removeClass('active');
95
- } else {
96
- if(activeBlock.hasClass('active') && thisPanel.hasClass('opened')){
97
- KT.panel.closePanel(thisPanel);
98
- } else {
99
- if (ajax_panelpage && $.bbq.getState("panel") !== "new" && !last_ajax_panelpage) {
100
- last_ajax_panelpage = ajax_panelpage;
101
- }
102
- if (last_ajax_panelpage) {
103
- $.bbq.pushState({
104
- panel: activeBlockId,
105
- panelpage: last_ajax_panelpage
106
- });
107
- } else {
108
- $.bbq.removeState('panelpage');
109
- $.bbq.pushState({
110
- panel: activeBlockId
111
- });
112
- }
113
- activeBlock.find('.arrow-right').show();
114
- }
115
- }
116
- //update the selected count
117
- KT.panel.updateResult();
118
- return false;
119
- }
120
- });
121
- $('.close').live("click", function () {
122
- if ($(this).attr("data-close") === "panel" || ($(this).attr("data-close") !== "subpanel" && $(this).parent().parent().hasClass('opened'))) {
123
- KT.panel.closePanel(thisPanel);
124
- KT.panel.closeSubPanel(subpanel);
125
- }
126
- else { //closing the subpanel
127
- KT.panel.closeSubPanel(subpanel);
128
- }
129
- return false;
130
- });
131
-
132
- $(window).resize(function () {
133
- KT.panel.panelResize($('#panel_main'), false);
134
- KT.panel.panelResize($('#subpanel_main'), true);
135
- });
136
- $('.subpanel_element').live('click', function () {
137
- KT.panel.openSubPanel($(this).attr('data-url'));
138
- });
139
-
140
- // It is possible for the pane (e.g. right) of a panel to contain navigation
141
- // links. When that occurs, it should be possible to click the navigation
142
- // link and only that pane reflect the transition to the new page. The element
143
- // below helps to facilitate that by binding to the click event for a navigation
144
- // element with the specified id, sending a request to the server using the link
145
- // selected and then replacing the content of the pane with the response.
146
- $('.panel_link > a').live('click', function () {
147
- // if a view is a pane within a panel
148
- KT.panel.copy.hide_form();
149
- $.ajax({
150
- cache: 'false',
151
- type: 'GET',
152
- url: $(this).attr('href'),
153
- dataType: 'html',
154
- success: function (data) {
155
- var callbacks = KT.panel.get_expand_cb(),
156
- cb = function(){},
157
- activeBlock,
158
- ajax_url,
159
- ajax_panelpage;
160
-
161
- thisPanel.find(".panel-content").html(data);
162
- KT.common.jscroll_init($('.scroll-pane'));
163
- KT.common.jscroll_resize($('.jspPane'));
164
- KT.panel.panelResize($('#panel_main'), false);
165
-
166
- // Update the bbq
167
- if (!activeBlockId) {
168
- activeBlockId = thisPanel.attr("id");
169
- }
170
- activeBlock = $('#' + KT.common.escapeId(activeBlockId));
171
- ajax_url = activeBlock.attr("data-ajax_url");
172
- ajax_panelpage = activeBlock.attr("data-ajax_panelpage");
173
-
174
- if (ajax_panelpage) {
175
- // Replace old ajax_panelpage with new
176
- ajax_panelpage = this.url.substr(this.url.lastIndexOf('/') + 1);
177
- var bbq_panel = $.bbq.getState("panel");
178
- $.bbq.removeState("panel");
179
- $.bbq.removeState("panelpage");
180
- $.bbq.pushState({
181
- panel: bbq_panel,
182
- panelpage: ajax_panelpage
183
- });
184
- // Set the new default panelpage
185
- last_ajax_panelpage = ajax_panelpage;
186
- }
187
-
188
- KT.panel.copy.initialize();
189
-
190
- for( cb in callbacks ){
191
- if(callbacks.hasOwnProperty(cb)) {
192
- callbacks[cb]();
193
- }
194
- }
195
- }
196
- });
197
- return false;
198
- });
199
-
200
- //register a common select none action
201
- KT.panel.actions.registerAction("select_none", {});
202
- $('#select-none').mouseup(function(){
203
- $('.block.active').removeClass('active');
204
- KT.panel.updateResult();
205
- });
206
- //create the initial selected count
207
- KT.panel.updateResult();
208
- //register the default actions for the page's actions partial
209
- KT.panel.actions.registerDefaultActions();
210
-
211
- $('#list-title h2').tipsy();
212
-
213
- });
214
-
215
- var list = (function(){
216
- return {
217
- last_child : function() {
218
- return $("#list").children().last();
219
- },
220
- add : function(html) {
221
- $('#list').append($(html).hide().fadeIn(function(){
222
- $(this).addClass("add", 250, function(){
223
- $(this).removeClass("add", 250);
224
- });
225
- }));
226
- return false;
227
- },
228
- remove : function(id){
229
- $('#' + id).fadeOut(function(){
230
- $(this).empty().remove();
231
- KT.panel.updateResult();
232
- });
233
- return false;
234
- },
235
- refresh : function(id, url, success_cb){
236
- var jQid = $('#' + id);
237
- $.ajax({
238
- cache: 'false',
239
- type: 'GET',
240
- url: url,
241
- dataType: 'html',
242
- success: function(data) {
243
- notices.checkNotices();
244
- jQid.html(data);
245
- if (success_cb) {
246
- success_cb();
247
- }
248
- }
249
- });
250
- return false;
251
- }
252
- };
253
- })();
254
-
255
- $(window).ready(function(){
256
- if ($('#container').length > 0) {
257
- KT.panel.registerPanel($('#panel-frame'), 0);
258
- }
259
- KT.panel.actions.resetActions();
260
- });
261
- KT.panel = (function ($) {
262
- var retrievingNewContent= false,
263
- control_bbq = true,
264
- current_scroll = 0,
265
- panels_list = [],
266
- left_list_content = "",
267
- expand_cb = [],
268
- search,
269
- //callback after a pane is loaded
270
- contract_cb = function () {},
271
- switch_content_cb = function () {},
272
- select_item = function (activeBlockId) {
273
- var activeBlock = $('#' + KT.common.escapeId(activeBlockId)),
274
- ajax_url = activeBlock.attr("data-ajax_url"),
275
- ajax_panelpage = activeBlock.attr("data-ajax_panelpage"),
276
- full_ajax_url,
277
- previousBlockId = null;
278
-
279
- if (ajax_panelpage) {
280
- // Initialize the default panelpage
281
- if (!last_ajax_panelpage) {
282
- last_ajax_panelpage = ajax_panelpage;
283
- }
284
- full_ajax_url = ajax_url + '/' + last_ajax_panelpage;
285
- } else {
286
- full_ajax_url = ajax_url;
287
- }
288
-
289
- thisPanel = $("#panel");
290
- subpanel = $('#subpanel');
291
- if (activeBlock.length) {
292
- if (!thisPanel.hasClass('opened') && thisPanel.attr("data-id") !== activeBlockId) {
293
- $('.block.active').removeClass('active');
294
- // Open the Panel /4
295
-
296
- handleScroll($('#panel-frame'));
297
-
298
- thisPanel.css({
299
- "z-index": "0"
300
- });
301
- thisPanel.parent().css({
302
- "z-index": "0"
303
- });
304
- thisPanel.animate({
305
- left: (panelLeft) + "px",
306
- opacity: 1
307
- }, 200, function () {
308
- $(this).css({
309
- "z-index": "2"
310
- });
311
- }).removeClass('closed').addClass('opened').attr('data-id', activeBlockId);
312
- activeBlock.addClass('active');
313
- previousBlockId = activeBlockId;
314
- panelAjax(activeBlockId, full_ajax_url, thisPanel, false);
315
- }
316
- else if (thisPanel.hasClass('opened') && thisPanel.attr("data-id") !== activeBlockId) {
317
- switch_content_cb();
318
- $('.block.active').removeClass('active');
319
- closeSubPanel(subpanel); //close the subpanel if it is open
320
- // Keep the thisPanel open if they click another block
321
- // remove previous classes besides opened
322
- thisPanel.css({
323
- "z-index": "0"
324
- });
325
- thisPanel.parent().css({
326
- "z-index": "0"
327
- });
328
- thisPanel.addClass('opened').attr('data-id', activeBlockId);
329
- $("#" + previousBlockId).removeClass('active');
330
- activeBlock.addClass('active');
331
- previousBlockId = activeBlockId;
332
- thisPanel.removeClass('closed');
333
- panelAjax(activeBlockId, full_ajax_url, thisPanel, false);
334
- }
335
- }
336
- },
337
- panelAjax = function (name, ajax_url, thisPanel, isSubpanel) {
338
- var spinner = thisPanel.find('.spinner'),
339
- panelContent = thisPanel.find(".panel-content");
340
-
341
- $(document).trigger('open_panel.tupane');
342
- spinner.show();
343
- KT.panel.copy.hide_form();
344
- panelContent.hide();
345
-
346
- $.ajax({
347
- cache: true,
348
- url: ajax_url,
349
- dataType: 'html',
350
- success: function (data, status, xhr) {
351
- var pc = panelContent.html(data);
352
- var callback;
353
- spinner.hide();
354
- pc.fadeIn(function () {
355
- $(".panel-content :input:visible:enabled:first").focus();
356
- });
357
-
358
- KT.common.jscroll_init($('.scroll-pane'));
359
- KT.common.jscroll_resize($('.jspPane'));
360
-
361
- if (isSubpanel) {
362
- panelResize($('#subpanel_main'), isSubpanel);
363
- } else {
364
- panelResize($('#panel_main'), isSubpanel);
365
- }
366
-
367
- KT.panel.copy.initialize();
368
-
369
- for( callback in expand_cb ){
370
- if(expand_cb.hasOwnProperty(callback)) {
371
- expand_cb[callback](name);
372
- }
373
- }
374
- // Add a handler for ellipsis
375
- $(".one-line-ellipsis").ellipsis(true);
376
- },
377
- error: function (xhr, status, error) {
378
- spinner.hide();
379
- panelContent.html("<h2>" + katelloI18n.error + "</h2><p>" + katelloI18n.row_error + error + "</p>").fadeIn();
380
- }
381
- });
382
- },
383
- /* must pass a jQuery object */
384
- panelResize = function (paneljQ, isSubpanel) {
385
- if (paneljQ.length > 0) {
386
- adjustHeight(paneljQ, isSubpanel);
387
- }
388
- return paneljQ;
389
- },
390
- adjustHeight = function (paneljQ, isSubpanel) {
391
- var leftPanel = $('.left_panel'),
392
- tupane_panel = $('#panel'),
393
- header_spacing = tupane_panel.find('.head').height(),
394
- subnav_spacing = tupane_panel.find('nav').height() + 10,
395
- tupane_header = $('.tupane_header').height() || 0,
396
- tupane_footer = $('.tupane_footer').height() || 0,
397
- window_height = $(window).height(),
398
- container = $('#container'),
399
- height,
400
- default_height = 565,
401
- default_spacing = header_spacing + subnav_spacing + tupane_header + tupane_footer + 30;
402
-
403
- if (container.length > 0) {
404
- container_offset = $('#container').offset().top;
405
- }
406
-
407
- if (window_height <= (height + 80) && leftPanel.height() > 550) {
408
- height = window_height - container_offset - default_spacing;
409
- } else if( leftPanel.height() > 575 ){
410
- if( leftPanel.height() < window_height ){
411
- height = leftPanel.height() - default_spacing;
412
- } else {
413
- height = window_height - container_offset - default_spacing;
414
- }
415
- } else {
416
- height = default_height - default_spacing + 20;
417
- }
418
-
419
-
420
- if (isSubpanel) {
421
- //if we have a footer, lets make sure we cover it up
422
- if($('.tupane_footer').length > 0) {
423
- height += $('.tupane_footer').outerHeight();
424
- }
425
- }
426
-
427
-
428
- paneljQ.height(height);
429
-
430
- if (paneljQ.length > 0) {
431
- // A corner-case in automation perhaps, but this can be reached where the 'jsp' data is
432
- // not present. Fencing to avoid javascript error being thrown which results in
433
- // jQuery.active not being properly decremented to zero (thus blocking test suite).
434
- // https://bugzilla.redhat.com/show_bug.cgi?id=858193
435
- if (paneljQ.data('jsp') !== undefined) {
436
- paneljQ.data('jsp').reinitialise();
437
- }
438
- }
439
- },
440
- closePanel = function (jPanel) {
441
- var content,
442
- position;
443
-
444
- jPanel = jPanel || $('#panel');
445
- content = jPanel.find('.panel-content');
446
- if (jPanel.hasClass("opened")) {
447
- KT.panel.copy.hide_form();
448
- $('.block.active').removeClass('active');
449
- jPanel.animate({
450
- left: 0,
451
- opacity: 0
452
- }, 400, function () {
453
- $(this).css({
454
- "z-index": "-1"
455
- });
456
- }).removeClass('opened').addClass('closed').attr("data-id", "");
457
- content.html('');
458
- position = KT.common.scrollTop();
459
- $.bbq.removeState("panel");
460
- $.bbq.removeState("panelpage");
461
- $(window).scrollTop(position);
462
- updateResult();
463
- contract_cb(name);
464
- closeSubPanel(subpanel);
465
- }
466
- return false;
467
- },
468
- closeSubPanel = function (jPanel) {
469
- if (jPanel.hasClass("opened")) {
470
- jPanel.animate({
471
- left: 0,
472
- opacity: 0
473
- }, 400, function () {
474
- $(this).css({
475
- "z-index": "-1"
476
- });
477
- $(this).removeClass('opened').addClass('closed');
478
- });
479
- updateResult();
480
- }
481
- return false;
482
- },
483
- updateResult = function(){
484
- //calc the number of active tupane rows
485
- var len = $('.block.active').length;
486
- //update the select
487
- $('#select-result').html(len + katelloI18n.items_selected).effect("highlight", {}, 200);
488
- $('.numitems').html(len).effect("highlight", {}, 200);
489
- actions.resetActions(len);
490
- return len;
491
- },
492
- getSelected = function() {
493
- var to_ret = [];
494
- $('.block.active').each(function(){
495
- var id = $(this).attr("id");
496
- to_ret.push(id.split("_")[1]);
497
- });
498
- return to_ret;
499
- },
500
- numSelected = function() {
501
- return $('.block.active').length;
502
- },
503
- openSubPanel = function (url) {
504
- var thisPanel = $('#subpanel');
505
- thisPanel.animate({
506
- left: panelLeft + "px",
507
- opacity: 1
508
- }, 200, function () {
509
- $(this).css({
510
- "z-index": "3"
511
- });
512
- $(this).parent().css({
513
- "z-index": "3"
514
- });
515
- $(this).removeClass('closed').addClass('opened');
516
- });
517
- panelAjax('', url, thisPanel, true);
518
- },
519
- handleScroll = function (jQPanel, offset) {
520
- var scrollY = KT.common.scrollTop(),
521
- scrollX = KT.common.scrollLeft(),
522
- isFixed = jQPanel.css('position') === 'fixed',
523
- container = $('#container'),
524
- bodyY = parseInt(container.position().top, 10),
525
- left_panel = container.find('.left_panel'),
526
- left_bottom_pos = left_panel.offset().top + left_panel.height(),
527
- top;
528
-
529
- top_position = left_panel.offset().top;
530
- offset = offset ? offset : 0;
531
- offset += $('.center').offset().left;
532
- offset -= scrollX;
533
-
534
- if (jQPanel.length > 0) {
535
- if (scrollY <= container.offset().top) {
536
- top = (container.offset().top - scrollY <= 30 && container.offset().top - scrollY >= -30) ? 30 : top_position - scrollY;
537
-
538
- jQPanel.css({
539
- position: 'fixed',
540
- top: top,
541
- left: offset
542
- });
543
- }
544
- else {
545
- if ( left_bottom_pos - (jQPanel.offset().top + jQPanel.height()) <= 40 ) {
546
- jQPanel.css({
547
- position: 'fixed',
548
- top: (left_bottom_pos - jQPanel.height()) - scrollY,
549
- left: offset
550
- });
551
- } else {
552
- jQPanel.stop().css({
553
- position: 'fixed',
554
- top: 30,
555
- left: offset
556
- });
557
- }
558
- }
559
- }
560
- },
561
- handleScrollResize = function (jQPanel, offset) {
562
- var scrollX = KT.common.scrollLeft();
563
-
564
- offset = offset ? offset : 0;
565
- offset += $('.center').offset().left;
566
- offset -= scrollX;
567
-
568
- if (jQPanel.length > 0) {
569
- if (jQPanel.css('position') === 'fixed') {
570
- jQPanel.css('left', offset);
571
- }
572
- }
573
- },
574
- search_started = function (event, promise) {
575
- var refresh = $.bbq.getState("panel");
576
- if (!last_ajax_panelpage) {
577
- last_ajax_panelpage = $.bbq.getState("panelpage");
578
- }
579
-
580
- if (refresh) {
581
- if (promise) {
582
- closePanel();
583
- promise.done(function(){
584
- $('.left_panel').resize();
585
- select_item(refresh);
586
- });
587
- }
588
- else {
589
- select_item(refresh);
590
- }
591
- }
592
- else {
593
- closePanel();
594
- }
595
- return false;
596
- },
597
- registerPanel = function (jQPanel, offset) {
598
- var new_panel = {
599
- panel: jQPanel,
600
- offset: offset
601
- };
602
- $(window).scroll(function (event) {
603
- if( event.target === document){
604
- handleScroll(jQPanel, offset);
605
- }
606
- });
607
- $(window).resize(function () {
608
- handleScrollResize(jQPanel, offset);
609
- });
610
- $(document).bind('helptip-closed', function () {
611
- handleScroll(jQPanel, offset);
612
- });
613
- $(document).bind('helptip-opened', function () {
614
- handleScroll(jQPanel, offset);
615
- });
616
-
617
- panels_list.push(new_panel);
618
- },
619
- registerSubPanelSubmit = function(form_id, form_submit_id, url_after_submit) {
620
- form_id.bind('ajax:beforeSend', function(){
621
- form_submit_id.addClass('disabled');
622
- }).bind("ajax:complete", function(){
623
- form_submit_id.removeClass('disabled');
624
- }).bind("ajax:success", function(){
625
- KT.panel.closeSubPanel($('#subpanel'));
626
- KT.panel.refreshPanel(url_after_submit);
627
- }).bind("ajax:error", function(){
628
- //validation notice appears
629
- });
630
- },
631
- // http://devnull.djolley.net/2010/11/accessing-query-string-parameters-from.html
632
- queryParameters = function () {
633
- var queryString = {};
634
- var qstr = window.location.search.substring(1);
635
- var params = qstr.split('&');
636
- $.each(params, function(index, item){
637
- var pair=item.split('=');
638
- if(pair[1]) {
639
- queryString[pair[0]]=decodeURI(pair[1]);
640
- }
641
- });
642
- return queryString;
643
- },
644
- refreshPanel = function(source_url) {
645
- // If the user provides a 'source_url' the panel will be refreshed using that url;
646
- // otherwise, the source will be derived from the panel object's properties
647
- var active = $('#list').find('.active');
648
- var full_ajax_url;
649
- if (source_url === undefined) {
650
- full_ajax_url = active.attr("data-ajax_url") + '/' + active.attr("data-ajax_panelpage");
651
- } else {
652
- full_ajax_url = source_url;
653
- }
654
- KT.panel.panelAjax(active, full_ajax_url, $('#panel'), false);
655
- },
656
- extract_panelpage = function(url) {
657
- var a = document.createElement("a");
658
- a.href = url;
659
- var arr = a.pathname.split('/');
660
- var panelpage = '';
661
- for (var i = 4; i < arr.length; i += 1) {
662
- panelpage += '/' + arr[i];
663
- }
664
- return panelpage.substr(1);
665
- },
666
- actions = (function(){
667
- var action_list = {},
668
- current_request_action;
669
-
670
- var registerDefaultActions = function() {
671
- var actions = $(".panel_action");
672
- actions.each(function(index){
673
- var action = $(this);
674
- var options = action.find(".options");
675
- action.find(".request_action").click(function() {
676
- var params = action_list[action.attr("data-id")],
677
- valid = true;
678
-
679
- current_request_action = $(this);
680
- if(params.valid_input_cb) {
681
- // Has the user provided valid input for the request?
682
- valid = params.valid_input_cb(current_request_action);
683
- }
684
- if (valid && !action.hasClass("disabled")) {
685
- options.slideDown('fast');
686
- }
687
- });
688
- action.find(".cancel").click(function() {
689
- if ($(this).hasClass("disabled")){return}
690
- options.slideUp('fast');
691
- });
692
- action.find(".trigger").click(function() {
693
- var params = action_list[action.attr("data-id")];
694
- var success = function() {
695
- action.find("input").removeClass("disabled");
696
- if (params.success_cb){
697
- params.success_cb(getSelected());
698
- }
699
- };
700
- var error = function() {
701
- action.find("input").removeClass("disabled");
702
- if(params.error_cb) {
703
- params.error_cb(getSelected());
704
- }
705
- };
706
-
707
- if ($(this).hasClass("disabled")){return}
708
-
709
- options.slideUp('fast');
710
-
711
- if(params.ajax_cb) {
712
- params.ajax_cb(getSelected(), current_request_action, options);
713
- }
714
- else {
715
- $.ajax({
716
- cache: 'false',
717
- type: params.method,
718
- url: params.url,
719
- data: {ids:getSelected()},
720
- success: success,
721
- error: error
722
- });
723
- }
724
- if (getSelected() === 0) {
725
- action.find("input").addClass("disabled");
726
- }
727
- });
728
- });
729
- updateResult();
730
- },
731
- registerAction = function(name, params) {
732
- /**
733
- * params:
734
- * success_cb(data, selected_ids)
735
- * error_cb(data, selected_ids)
736
- * url //URL for ajax call
737
- * method //METHOD for ajax call
738
- * unselected_action // true if the action is 'doable' even if
739
- * ajax_cb(id_list, request_action, options, success_cb, error_cb) //To manually do the ajax call yourself
740
- * valid_input_cb() // to validate the input for the request... return true if valid; otherwise, false
741
- * enable_cb() // callback to provide custom initialization logic when 1 or more elements are selected
742
- * disable_cb() // callback to provide custom logic when all elements are cleared (i.e. select none)
743
- */
744
- action_list[name] = params;
745
- },
746
- resetActions = function(num) {
747
- $.each(action_list, function(name, params){
748
- if(!params.unselected_action) {
749
- var div = $("[data-id=" + name + "]");
750
- if (num > 0) {
751
- div.removeClass("disabled");
752
- if (params.enable_cb) {
753
- params.enable_cb();
754
- }
755
- }
756
- else {
757
- div.addClass("disabled");
758
- if (params.disable_cb) {
759
- params.disable_cb();
760
- }
761
- }
762
- }
763
- });
764
- var actions = $(".panel_action");
765
- actions.each(function(index){
766
- var action = $(this);
767
- action.find('.cancel').click();
768
- });
769
- };
770
-
771
- return {
772
- registerAction: registerAction,
773
- registerDefaultActions: registerDefaultActions,
774
- resetActions: resetActions
775
- };
776
- })();
777
- return {
778
- set_expand_cb: function (callBack) {
779
- expand_cb.push(callBack);
780
- },
781
- get_expand_cb: function () {
782
- return expand_cb;
783
- },
784
- set_contract_cb: function (callBack) {
785
- contract_cb = callBack;
786
- },
787
- set_switch_content_cb: function (callBack) {
788
- switch_content_cb = callBack;
789
- },
790
- select_item: select_item,
791
- numSelected: numSelected,
792
- search_started: search_started,
793
- openSubPanel: openSubPanel,
794
- updateResult: updateResult,
795
- closeSubPanel: closeSubPanel,
796
- closePanel: closePanel,
797
- panelResize: panelResize,
798
- panelAjax: panelAjax,
799
- control_bbq: control_bbq,
800
- registerPanel: registerPanel,
801
- registerSubPanelSubmit: registerSubPanelSubmit,
802
- queryParameters: queryParameters,
803
- refreshPanel : refreshPanel,
804
- actions: actions,
805
- handleScroll : handleScroll,
806
- extract_panelpage : extract_panelpage
807
- };
808
- })(jQuery);
809
-
810
- KT.panel.copy = (function () {
811
- var initialize = function() {
812
- // This function will initialize the support for copy, if copy is defined for the pane. In katello, one
813
- // example of this can be found in app/views/system_groups/_tupane_header.html.haml.
814
-
815
- var copy_link = $('.pane_action.copy-tipsy');
816
- if(copy_link) {
817
- var cancel_button = $('#cancel_copy_button'),
818
- copy_form = $('#copy_form'),
819
- name_input = $('#name_input');
820
-
821
- KT.tipsy.custom.copy_tooltip(copy_link);
822
-
823
- copy_link.die();
824
- copy_link.live('click', show_form);
825
-
826
- cancel_button.die();
827
- cancel_button.live('click', hide_form);
828
-
829
- copy_form.die();
830
- copy_form.live('submit', perform_copy);
831
-
832
- name_input.live('keyup', check_for_copy);
833
- }
834
- },
835
- show_form = function() {
836
- $('.pane_action.copy-tipsy').tipsy('show');
837
- $('#copy_form').find('#name_input').focus();
838
- },
839
- hide_form = function() {
840
- $('.pane_action.copy-tipsy').tipsy('hide');
841
- $('#copy_form').find('#name_input').blur();
842
- },
843
- check_for_copy = function() {
844
- var copy_button = $('#copy_button');
845
- if ($(this).val().length > 0) {
846
- copy_button.removeAttr('disabled', 'disabled');
847
- } else {
848
- copy_button.attr('disabled', 'disabled');
849
- }
850
- },
851
- perform_copy = function(event) {
852
- event.preventDefault();
853
-
854
- var copy_form = $('#copy_form'), copy_button = $('#copy_button');
855
- copy_button.attr('disabled', 'disabled');
856
-
857
- $.ajax({
858
- type: "POST",
859
- url: copy_form.data("url") + "?&authenticity_token=" + AUTH_TOKEN,
860
- data: copy_form.serialize(),
861
- cache: false,
862
- success: function(data) {
863
- $('.pane_action.copy-tipsy').tipsy('hide');
864
- KT.panel.list.createSuccess(data);
865
- },
866
- error: function(data) {
867
- copy_button.removeAttr('disabled');
868
- }
869
- });
870
- return false;
871
- };
872
- return {
873
- initialize: initialize,
874
- hide_form: hide_form,
875
- perform_copy: perform_copy
876
- };
877
-
878
- })(jQuery);
879
-
880
- $(document).ready(function () {
881
- KT.panel.list = (function () {
882
- var total_items_count = 0,
883
- current_items_count = 0,
884
- results_items_count = 0,
885
- search,
886
- list_section = $('#list section'),
887
-
888
- update_counts = function (current, total, results, clear) {
889
- if (clear) {
890
- current_items_count = current;
891
- total_items_count = total;
892
- results_items_count = results;
893
- }
894
- else {
895
- current_items_count += current;
896
- total_items_count += total;
897
- results_items_count += results;
898
- }
899
- $('#total_items_count').html(total_items_count);
900
- $('#current_items_count').html(current_items_count);
901
- $('#total_results_count').html(results_items_count);
902
- },
903
- last_child = function () {
904
- return list_section.children().last();
905
- },
906
- first_child = function () {
907
- return list_section.children().first();
908
- },
909
- append = function (html) {
910
- list_section.append($(html).hide().fadeIn(function () {
911
- list_section.addClass("add", 250, function () {
912
- list_section.removeClass("add", 250);
913
- });
914
- }));
915
- return false;
916
- },
917
- prepend = function (html) {
918
- list_section.prepend($(html).hide().fadeIn(function () {
919
- list_section.addClass("add", 250, function () {
920
- list_section.removeClass("add", 250);
921
- });
922
- }));
923
- return false;
924
- },
925
- remove = function (id) {
926
- $('#' + id).fadeOut(function () {
927
- $(this).empty().remove();
928
- update_counts(-1, -1, -1);
929
- });
930
- return false;
931
- },
932
- current_count = function(){
933
- return current_items_count;
934
- },
935
- replace_list = function(html) {
936
- var list_elem = $("#list");
937
-
938
- list_elem.find('.spinner').hide();
939
- list_section.html(html).show();
940
- },
941
- refresh_list = function() {
942
- search.refresh_search();
943
- },
944
- full_spinner = function() {
945
- var list_elem = $("#list");
946
- list_section.empty();
947
- list_elem.find('.spinner').show();
948
- },
949
- refresh = function (id, url, success_cb) {
950
- var jQid = $('#' + id);
951
-
952
- if ( $('#list').length > 0 ){
953
- $.ajax({
954
- cache: 'false',
955
- type: 'GET',
956
- url: url,
957
- dataType: 'html',
958
- success: function (data) {
959
- notices.checkNotices();
960
- jQid.html(data);
961
- // Obtain the value from column_1 and place it in pane_heading. This is
962
- // to accommodate changes to an item's name, for example, and have it
963
- // dynamically update in both left list and the right title.
964
- //
965
- // Unless an explicit #heading_title element exists, use the first div
966
- // (which was the previous default behavior).
967
- var heading_title = jQid.find('#heading_title');
968
- if (heading_title.length === 0) {
969
- heading_title = jQid.children('div:first');
970
- }
971
- $('.pane_heading').html(heading_title.html());
972
- if (success_cb) {
973
- success_cb();
974
- }
975
- }
976
- });
977
- }
978
- return false;
979
- },
980
- registerPage = function (resource_type, options) {
981
- options = options || {};
982
-
983
- search = KT.search("search_form", "list", this,
984
- {url: $("#list").attr("data-scroll_url")}, options['extra_params']);
985
-
986
-
987
- $(document).bind(search.search_event(), KT.panel.search_started);
988
-
989
-
990
- if (KT.panel_search_autocomplete){
991
- search.enableAutoComplete({data:KT.panel_search_autocomplete});
992
- }
993
-
994
- $(window).trigger('hashchange');
995
-
996
- KT.panel.control_bbq = false;
997
-
998
-
999
- $(document).ready(function () {
1000
- if (options['extra_params']) {
1001
- for (var i = 0; i < options['extra_params'].length; i += 1) {
1002
- options['extra_params'][i]['init_func']();
1003
- }
1004
- }
1005
- $(window).trigger('hashchange', [true]);
1006
- });
1007
-
1008
- if (options['create']) {
1009
- $('#' + options['create']).live('submit', function (e) {
1010
- var button = $(this).find('input[type|="submit"]'),
1011
- data = KT.common.getSearchParams() || {},
1012
- validation = options['validation'] || function(){ return true; };
1013
-
1014
- e.preventDefault();
1015
-
1016
- if( options['extra_create_data'] ){
1017
- $.extend(data, options['extra_create_data']() );
1018
- }
1019
-
1020
- if( validation() ){
1021
- button.attr("disabled", "disabled");
1022
-
1023
- $(this).ajaxSubmit({
1024
- url: $(this).attr('action'),
1025
- data: data,
1026
- success: createSuccess,
1027
- error: function (e) {
1028
- button.removeAttr('disabled');
1029
- notices.checkNotices();
1030
- }
1031
- });
1032
- }
1033
- });
1034
- }
1035
- },
1036
- createSuccess = function(data){
1037
- var id;
1038
-
1039
- if (data['no_match']) {
1040
- KT.panel.closePanel($('#panel'));
1041
- notices.checkNotices();
1042
- update_counts(0, 0, 1);
1043
- }
1044
- else {
1045
- prepend(data);
1046
- KT.panel.closePanel($('#panel'));
1047
- id = first_child().attr("id");
1048
-
1049
- if (last_ajax_panelpage) {
1050
- $.bbq.pushState({
1051
- panel: id,
1052
- panelpage: last_ajax_panelpage
1053
- });
1054
- } else {
1055
- $.bbq.pushState({
1056
- panel: id
1057
- });
1058
- }
1059
- KT.panel.select_item(id);
1060
- notices.checkNotices();
1061
- update_counts(1, 1, 1);
1062
- }
1063
- };
1064
- return {
1065
- extended_event : function () { if(search){search.extend_event()} },
1066
- registerPage : registerPage,
1067
- createSuccess : createSuccess,
1068
- remove : remove,
1069
- refresh : refresh,
1070
- append : append,
1071
- replace_list : replace_list,
1072
- update_counts : update_counts,
1073
- full_spinner : full_spinner,
1074
- current_count : current_count,
1075
- refresh_list : refresh_list
1076
- };
1077
- })();
1078
- });