katello 3.1.0.1 → 3.2.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 (390) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +8 -47
  3. data/app/assets/javascripts/katello/common/index.js +0 -1
  4. data/app/assets/javascripts/katello/providers/redhat/index.js +0 -1
  5. data/app/assets/stylesheets/katello/_katello_colors.scss +0 -2
  6. data/app/assets/stylesheets/katello/katello.scss +0 -2
  7. data/app/controllers/katello/api/rhsm/candlepin_proxies_controller.rb +45 -42
  8. data/app/controllers/katello/api/v2/activation_keys_controller.rb +7 -19
  9. data/app/controllers/katello/api/v2/api_controller.rb +3 -3
  10. data/app/controllers/katello/api/v2/capsule_content_controller.rb +3 -3
  11. data/app/controllers/katello/api/v2/content_uploads_controller.rb +2 -2
  12. data/app/controllers/katello/api/v2/content_view_filter_rules_controller.rb +29 -18
  13. data/app/controllers/katello/api/v2/content_view_filters_controller.rb +2 -2
  14. data/app/controllers/katello/api/v2/content_view_histories_controller.rb +1 -1
  15. data/app/controllers/katello/api/v2/content_view_puppet_modules_controller.rb +2 -2
  16. data/app/controllers/katello/api/v2/content_view_versions_controller.rb +10 -8
  17. data/app/controllers/katello/api/v2/content_views_controller.rb +5 -5
  18. data/app/controllers/katello/api/v2/environments_controller.rb +10 -9
  19. data/app/controllers/katello/api/v2/file_units_controller.rb +16 -0
  20. data/app/controllers/katello/api/v2/gpg_keys_controller.rb +4 -4
  21. data/app/controllers/katello/api/v2/host_autocomplete_controller.rb +2 -2
  22. data/app/controllers/katello/api/v2/host_collections_controller.rb +41 -13
  23. data/app/controllers/katello/api/v2/host_errata_controller.rb +12 -5
  24. data/app/controllers/katello/api/v2/host_packages_controller.rb +4 -4
  25. data/app/controllers/katello/api/v2/host_subscriptions_controller.rb +9 -9
  26. data/app/controllers/katello/api/v2/hosts_bulk_actions_controller.rb +52 -13
  27. data/app/controllers/katello/api/v2/organizations_controller.rb +3 -3
  28. data/app/controllers/katello/api/v2/packages_controller.rb +1 -1
  29. data/app/controllers/katello/api/v2/ping_controller.rb +2 -2
  30. data/app/controllers/katello/api/v2/products_bulk_actions_controller.rb +2 -2
  31. data/app/controllers/katello/api/v2/products_controller.rb +6 -16
  32. data/app/controllers/katello/api/v2/repositories_bulk_actions_controller.rb +1 -1
  33. data/app/controllers/katello/api/v2/repositories_controller.rb +60 -21
  34. data/app/controllers/katello/api/v2/repository_sets_controller.rb +3 -3
  35. data/app/controllers/katello/api/v2/root_controller.rb +2 -2
  36. data/app/controllers/katello/api/v2/subscriptions_controller.rb +19 -10
  37. data/app/controllers/katello/api/v2/sync_controller.rb +3 -3
  38. data/app/controllers/katello/api/v2/sync_plans_controller.rb +2 -2
  39. data/app/controllers/katello/api/v2/uebercerts_controller.rb +1 -1
  40. data/app/controllers/katello/application_controller.rb +7 -7
  41. data/app/controllers/katello/auto_complete_search_controller.rb +1 -1
  42. data/app/controllers/katello/concerns/api/api_controller.rb +1 -1
  43. data/app/controllers/katello/concerns/api/v2/hostgroups_controller_extensions.rb +19 -16
  44. data/app/controllers/katello/concerns/api/v2/repository_content_controller.rb +8 -6
  45. data/app/controllers/katello/concerns/authorization/api/v2/content_views_controller.rb +10 -6
  46. data/app/controllers/katello/concerns/organizations_controller_extensions.rb +1 -1
  47. data/app/controllers/katello/concerns/smart_proxies_controller_extensions.rb +1 -1
  48. data/app/controllers/katello/errors_controller.rb +2 -2
  49. data/app/controllers/katello/organizations_controller.rb +1 -1
  50. data/app/controllers/katello/products_controller.rb +4 -4
  51. data/app/controllers/katello/providers_controller.rb +2 -2
  52. data/app/helpers/katello/application_helper.rb +0 -240
  53. data/app/helpers/katello/concerns/hosts_and_hostgroups_helper_extensions.rb +19 -0
  54. data/app/lib/actions/candlepin/import_pool_handler.rb +11 -6
  55. data/app/lib/actions/katello/capsule_content/create_repos.rb +3 -3
  56. data/app/lib/actions/katello/capsule_content/sync.rb +23 -9
  57. data/app/lib/actions/katello/content_view/add_to_environment.rb +1 -1
  58. data/app/lib/actions/katello/content_view/errata_mail.rb +2 -2
  59. data/app/lib/actions/katello/content_view/incremental_updates.rb +60 -1
  60. data/app/lib/actions/katello/content_view/remove.rb +2 -2
  61. data/app/lib/actions/katello/content_view_environment/destroy.rb +1 -1
  62. data/app/lib/actions/katello/content_view_environment/reassign_objects.rb +2 -2
  63. data/app/lib/actions/katello/content_view_puppet_environment/create.rb +3 -1
  64. data/app/lib/actions/katello/host/attach_subscriptions.rb +13 -6
  65. data/app/lib/actions/katello/host/destroy.rb +0 -19
  66. data/app/lib/actions/katello/host/generate_applicability.rb +8 -3
  67. data/app/lib/actions/katello/host/hypervisors.rb +17 -9
  68. data/app/lib/actions/katello/host/hypervisors_update.rb +19 -44
  69. data/app/lib/actions/katello/host/reassign.rb +14 -0
  70. data/app/lib/actions/katello/host/register.rb +3 -22
  71. data/app/lib/actions/katello/host/remove_subscriptions.rb +15 -2
  72. data/app/lib/actions/katello/host/update.rb +0 -6
  73. data/app/lib/actions/katello/organization/destroy.rb +2 -2
  74. data/app/lib/actions/katello/product/content_destroy.rb +7 -9
  75. data/app/lib/actions/katello/product/destroy.rb +23 -7
  76. data/app/lib/actions/katello/repository/clear.rb +1 -0
  77. data/app/lib/actions/katello/repository/clone_file_content.rb +17 -0
  78. data/app/lib/actions/katello/repository/clone_to_environment.rb +2 -0
  79. data/app/lib/actions/katello/repository/clone_to_version.rb +2 -0
  80. data/app/lib/actions/katello/repository/create.rb +2 -1
  81. data/app/lib/actions/katello/repository/destroy.rb +20 -10
  82. data/app/lib/actions/katello/repository/errata_mail.rb +2 -2
  83. data/app/lib/actions/katello/repository/filtered_index_content.rb +2 -0
  84. data/app/lib/actions/katello/repository/import_upload.rb +6 -2
  85. data/app/lib/actions/katello/repository/{refresh_repostiory.rb → refresh_repository.rb} +0 -0
  86. data/app/lib/actions/katello/repository/remove_content.rb +2 -0
  87. data/app/lib/actions/katello/repository/sync.rb +8 -12
  88. data/app/lib/actions/katello/repository_set/disable_repository.rb +6 -5
  89. data/app/lib/actions/katello/repository_set/enable_repository.rb +1 -1
  90. data/app/lib/actions/katello/repository_set/scan_cdn.rb +1 -1
  91. data/app/lib/actions/pulp/abstract_async_task.rb +1 -1
  92. data/app/lib/actions/pulp/consumer/unassociate_units.rb +20 -0
  93. data/app/lib/actions/pulp/repository/copy_files.rb +11 -0
  94. data/app/lib/actions/pulp/repository/create.rb +5 -1
  95. data/app/lib/actions/pulp/repository/presenters/file_presenter.rb +1 -1
  96. data/app/lib/actions/pulp/repository/refresh.rb +4 -2
  97. data/app/lib/actions/pulp/repository/remove_file.rb +15 -0
  98. data/app/lib/actions/pulp/repository/sync.rb +3 -1
  99. data/app/lib/actions/pulp/repository_group/export.rb +1 -1
  100. data/app/lib/katello/errors.rb +1 -1
  101. data/app/lib/katello/lazy_accessor.rb +1 -1
  102. data/app/lib/katello/resources/candlepin.rb +14 -0
  103. data/app/lib/katello/util/cdn_var_substitutor.rb +5 -2
  104. data/app/lib/katello/util/model.rb +1 -2
  105. data/app/lib/katello/util/package.rb +2 -2
  106. data/app/models/katello/activation_key.rb +0 -49
  107. data/app/models/katello/authorization/content_view_version.rb +7 -0
  108. data/app/models/katello/candlepin/content.rb +15 -3
  109. data/app/models/katello/concerns/container_extensions.rb +1 -2
  110. data/app/models/katello/concerns/content_facet_host_extensions.rb +11 -1
  111. data/app/models/katello/concerns/host_managed_extensions.rb +4 -13
  112. data/app/models/katello/concerns/hostgroup_extensions.rb +0 -2
  113. data/app/models/katello/concerns/medium_extensions.rb +2 -2
  114. data/app/models/katello/concerns/organization_extensions.rb +0 -5
  115. data/app/models/katello/concerns/pulp_database_unit.rb +5 -1
  116. data/app/models/katello/concerns/smart_proxy_extensions.rb +21 -1
  117. data/app/models/katello/concerns/subscription_facet_host_extensions.rb +1 -2
  118. data/app/models/katello/content_view.rb +12 -6
  119. data/app/models/katello/content_view_component.rb +0 -3
  120. data/app/models/katello/content_view_environment.rb +2 -2
  121. data/app/models/katello/content_view_package_filter_rule.rb +13 -0
  122. data/app/models/katello/content_view_puppet_environment.rb +2 -2
  123. data/app/models/katello/content_view_repository.rb +2 -1
  124. data/app/models/katello/content_view_version.rb +9 -2
  125. data/app/models/katello/erratum.rb +1 -5
  126. data/app/models/katello/file_unit.rb +41 -0
  127. data/app/models/katello/glue/candlepin/activation_key.rb +2 -2
  128. data/app/models/katello/glue/candlepin/pool.rb +19 -14
  129. data/app/models/katello/glue/pulp/repo.rb +44 -10
  130. data/app/models/katello/host/content_facet.rb +6 -6
  131. data/app/models/katello/host/subscription_facet.rb +6 -8
  132. data/app/models/katello/kt_environment.rb +3 -5
  133. data/app/models/katello/package_group.rb +1 -3
  134. data/app/models/katello/pool.rb +7 -2
  135. data/app/models/katello/pool_with_quantities.rb +12 -0
  136. data/app/models/katello/product.rb +6 -0
  137. data/app/models/katello/provider.rb +1 -1
  138. data/app/models/katello/puppet_module.rb +1 -2
  139. data/app/models/katello/repository.rb +7 -3
  140. data/app/models/katello/repository_file.rb +9 -0
  141. data/app/models/katello/rpm.rb +1 -1
  142. data/app/models/katello/subscription_status.rb +1 -1
  143. data/app/models/katello/sync_plan.rb +2 -1
  144. data/app/models/katello/task_status.rb +3 -36
  145. data/app/models/setting/content.rb +4 -1
  146. data/app/overrides/add_activation_keys_input.rb +2 -2
  147. data/app/presenters/katello/activation_key_subscriptions_presenter.rb +10 -0
  148. data/app/services/katello/candlepin/consumer.rb +5 -1
  149. data/app/services/katello/pulp/file_unit.rb +13 -0
  150. data/app/views/dashboard/_errata_widget.html.erb +1 -1
  151. data/app/views/dashboard/_subscription_widget.html.erb +30 -8
  152. data/app/views/foreman/job_templates/install_errata.erb +1 -1
  153. data/app/views/katello/api/v2/activation_keys/product_content.json.rabl +1 -0
  154. data/app/views/katello/api/v2/capsule_content/sync_status.json.rabl +2 -2
  155. data/app/views/katello/api/v2/content_facet/base.json.rabl +2 -4
  156. data/app/views/katello/api/v2/{systems → content_facet}/erratum.json.rabl +0 -0
  157. data/app/views/katello/api/v2/content_facet/show.json.rabl +1 -1
  158. data/app/views/katello/api/v2/content_view_versions/base.json.rabl +5 -4
  159. data/app/views/katello/api/v2/environments/show.json.rabl +1 -1
  160. data/app/views/katello/api/v2/file_units/base.json.rabl +7 -0
  161. data/app/views/katello/api/v2/{systems → file_units}/index.json.rabl +1 -1
  162. data/app/views/katello/api/v2/file_units/show.json.rabl +3 -0
  163. data/app/views/katello/api/v2/host_errata/index.json.rabl +1 -1
  164. data/app/views/katello/api/v2/host_errata/show.json.rabl +1 -1
  165. data/app/views/katello/api/v2/package_groups/base.json.rabl +1 -1
  166. data/app/views/katello/api/v2/ping/show.json.rabl +1 -1
  167. data/app/views/katello/api/v2/repositories/base.json.rabl +2 -1
  168. data/app/views/katello/api/v2/repositories/show.json.rabl +1 -1
  169. data/app/views/katello/api/v2/subscription_facet/base.json.rabl +1 -1
  170. data/app/views/katello/api/v2/subscription_facet/base_with_root.json.rabl +0 -4
  171. data/app/views/katello/api/v2/subscription_facet/show.json.rabl +1 -5
  172. data/app/views/katello/api/v2/subscriptions/base.json.rabl +3 -3
  173. data/app/views/katello/api/v2/subscriptions/index.json.rabl +1 -0
  174. data/app/views/katello/api/v2/tasks/task_status_show.json.rabl +0 -1
  175. data/app/views/katello/providers/redhat/show.html.erb +1 -1
  176. data/app/views/katello/sync_management/_products.html.erb +5 -1
  177. data/app/views/overrides/activation_keys/_host_environment_select.html.erb +1 -9
  178. data/app/views/overrides/activation_keys/_host_synced_content_select.html.erb +1 -0
  179. data/config/routes/api/v2.rb +9 -2
  180. data/config/routes/overrides.rb +9 -0
  181. data/db/migrate/20150930183738_migrate_content_hosts.rb +1 -1
  182. data/db/migrate/20160617124149_remove_duplicate_view_filters.rb +38 -0
  183. data/db/migrate/20160627125310_delete_system.rb +7 -0
  184. data/db/migrate/20160722193256_add_verify_ssl_on_sync_to_repository.rb +9 -0
  185. data/db/migrate/20160727144242_add_registered_through_to_katello_subscription_facets.rb +5 -0
  186. data/db/migrate/20160808002834_add_files.rb +30 -0
  187. data/db/migrate/20160906181923_add_puppet_path_to_smart_proxy.rb +5 -0
  188. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/activation-keys.module.js +1 -0
  189. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/activation-key-associations.controller.js +7 -6
  190. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/views/activation-key-add-subscriptions.html +6 -2
  191. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/views/activation-key-associations-content-hosts.html +4 -0
  192. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/views/activation-key-details.html +101 -102
  193. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/views/activation-key-subscriptions-list.html +3 -0
  194. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/new/views/activation-key-new.html +82 -83
  195. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/views/activation-keys.html +4 -0
  196. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/bastion-katello-bootstrap.js +1 -0
  197. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/capsule-content/capsule-content.module.js +3 -1
  198. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/capsules/capsules.module.js +4 -1
  199. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/common/common.module.js +2 -0
  200. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/common/views/registration.html +1 -0
  201. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/content-hosts-bulk-action-subscriptions.controller.js +46 -72
  202. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/content-hosts-bulk-action.controller.js +1 -2
  203. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/views/bulk-actions-errata.html +5 -0
  204. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/views/bulk-actions-host-collections.html +5 -0
  205. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/bulk/views/bulk-actions-subscriptions.html +79 -33
  206. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-hosts.module.js +1 -0
  207. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/content-host-errata.controller.js +10 -0
  208. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-errata.html +27 -15
  209. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content/views/content-host-packages.html +57 -45
  210. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-add-subscriptions.controller.js +5 -18
  211. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-base-subscriptions.controller.js +2 -3
  212. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-details.controller.js +2 -1
  213. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/content-host-subscriptions.controller.js +3 -3
  214. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-add-subscriptions.html +4 -0
  215. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-details.html +117 -118
  216. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-info.html +13 -8
  217. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/details/views/content-host-subscriptions-list.html +5 -0
  218. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/views/content-hosts.html +5 -0
  219. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/content-views.module.js +1 -0
  220. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/content-views.routes.js +26 -0
  221. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/deletion/content-view-version-deletion-content-hosts.controller.js +11 -4
  222. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/deletion/content-view-version-deletion-environments.controller.js +1 -1
  223. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/deletion/content-view-version-deletion.controller.js +1 -1
  224. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/deletion/views/content-view-deletion.html +3 -3
  225. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/deletion/views/version-deletion-content-hosts.html +2 -2
  226. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/deletion/views/version-deletion-environments.html +2 -2
  227. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-available-file-repositories.controller.js +47 -0
  228. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-details.controller.js +8 -0
  229. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-file-repositories-list.controller.js +45 -0
  230. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/views/errata-filter-details.html +4 -0
  231. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/views/filters.html +3 -0
  232. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/views/package-filter-details.html +6 -6
  233. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/puppet-modules/views/content-view-puppet-module-names.html +6 -0
  234. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/puppet-modules/views/content-view-puppet-modules.html +4 -0
  235. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-composite-available-content-views.html +2 -1
  236. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-composite-content-views-list.html +2 -1
  237. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-details.html +151 -140
  238. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-docker-repositories.html +1 -1
  239. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-file-repositories.html +118 -0
  240. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-ostree-repositories.html +1 -1
  241. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-repositories.html +1 -1
  242. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-versions.html +13 -2
  243. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/content-view-version-content.controller.js +8 -0
  244. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/content-view-versions.module.js +1 -0
  245. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/views/content-view-version-details.html +8 -6
  246. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/views/content-view-version-file.html +22 -0
  247. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/views/content-view-version.html +6 -16
  248. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/views/content-views.html +4 -0
  249. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-manifests/docker-manifests.module.js +6 -1
  250. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/details/views/docker-tags-details.html +59 -61
  251. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/docker-tags.module.js +3 -0
  252. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/views/docker-tags.html +4 -0
  253. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/details/views/environment-content-views.html +5 -0
  254. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/details/views/environment-docker.html +4 -0
  255. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/details/views/environment-errata.html +4 -0
  256. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/details/views/environment-ostree.html +4 -0
  257. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/details/views/environment-packages.html +4 -0
  258. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/details/views/environment-puppet-modules.html +4 -0
  259. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/details/views/environment-repositories.html +4 -0
  260. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/environments.module.js +1 -0
  261. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/details/errata-content-hosts.controller.js +1 -1
  262. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/details/views/errata-details-content-hosts.html +6 -2
  263. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/details/views/errata-details-repositories.html +4 -0
  264. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/details/views/errata-details.html +44 -45
  265. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/errata.module.js +2 -0
  266. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/views/errata.html +5 -0
  267. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/gpg-keys/details/gpg-key-details-info.controller.js +11 -0
  268. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/gpg-keys/details/gpg-key-details.controller.js +1 -1
  269. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/gpg-keys/details/views/gpg-key-details.html +52 -48
  270. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/gpg-keys/details/views/gpg-key-info.html +1 -0
  271. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/gpg-keys/details/views/gpg-key-products.html +1 -1
  272. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/gpg-keys/details/views/gpg-key-repositories.html +1 -1
  273. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/gpg-keys/gpg-keys.module.js +1 -0
  274. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/gpg-keys/new/views/gpg-key-new.html +62 -63
  275. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/gpg-keys/views/gpg-keys.html +6 -3
  276. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/details/views/host-collection-add-hosts.html +4 -0
  277. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/details/views/host-collection-details.html +85 -86
  278. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/details/views/host-collection-hosts-list.html +4 -0
  279. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/host-collections.module.js +1 -0
  280. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/new/views/host-collection-new.html +16 -17
  281. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/views/host-collections.html +5 -0
  282. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-bulk-action.factory.js +28 -0
  283. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host-erratum.factory.js +1 -0
  284. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/host.factory.js +1 -27
  285. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/hosts/hosts.module.js +3 -1
  286. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/organizations/organization.factory.js +0 -1
  287. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/organizations/organizations.module.js +4 -1
  288. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/ostree-branches/details/ostree-branches-details-repositories.controller.js +60 -0
  289. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/ostree-branches/details/ostree-branches-details.controller.js +31 -0
  290. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/ostree-branches/details/views/ostree-branches-details-info.html +23 -0
  291. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/ostree-branches/details/views/ostree-branches-details-repositories.html +83 -0
  292. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/ostree-branches/details/views/ostree-branches-details.html +43 -0
  293. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/ostree-branches/ostree-branches.controller.js +67 -0
  294. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/ostree-branches/ostree-branches.module.js +5 -1
  295. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/ostree-branches/ostree-branches.routes.js +53 -0
  296. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/ostree-branches/views/ostree-branches-table-collapsed.html +19 -0
  297. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/ostree-branches/views/ostree-branches-table-full.html +21 -0
  298. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/ostree-branches/views/ostree-branches.html +19 -0
  299. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/package-groups/package-groups.module.js +7 -1
  300. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/details/package-details.controller.js +17 -2
  301. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/details/views/packages-details-info.html +10 -0
  302. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/details/views/packages-details-repositories.html +4 -0
  303. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/details/views/packages-details.html +51 -52
  304. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/packages.module.js +3 -0
  305. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/packages/views/packages.html +5 -0
  306. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/views/product-details.html +72 -73
  307. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/views/product-repositories.html +19 -7
  308. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/discovery/views/discovery-create.html +144 -145
  309. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/new/views/product-new.html +17 -18
  310. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/products.module.js +1 -0
  311. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/views/products.html +4 -0
  312. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/details/views/puppet-modules-details.html +44 -40
  313. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/puppet-modules.module.js +7 -1
  314. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/views/puppet-modules.html +4 -0
  315. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/repositories/details/repository-details-info.controller.js +11 -5
  316. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/repositories/details/views/repository-info.html +343 -324
  317. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/repositories/new/new-repository.controller.js +4 -4
  318. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/repositories/new/views/repository-new.html +10 -0
  319. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/repositories/repositories.module.js +1 -0
  320. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/settings/settings.module.js +2 -0
  321. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/views/subscription-associations-content-hosts.html +2 -2
  322. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/details/views/subscription-details.html +46 -47
  323. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/manifest/manifest-import.controller.js +10 -0
  324. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/manifest/views/manifest-import.html +1 -0
  325. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/manifest/views/manifest.html +41 -42
  326. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptions-helper.service.js +15 -1
  327. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/subscriptions.module.js +1 -0
  328. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/subscriptions/views/subscriptions.html +4 -0
  329. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/details/views/sync-plan-details.html +54 -55
  330. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/sync-plans.module.js +1 -0
  331. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/views/sync-plans.html +4 -0
  332. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/tasks.module.js +3 -1
  333. data/engines/bastion_katello/lib/bastion_katello/engine.rb +1 -0
  334. data/lib/katello/engine.rb +11 -1
  335. data/lib/katello/permissions/host_permissions.rb +13 -1
  336. data/lib/katello/plugin.rb +20 -1
  337. data/lib/katello/tasks/reimport.rake +1 -0
  338. data/lib/katello/tasks/test.rake +8 -0
  339. data/lib/katello/tasks/unify_hosts.rake +91 -0
  340. data/lib/katello/tasks/upgrade_check.rake +3 -2
  341. data/lib/katello/tasks/upgrades/3.0/update_subscription_facet_backend_data.rake +2 -4
  342. data/lib/katello/version.rb +1 -1
  343. data/lib/proxy_api/pulp.rb +7 -0
  344. data/lib/proxy_api/pulp_node.rb +7 -0
  345. metadata +79 -67
  346. data/app/assets/javascripts/katello/common/jquery.jeditable.custominputs.js +0 -180
  347. data/app/assets/javascripts/katello/widgets/jquery.jeditable.helpers.js +0 -247
  348. data/app/assets/stylesheets/katello/widgets/_scrollpane.scss +0 -66
  349. data/app/controllers/katello/api/v2/systems_controller.rb +0 -213
  350. data/app/helpers/katello/activation_keys_helper.rb +0 -4
  351. data/app/helpers/katello/host_collection_events_helper.rb +0 -7
  352. data/app/helpers/katello/katello_form_builder.rb +0 -150
  353. data/app/helpers/katello/packages_helper.rb +0 -67
  354. data/app/helpers/katello/subscriptions_helper.rb +0 -32
  355. data/app/helpers/katello/system_events_helper.rb +0 -4
  356. data/app/helpers/katello/system_packages_helper.rb +0 -42
  357. data/app/lib/actions/katello/repository/incremental_import.rb +0 -61
  358. data/app/lib/actions/katello/subscription/subscribe.rb +0 -26
  359. data/app/lib/actions/katello/system/destroy.rb +0 -17
  360. data/app/lib/actions/katello/system/reassign.rb +0 -14
  361. data/app/models/katello/authorization/system.rb +0 -53
  362. data/app/models/katello/glue/candlepin/consumer.rb +0 -386
  363. data/app/models/katello/glue/pulp/consumer.rb +0 -171
  364. data/app/models/katello/hypervisor.rb +0 -15
  365. data/app/models/katello/system.rb +0 -283
  366. data/app/models/katello/system_activation_key.rb +0 -8
  367. data/app/models/katello/system_repository.rb +0 -8
  368. data/app/presenters/katello/activation_key_subscription_presenter.rb +0 -10
  369. data/app/views/katello/api/v2/errata/_applicable_errata.json.rabl +0 -3
  370. data/app/views/katello/api/v2/subscriptions/create.json.rabl +0 -3
  371. data/app/views/katello/api/v2/systems/_pool.json.rabl +0 -6
  372. data/app/views/katello/api/v2/systems/activate.json.rabl +0 -3
  373. data/app/views/katello/api/v2/systems/add_host_collections.json.rabl +0 -3
  374. data/app/views/katello/api/v2/systems/available_host_collections.json.rabl +0 -5
  375. data/app/views/katello/api/v2/systems/base.json.rabl +0 -35
  376. data/app/views/katello/api/v2/systems/enabled_repos.json.rabl +0 -3
  377. data/app/views/katello/api/v2/systems/events.json.rabl +0 -3
  378. data/app/views/katello/api/v2/systems/package.json.rabl +0 -5
  379. data/app/views/katello/api/v2/systems/package_profile.json.rabl +0 -7
  380. data/app/views/katello/api/v2/systems/pools.json.rabl +0 -7
  381. data/app/views/katello/api/v2/systems/regenerate_identity_certificates.json.rabl +0 -3
  382. data/app/views/katello/api/v2/systems/remove_host_collections.json.rabl +0 -3
  383. data/app/views/katello/api/v2/systems/show.json.rabl +0 -64
  384. data/app/views/katello/api/v2/systems/subscriptions.json.rabl +0 -8
  385. data/app/views/katello/api/v2/systems/upload_package_profile.json.rabl +0 -3
  386. data/db/seeds.d/105-roles_permissions.rb +0 -71
  387. data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-hosts/content-host.factory.js +0 -25
  388. data/lib/katello/permissions/content_host_permissions.rb +0 -30
  389. data/lib/katello/tasks/yard.rake +0 -9
  390. data/vendor/assets/stylesheets/katello/jquery.jscrollpane.css +0 -120
@@ -39,6 +39,10 @@
39
39
  No Repositories contain this Package.
40
40
  </span>
41
41
 
42
+ <span data-block="no-search-results-message">
43
+ Your search returned zero Repositories.
44
+ </span>
45
+
42
46
  <div data-block="table">
43
47
  <table class="table table-striped table-bordered"
44
48
  ng-class="{'table-mask': detailsTable.working}"
@@ -1,60 +1,59 @@
1
1
  <span page-title ng-model="package">{{ 'Package: ' | translate }} {{ package.nvra}}</span>
2
2
 
3
- <div class="loading-mask loading-mask-panel" ng-show="panel.loading">
4
- <i class="fa fa-spinner fa-spin"></i>
5
- {{ "Loading..." | translate }}
6
- </div>
3
+ <div data-extend-template="layouts/panel.html">
4
+ <div data-block="panel">
5
+ <section class="nutupane-details" ng-cloak bst-container-scroll>
6
+ <div ng-show="panel.error" bst-alerts success-messages="successMessages" error-messages="errorMessages"></div>
7
7
 
8
- <section class="nutupane-details" ng-cloak bst-container-scroll>
9
- <div ng-show="panel.error" bst-alerts success-messages="successMessages" error-messages="errorMessages"></div>
8
+ <div ng-hide="panel.error">
9
+ <header class="details-header">
10
+ <h2 class="fl">{{ package.nvra }}</h2>
10
11
 
11
- <div ng-hide="panel.error">
12
- <header class="details-header">
13
- <h2 class="fl">{{ package.nvra }}</h2>
12
+ <div class="details-actions fr">
13
+ <button class="btn btn-default" ui-sref="packages.index">
14
+ <i class="fa fa-remove"></i>
15
+ {{ "Close" | translate }}
16
+ </button>
17
+ </div>
18
+ </header>
14
19
 
15
- <div class="details-actions fr">
16
- <button class="btn btn-default" ui-sref="packages.index">
17
- <i class="fa fa-remove"></i>
18
- {{ "Close" | translate }}
19
- </button>
20
- </div>
21
- </header>
22
-
23
- <nav class="details-navigation">
24
- <ul>
25
- <li ng-class="{active: isState('packages.details.info')}">
26
- <a ui-sref="packages.details.info">
27
- <span translate>
28
- Details
29
- </span>
30
- </a>
31
- </li>
32
- <li ng-class="{active: isState('packages.details.files')}">
33
- <a ui-sref="packages.details.files">
34
- <span translate>
35
- Files
36
- </span>
37
- </a>
38
- </li>
39
- <li ng-class="{active: isState('packages.details.dependencies')}">
40
- <a ui-sref="packages.details.dependencies">
41
- <span translate>
42
- Dependencies
43
- </span>
44
- </a>
45
- </li>
46
- <li ng-class="{active: isState('packages.details.repositories')}">
47
- <a ui-sref="packages.details.repositories">
48
- <span translate>
49
- Repositories
50
- </span>
51
- </a>
52
- </li>
53
- </ul>
54
- </nav>
20
+ <nav class="details-navigation">
21
+ <ul>
22
+ <li ng-class="{active: isState('packages.details.info')}">
23
+ <a ui-sref="packages.details.info">
24
+ <span translate>
25
+ Details
26
+ </span>
27
+ </a>
28
+ </li>
29
+ <li ng-class="{active: isState('packages.details.files')}">
30
+ <a ui-sref="packages.details.files">
31
+ <span translate>
32
+ Files
33
+ </span>
34
+ </a>
35
+ </li>
36
+ <li ng-class="{active: isState('packages.details.dependencies')}">
37
+ <a ui-sref="packages.details.dependencies">
38
+ <span translate>
39
+ Dependencies
40
+ </span>
41
+ </a>
42
+ </li>
43
+ <li ng-class="{active: isState('packages.details.repositories')}">
44
+ <a ui-sref="packages.details.repositories">
45
+ <span translate>
46
+ Repositories
47
+ </span>
48
+ </a>
49
+ </li>
50
+ </ul>
51
+ </nav>
55
52
 
56
- <div bst-alerts success-messages="successMessages" error-messages="errorMessages"></div>
53
+ <div bst-alerts success-messages="successMessages" error-messages="errorMessages"></div>
57
54
 
58
- <section ui-view></section>
55
+ <section ui-view></section>
56
+ </div>
57
+ </section>
59
58
  </div>
60
- </section>
59
+ </div>
@@ -6,6 +6,9 @@
6
6
  * Module for package related functionality.
7
7
  */
8
8
  angular.module('Bastion.packages', [
9
+ 'ngResource',
10
+ 'ui.router',
9
11
  'Bastion',
12
+ 'Bastion.i18n',
10
13
  'Bastion.common'
11
14
  ]);
@@ -16,4 +16,9 @@
16
16
  There are no Packages in this organization. Create one or more Products with Packages to view Packages on this page.
17
17
  </span>
18
18
 
19
+ <span data-block="no-search-results-message">
20
+ Your search returned zero Packages.
21
+ </span>
22
+
23
+
19
24
  </div>
@@ -1,83 +1,82 @@
1
1
  <span page-title ng-model="product">{{ 'Details for Product:' | translate }} {{ product.name }}</span>
2
2
 
3
- <div class="loading-mask loading-mask-panel" ng-show="panel.loading">
4
- <i class="fa fa-spinner fa-spin"></i>
5
- {{ "Loading..." | translate }}
6
- </div>
3
+ <div data-extend-template="layouts/panel.html">
4
+ <div data-block="panel">
5
+ <section class="nutupane-details" ng-cloak bst-container-scroll>
6
+ <div ng-show="panel.error" bst-alerts success-messages="successMessages" error-messages="errorMessages"></div>
7
7
 
8
- <section class="nutupane-details" ng-cloak bst-container-scroll>
9
- <div ng-show="panel.error" bst-alerts success-messages="successMessages" error-messages="errorMessages"></div>
8
+ <div ng-hide="panel.error">
9
+ <header class="details-header">
10
+ <h2 class="fl" translate>Product {{ product.name }}</h2>
10
11
 
11
- <div ng-hide="panel.error">
12
- <header class="details-header">
13
- <h2 class="fl" translate>Product {{ product.name }}</h2>
12
+ <div class="fr">
14
13
 
15
- <div class="fr">
14
+ <div bst-modal="removeProduct(product)" model="product">
15
+ <div data-block="modal-header" translate>Remove Product "{{ product.name }}"?</div>
16
+ <div data-block="modal-body" translate>Are you sure you want to remove product "{{ product.name }}"?</div>
17
+ </div>
16
18
 
17
- <div bst-modal="removeProduct(product)" model="product">
18
- <div data-block="modal-header" translate>Remove Product "{{ product.name }}"?</div>
19
- <div data-block="modal-body" translate>Are you sure you want to remove product "{{ product.name }}"?</div>
20
- </div>
19
+ <span ng-switch="getReadOnlyReason(product)" bst-feature-flag="custom_products">
20
+ <i class="fa fa-question-circle" ng-switch-when="permissions"
21
+ tooltip="{{ 'You cannot remove this product because you do not have permission.' | translate }}"
22
+ tooltip-animation="false"
23
+ tooltip-append-to-body="true">
24
+ </i>
25
+ <i class="fa fa-question-circle" ng-switch-when="published"
26
+ tooltip="{{ 'You cannot remove this product because it was published to a content view.' | translate }}"
27
+ tooltip-animation="false"
28
+ tooltip-append-to-body="true">
29
+ </i>
30
+ <i class="fa fa-question-circle" ng-switch-when="redhat"
31
+ tooltip="{{ 'You cannot remove this product because it is a Red Hat product.' | translate }}"
32
+ tooltip-animation="false"
33
+ tooltip-append-to-body="true">
34
+ </i>
35
+ </span>
21
36
 
22
- <span ng-switch="getReadOnlyReason(product)" bst-feature-flag="custom_products">
23
- <i class="fa fa-question-circle" ng-switch-when="permissions"
24
- tooltip="{{ 'You cannot remove this product because you do not have permission.' | translate }}"
25
- tooltip-animation="false"
26
- tooltip-append-to-body="true">
27
- </i>
28
- <i class="fa fa-question-circle" ng-switch-when="published"
29
- tooltip="{{ 'You cannot remove this product because it was published to a content view.' | translate }}"
30
- tooltip-animation="false"
31
- tooltip-append-to-body="true">
32
- </i>
33
- <i class="fa fa-question-circle" ng-switch-when="redhat"
34
- tooltip="{{ 'You cannot remove this product because it is a Red Hat product.' | translate }}"
35
- tooltip-animation="false"
36
- tooltip-append-to-body="true">
37
- </i>
38
- </span>
37
+ <button class="btn btn-default" bst-feature-flag="custom_products"
38
+ ng-disabled="!productDeletable(product)"
39
+ ng-click="openModal()">
40
+ <i class="fa fa-trash-o"></i>
41
+ {{ "Remove Product" | translate }}
42
+ </button>
43
+ <button class="btn btn-default" ui-sref="products.index">
44
+ <i class="fa fa-remove"></i>
45
+ {{ "Close" | translate }}
46
+ </button>
47
+ </div>
48
+ </header>
39
49
 
40
- <button class="btn btn-default" bst-feature-flag="custom_products"
41
- ng-disabled="!productDeletable(product)"
42
- ng-click="openModal()">
43
- <i class="fa fa-trash-o"></i>
44
- {{ "Remove Product" | translate }}
45
- </button>
46
- <button class="btn btn-default" ui-sref="products.index">
47
- <i class="fa fa-remove"></i>
48
- {{ "Close" | translate }}
49
- </button>
50
- </div>
51
- </header>
52
-
53
- <nav>
54
- <ul class="nav nav-tabs">
55
- <li ng-class="{active: stateIncludes('products.details.info')}">
56
- <a translate
57
- ui-sref="products.details.info({productId: product.id})">
58
- Details
59
- </a>
60
- </li>
61
- <li ng-class="{active: stateIncludes('products.details.repositories')}">
62
- <a translate
63
- ui-sref="products.details.repositories.index({productId: product.id})">
64
- Repositories
65
- </a>
66
- </li>
67
- <li ng-class="{active: stateIncludes('products.details.tasks')}">
68
- <a translate
69
- ui-sref="products.details.tasks.index({productId: product.id})">
70
- Tasks
71
- </a>
72
- </li>
73
- <li ng-repeat="menuItem in menuExpander.getMenu('product')">
74
- <a href="{{ menuItem.url }}">
75
- {{ menuItem.label }}
76
- </a>
77
- </li>
78
- </ul>
79
- </nav>
50
+ <nav>
51
+ <ul class="nav nav-tabs">
52
+ <li ng-class="{active: stateIncludes('products.details.info')}">
53
+ <a translate
54
+ ui-sref="products.details.info({productId: product.id})">
55
+ Details
56
+ </a>
57
+ </li>
58
+ <li ng-class="{active: stateIncludes('products.details.repositories')}">
59
+ <a translate
60
+ ui-sref="products.details.repositories.index({productId: product.id})">
61
+ Repositories
62
+ </a>
63
+ </li>
64
+ <li ng-class="{active: stateIncludes('products.details.tasks')}">
65
+ <a translate
66
+ ui-sref="products.details.tasks.index({productId: product.id})">
67
+ Tasks
68
+ </a>
69
+ </li>
70
+ <li ng-repeat="menuItem in menuExpander.getMenu('product')">
71
+ <a href="{{ menuItem.url }}">
72
+ {{ menuItem.label }}
73
+ </a>
74
+ </li>
75
+ </ul>
76
+ </nav>
80
77
 
81
- <section class="nutupane-sub-section" ui-view></section>
78
+ <section class="nutupane-sub-section" ui-view></section>
79
+ </div>
80
+ </section>
82
81
  </div>
83
- </section>
82
+ </div>
@@ -1,6 +1,6 @@
1
1
  <span page-title ng-model="product">{{ 'Repositories for Product:' | translate }} {{ product.name }}</span>
2
2
 
3
- <section ng-hide="panel.loading">
3
+ <section>
4
4
  <div data-extend-template="layouts/details-nutupane.html">
5
5
  <div data-block="header"> {{ 'Repositories' | translate }} </div>
6
6
  <div data-block="messages">
@@ -24,15 +24,15 @@
24
24
 
25
25
  <div data-block="actions">
26
26
  <div bst-modal="removeSelectedRepositories()" model="detailsTable">
27
- <div data-block="modal-header"
28
- translate
29
- translate-n="detailsTable.numSelected"
27
+ <div data-block="modal-header"
28
+ translate
29
+ translate-n="detailsTable.numSelected"
30
30
  translate-plural="Remove {{ detailsTable.numSelected }} repostories?">
31
31
  Remove repository?
32
32
  </div>
33
- <div data-block="modal-body"
34
- translate
35
- translate-n="detailsTable.numSelected"
33
+ <div data-block="modal-body"
34
+ translate
35
+ translate-n="detailsTable.numSelected"
36
36
  translate-plural="Remove {{ detailsTable.numSelected }} repostories?">
37
37
  Are you sure you want to remove {{ detailsTable.getSelected()[0].name }}?
38
38
  </div>
@@ -90,6 +90,10 @@
90
90
  You currently don't have any Repositories included in this Product, you can add Repositories using the button on the right.
91
91
  </span>
92
92
 
93
+ <span data-block="no-search-results-message">
94
+ Your search returned zero Repositories.
95
+ </span>
96
+
93
97
  <div data-block="table">
94
98
  <table bst-table="detailsTable"
95
99
  class="table table-striped"
@@ -168,6 +172,14 @@
168
172
  </div>
169
173
  </span>
170
174
 
175
+ <span ng-show="repository.content_type == 'file'">
176
+ <div>
177
+ <span translate>
178
+ {{ repository.content_counts.file || 0 }} Files
179
+ </span>
180
+ </div>
181
+ </span>
182
+
171
183
  </td>
172
184
  </tr>
173
185
  </tbody>
@@ -1,152 +1,151 @@
1
1
  <span page-title>{{ 'Create Repositories' | translate }}</span>
2
2
 
3
- <div class="loading-mask loading-mask-panel" ng-show="panel.loading">
4
- <i class="fa fa-spinner fa-spin"></i>
5
- <span translate>Loading...</span>
6
- </div>
7
-
8
- <a ui-sref="products.discovery.scan">
9
- <i class="fa fa-double-angle-left"></i>
10
- {{ "Back To Repository Selection" | translate }}
11
- </a>
12
-
13
- <form name="productForm" class="form-horizontal" ng-disabled="creating()" novalidate role="form">
14
-
15
- <section>
16
- <h4 translate>Create Repositories Within:</h4>
17
-
18
- <div class="form-group">
19
- <label class="checkbox-inline">
20
- <input type="radio"
21
- name="newProduct"
22
- value="false"
23
- ng-model="createRepoChoices.newProduct"
24
- ng-disabled="creating()"/>
25
- <span translate>Existing Product</span>
26
- </label>
27
-
28
- <label class="checkbox-inline">
29
- <input type="radio"
30
- name="newProduct"
31
- value="true"
32
- ng-model="createRepoChoices.newProduct"
33
- ng-disabled="creating()"/>
34
- <span translate>New Product</span>
35
- </label>
36
- </div>
37
-
38
- <div class="form-group">
39
- <div class="col-md-5" ng-hide="createRepoChoices.newProduct">
40
- <select class="form-control" ng-disabled="creating()"
41
- ng-model="createRepoChoices.existingProductId"
42
- ng-options="product.id as product.name for product in products">
43
- </select>
44
- </div>
45
- </div>
46
-
47
- <div ng-show="createRepoChoices.newProduct">
48
-
49
- <div bst-alerts error-messages="productErrorMessages"></div>
50
-
51
- <div class="form-group required">
52
- <label class="control-label col-sm-1 text-left" translate>Name</label>
53
- <div class="col-sm-5 input">
54
- <input ng-model="createRepoChoices.product.name"
55
- id="name"
56
- name="name"
57
- type="text"
58
- class="form-control"
59
- tabindex=1
60
- ng-required="createRepoChoices.newProduct === 'true'"/>
61
- </div>
62
- </div>
63
-
64
- <div class="form-group required">
65
- <label class="control-label col-sm-1" translate>Label</label>
66
- <div class="col-sm-5 input">
67
- <input ng-model="createRepoChoices.product.label"
68
- id="label"
69
- name="label"
70
- type="text"
71
- class="form-control"
72
- tabindex=2
73
- ng-required="createRepoChoices.newProduct === 'true'"/>
3
+ <div data-extend-template="layouts/panel.html">
4
+ <div data-block="panel">
5
+ <a ui-sref="products.discovery.scan">
6
+ <i class="fa fa-double-angle-left"></i>
7
+ {{ "Back To Repository Selection" | translate }}
8
+ </a>
9
+
10
+ <form name="productForm" class="form-horizontal" ng-disabled="creating()" novalidate role="form">
11
+
12
+ <section>
13
+ <h4 translate>Create Repositories Within:</h4>
14
+
15
+ <div class="form-group">
16
+ <label class="checkbox-inline">
17
+ <input type="radio"
18
+ name="newProduct"
19
+ value="false"
20
+ ng-model="createRepoChoices.newProduct"
21
+ ng-disabled="creating()"/>
22
+ <span translate>Existing Product</span>
23
+ </label>
24
+
25
+ <label class="checkbox-inline">
26
+ <input type="radio"
27
+ name="newProduct"
28
+ value="true"
29
+ ng-model="createRepoChoices.newProduct"
30
+ ng-disabled="creating()"/>
31
+ <span translate>New Product</span>
32
+ </label>
74
33
  </div>
75
- </div>
76
-
77
- <div class="form-group">
78
- <label class="control-label col-sm-1" translate>GPG Key</label>
79
- <div class="col-sm-5 input">
80
- <select class="form-control" ng-model="createRepoChoices.product.gpg_key_id"
81
- ng-options="gpg_key.id as gpg_key.name for gpg_key in gpgKeys">
82
- </select>
34
+
35
+ <div class="form-group">
36
+ <div class="col-md-5" ng-hide="createRepoChoices.newProduct">
37
+ <select class="form-control" ng-disabled="creating()"
38
+ ng-model="createRepoChoices.existingProductId"
39
+ ng-options="product.id as product.name for product in products">
40
+ </select>
41
+ </div>
83
42
  </div>
84
- </div>
85
-
86
- </div>
87
- </section>
88
-
89
- <section>
90
- <h4 translate>Options:</h4>
91
- <div class="checkbox">
92
- <label>
93
- <input type="checkbox"
94
- id="unprotected"
95
- ng-model="createRepoChoices.unprotected"
96
- ng-disabled="creating()"/>
97
- <span translate>Serve via HTTP.</span>
98
- </label>
99
- </div>
100
- </section>
101
-
102
- <section>
103
- <h4 ng-show="discovery.selected.length > 0" translate>Selected URLs:</h4>
104
-
105
- <div ng-repeat="repo in discovery.selected">
106
-
107
- <div class="col-sm-offset-0 bottom-padding">
108
- <i class="fa fa-circle"></i>
109
- <span>{{ repo.url }}</span>
110
- <i class="fa fa-check" ng-show="repo.created"></i>
111
- </div>
112
-
113
- <div class="form-group required">
114
- <label class="control-label col-sm-1" translate>Name</label>
115
- <div class="col-sm-4 input">
116
- <input ng-model="repo.name"
117
- ng-disabled="creating() || repo.created"
118
- name="repo_name"
119
- type="text"
120
- class="form-control"
121
- required/>
43
+
44
+ <div ng-show="createRepoChoices.newProduct">
45
+
46
+ <div bst-alerts error-messages="productErrorMessages"></div>
47
+
48
+ <div class="form-group required">
49
+ <label class="control-label col-sm-1 text-left" translate>Name</label>
50
+ <div class="col-sm-5 input">
51
+ <input ng-model="createRepoChoices.product.name"
52
+ id="name"
53
+ name="name"
54
+ type="text"
55
+ class="form-control"
56
+ tabindex=1
57
+ ng-required="createRepoChoices.newProduct === 'true'"/>
58
+ </div>
59
+ </div>
60
+
61
+ <div class="form-group required">
62
+ <label class="control-label col-sm-1" translate>Label</label>
63
+ <div class="col-sm-5 input">
64
+ <input ng-model="createRepoChoices.product.label"
65
+ id="label"
66
+ name="label"
67
+ type="text"
68
+ class="form-control"
69
+ tabindex=2
70
+ ng-required="createRepoChoices.newProduct === 'true'"/>
71
+ </div>
72
+ </div>
73
+
74
+ <div class="form-group">
75
+ <label class="control-label col-sm-1" translate>GPG Key</label>
76
+ <div class="col-sm-5 input">
77
+ <select class="form-control" ng-model="createRepoChoices.product.gpg_key_id"
78
+ ng-options="gpg_key.id as gpg_key.name for gpg_key in gpgKeys">
79
+ </select>
80
+ </div>
81
+ </div>
82
+
83
+ </div>
84
+ </section>
85
+
86
+ <section>
87
+ <h4 translate>Options:</h4>
88
+ <div class="checkbox">
89
+ <label>
90
+ <input type="checkbox"
91
+ id="unprotected"
92
+ ng-model="createRepoChoices.unprotected"
93
+ ng-disabled="creating()"/>
94
+ <span translate>Serve via HTTP.</span>
95
+ </label>
122
96
  </div>
123
- </div>
124
-
125
- <div class="form-group required">
126
- <label class="control-label col-sm-1" translate>Label</label>
127
- <div class="col-sm-4 input">
128
- <input ng-model="repo.label"
129
- ng-disabled="creating() || repo.created"
130
- name="repo_label"
131
- type="text"
132
- class="form-control"
133
- required/>
97
+ </section>
98
+
99
+ <section>
100
+ <h4 ng-show="discovery.selected.length > 0" translate>Selected URLs:</h4>
101
+
102
+ <div ng-repeat="repo in discovery.selected">
103
+
104
+ <div class="col-sm-offset-0 bottom-padding">
105
+ <i class="fa fa-circle"></i>
106
+ <span>{{ repo.url }}</span>
107
+ <i class="fa fa-check" ng-show="repo.created"></i>
108
+ </div>
109
+
110
+ <div class="form-group required">
111
+ <label class="control-label col-sm-1" translate>Name</label>
112
+ <div class="col-sm-4 input">
113
+ <input ng-model="repo.name"
114
+ ng-disabled="creating() || repo.created"
115
+ name="repo_name"
116
+ type="text"
117
+ class="form-control"
118
+ required/>
119
+ </div>
120
+ </div>
121
+
122
+ <div class="form-group required">
123
+ <label class="control-label col-sm-1" translate>Label</label>
124
+ <div class="col-sm-4 input">
125
+ <input ng-model="repo.label"
126
+ ng-disabled="creating() || repo.created"
127
+ name="repo_label"
128
+ type="text"
129
+ class="form-control"
130
+ required/>
131
+ </div>
132
+ </div>
134
133
  </div>
135
- </div>
136
- </div>
137
-
138
- <div class="form">
139
- <div class="control-group buttons">
140
- <div class="input">
141
- <button ng-click="createRepos()"
142
- ng-disabled="creating() || !requiredFieldsEnabled()"
143
- translate
144
- class="btn btn-primary btn-large">
145
- <i class="fa fa-spinner fa-spin" ng-show="creating()"></i>
146
- Create
147
- </button>
134
+
135
+ <div class="form">
136
+ <div class="control-group buttons">
137
+ <div class="input">
138
+ <button ng-click="createRepos()"
139
+ ng-disabled="creating() || !requiredFieldsEnabled()"
140
+ translate
141
+ class="btn btn-primary btn-large">
142
+ <i class="fa fa-spinner fa-spin" ng-show="creating()"></i>
143
+ Create
144
+ </button>
145
+ </div>
146
+ </div>
148
147
  </div>
149
- </div>
150
- </div>
151
- </section>
152
- </form>
148
+ </section>
149
+ </form>
150
+ </div>
151
+ </div>