katello 3.3.0.rc1.1 → 3.3.0.rc2
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.
- checksums.yaml +4 -4
- data/app/controllers/katello/api/v2/content_view_filter_rules_controller.rb +2 -2
- data/app/controllers/katello/api/v2/content_view_filters_controller.rb +8 -1
- data/app/controllers/katello/api/v2/content_views_controller.rb +30 -7
- data/app/controllers/katello/api/v2/host_contents_controller.rb +1 -0
- data/app/controllers/katello/products_controller.rb +9 -10
- data/app/controllers/katello/providers_controller.rb +3 -2
- data/app/helpers/katello/hosts_and_hostgroups_helper.rb +48 -24
- data/app/lib/actions/katello/repository/clear.rb +2 -1
- data/app/lib/actions/katello/repository/clone_docker_content.rb +13 -7
- data/app/lib/actions/katello/repository/clone_to_environment.rb +1 -1
- data/app/lib/actions/katello/repository/clone_to_version.rb +1 -1
- data/app/lib/katello/util/docker_manifest_clause_generator.rb +44 -0
- data/app/lib/katello/util/package_filter.rb +24 -5
- data/app/models/katello/concerns/content_facet_host_extensions.rb +3 -1
- data/app/models/katello/concerns/host_managed_extensions.rb +0 -7
- data/app/models/katello/concerns/smart_proxy_extensions.rb +1 -1
- data/app/models/katello/content_view_docker_filter.rb +37 -0
- data/app/models/katello/content_view_docker_filter_rule.rb +23 -0
- data/app/models/katello/content_view_filter.rb +17 -4
- data/app/models/katello/content_view_puppet_environment.rb +6 -0
- data/app/models/katello/content_view_puppet_module.rb +5 -0
- data/app/models/katello/docker_manifest.rb +1 -1
- data/app/models/katello/glue/pulp/repo.rb +1 -1
- data/app/models/katello/host/content_facet.rb +2 -0
- data/app/views/dashboard/_content_views_widget.html.erb +1 -1
- data/app/views/dashboard/_subscription_status_widget.html.erb +1 -1
- data/app/views/dashboard/_subscription_widget.html.erb +1 -1
- data/app/views/foreman/job_templates/install_errata.erb +1 -1
- data/app/views/foreman/unattended/kickstart-katello-atomic.erb +10 -1
- data/app/views/foreman/unattended/kickstart-katello.erb +1 -1
- data/app/views/katello/api/v2/content_facet/base.json.rabl +5 -0
- data/app/views/katello/api/v2/content_facet/show.json.rabl +1 -1
- data/app/views/katello/api/v2/content_view_filters/base.json.rabl +5 -0
- data/app/views/katello/api/v2/docker_tags/show.json.rabl +1 -1
- data/app/views/katello/api/v2/gpg_keys/show.json.rabl +2 -4
- data/app/views/katello/providers/redhat/_repos.html.erb +4 -0
- data/app/views/overrides/activation_keys/_host_environment_select.html.erb +12 -10
- data/db/migrate/20160924213020_change_katello_widget_names.rb +21 -0
- data/db/migrate/20161102194100_create_content_view_docker_filter_rules.rb +13 -0
- data/db/migrate/20161214151548_move_content_source_id_to_content_facets.rb +38 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/activation-keys/details/views/activation-key-details.html +11 -6
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/content-view.factory.js +9 -10
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/content-views.controller.js +1 -5
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/content-views.routes.js +349 -221
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/deletion/content-view-deletion.controller.js +5 -14
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/deletion/content-view-version-deletion-activation-keys.controller.js +2 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/deletion/content-view-version-deletion-confirm.controller.js +8 -5
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/deletion/content-view-version-deletion-content-hosts.controller.js +2 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/deletion/content-view-version-deletion.controller.js +5 -5
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/deletion/views/content-view-deletion.html +12 -17
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/deletion/views/version-deletion-activation-keys.html +3 -5
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/deletion/views/version-deletion-confirm.html +1 -3
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/deletion/views/version-deletion-content-hosts.html +67 -71
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/deletion/views/version-deletion-environments.html +1 -3
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/components/content-view-composite-available-content-views.controller.js +3 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/components/content-view-composite-content-views-list.controller.js +2 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/components/views/content-view-composite-available-content-views.html +19 -15
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/components/views/content-view-composite-content-views-list.html +65 -63
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/components/views/content-view-composite.html +4 -4
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-available-docker-repositories.controller.js +2 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-available-file-repositories.controller.js +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-available-ostree-repositories.controller.js +2 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-available-repositories.controller.js +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-details.controller.js +8 -124
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-docker-repositories-list.controller.js +29 -20
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-file-repositories-list.controller.js +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-ostree-repositories-list.controller.js +29 -20
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-promotion.controller.js +6 -5
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-publish.controller.js +4 -3
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-repositories-list.controller.js +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-repositories.service.js +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/content-view-versions.controller.js +133 -25
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/available-errata-filter.controller.js +6 -5
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/available-package-group-filter.controller.js +8 -5
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/date-type-errata-filter.controller.js +6 -3
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/edit-filter.controller.js +4 -6
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/errata-filter-list.controller.js +6 -5
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/errata-filter.controller.js +0 -4
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/filter-repositories.controller.js +11 -10
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/filters.controller.js +11 -9
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/new-filter.controller.js +7 -6
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/package-filter.controller.js +8 -8
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/package-group-list-filter.controller.js +6 -5
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/views/date-type-errata-filter.html +1 -3
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/views/edit-filter.html +0 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/views/errata-filter-details.html +16 -21
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/views/errata-filter.html +10 -10
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/views/filter-details.html +5 -45
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/views/filter-repositories.html +98 -104
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/views/filters.html +12 -21
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/views/new-filter.html +53 -62
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/views/package-filter-details.html +187 -179
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/views/package-filter.html +26 -35
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/views/package-group-filter-details.html +10 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/views/package-group-filter.html +8 -11
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/histories/content-view-history.controller.js +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/histories/views/content-view-history.html +9 -7
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/puppet-modules/content-view-puppet-module-names.controller.js +3 -3
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/puppet-modules/content-view-puppet-module-versions.controller.js +15 -21
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/puppet-modules/content-view-puppet-modules.controller.js +8 -9
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/puppet-modules/views/content-view-puppet-module-names.html +28 -41
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/puppet-modules/views/content-view-puppet-module-versions.html +31 -28
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/puppet-modules/views/content-view-puppet-modules.html +6 -9
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-copy.html +18 -0
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-details-tasks.html +1 -3
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-details.html +133 -160
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-docker-repositories.html +40 -64
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-file-repositories.html +78 -110
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-info.html +29 -36
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-ostree-repositories.html +78 -110
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-promotion.html +1 -7
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-publish.html +32 -36
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-repositories.html +93 -123
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/views/content-view-versions.html +71 -75
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/new/content-view-new.controller.js +2 -3
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/new/views/content-view-new.html +16 -20
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/content-view-version-content.controller.js +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/views/content-view-version-components.html +3 -9
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/views/content-view-version-docker.html +2 -7
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/views/content-view-version-errata.html +39 -44
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/views/content-view-version-file.html +2 -7
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/views/content-view-version-ostree-branches.html +2 -6
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/views/content-view-version-package-groups.html +8 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/views/content-view-version-packages.html +2 -7
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/views/content-view-version-puppet-modules.html +2 -7
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/views/content-view-version-yum.html +2 -7
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/versions/views/content-view-version.html +60 -75
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/views/content-views.html +50 -5
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/details/docker-tag-details.controller.js +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/docker-tags/details/views/docker-tag-environments.html +9 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/environments/details/views/environment-content-views.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/errata/views/apply-errata-confirm.html +2 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/gpg-keys/details/views/gpg-key-details.html +3 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/host-collections/details/views/host-collection-details.html +9 -4
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/repositories/details/views/repository-details.html +9 -3
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/products/details/views/product-details.html +17 -13
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/puppet-modules/details/views/puppet-modules-details-content-views.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/sync-plans/details/views/sync-plan-details.html +8 -3
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/tasks-table.directive.js +2 -2
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/views/tasks-index.html +1 -1
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/tasks/views/tasks-table.html +35 -34
- data/engines/bastion_katello/app/assets/stylesheets/bastion_katello/tasks.scss +0 -8
- data/lib/katello/engine.rb +7 -0
- data/lib/katello/plugin.rb +9 -8
- data/lib/katello/tasks/clean_published_repo_directories.rake +52 -0
- data/lib/katello/tasks/reimport.rake +2 -1
- data/lib/katello/tasks/upgrades/2.4/import_puppet_modules.rake +1 -0
- data/lib/katello/tasks/upgrades/3.0/update_subscription_facet_backend_data.rake +1 -1
- data/lib/katello/version.rb +1 -1
- metadata +11 -7
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/deletion/views/version-deletion-breadcrumb.html +0 -18
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/details/filters/package-group-filter.controller.js +0 -16
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/views/content-views-table-collapsed.html +0 -21
- data/engines/bastion_katello/app/assets/javascripts/bastion_katello/content-views/views/content-views-table-full.html +0 -46
@@ -5,43 +5,43 @@
|
|
5
5
|
<nav>
|
6
6
|
<ul class="nav nav-tabs">
|
7
7
|
|
8
|
-
<li ng-class="{active: isState('content-
|
9
|
-
<a ui-sref="content-
|
8
|
+
<li ng-class="{active: isState('content-view.filter.erratum.edit')}">
|
9
|
+
<a ui-sref="content-view.filter.erratum.edit">
|
10
10
|
<span translate>
|
11
11
|
Details
|
12
12
|
</span>
|
13
13
|
</a>
|
14
14
|
</li>
|
15
15
|
|
16
|
-
<li ng-if="!filter.rules[0].types" ng-class="{active: isState('content-
|
17
|
-
<a ui-sref="content-
|
16
|
+
<li ng-if="!filter.rules[0].types" ng-class="{active: isState('content-view.filter.erratum.list')}">
|
17
|
+
<a ui-sref="content-view.filter.erratum.list({filterId: filter.id})">
|
18
18
|
<span translate>
|
19
19
|
List/Remove
|
20
20
|
</span>
|
21
21
|
</a>
|
22
22
|
</li>
|
23
23
|
|
24
|
-
<li ng-if="!filter.rules[0].types" ng-class="{active: isState('content-
|
24
|
+
<li ng-if="!filter.rules[0].types" ng-class="{active: isState('content-view.filter.erratum.available')}"
|
25
25
|
ng-show="permitted('edit_content_views', contentView)">
|
26
|
-
<a ui-sref="content-
|
26
|
+
<a ui-sref="content-view.filter.erratum.available({filterId: filter.id})">
|
27
27
|
<span translate>
|
28
28
|
Add
|
29
29
|
</span>
|
30
30
|
</a>
|
31
31
|
</li>
|
32
32
|
|
33
|
-
<li ng-if="filter.rules[0].types" ng-class="{active: isState('content-
|
33
|
+
<li ng-if="filter.rules[0].types" ng-class="{active: isState('content-view.filter.erratum.dateType')}"
|
34
34
|
ng-show="permitted('edit_content_views', contentView)">
|
35
|
-
<a ui-sref="content-
|
35
|
+
<a ui-sref="content-view.filter.erratum.dateType({filterId: filter.id})">
|
36
36
|
<span translate>
|
37
37
|
Erratum Date Range
|
38
38
|
</span>
|
39
39
|
</a>
|
40
40
|
</li>
|
41
41
|
|
42
|
-
<li ng-class="{active: isState('content-
|
42
|
+
<li ng-class="{active: isState('content-view.filter.erratum.repositories')}"
|
43
43
|
ng-show="permitted('edit_content_views', contentView)">
|
44
|
-
<a ui-sref="content-
|
44
|
+
<a ui-sref="content-view.filter.erratum.repositories({filterId: filter.id})"
|
45
45
|
ng-include="'content-views/details/filters/views/partials/filter-repositories-count.html'">
|
46
46
|
</a>
|
47
47
|
</li>
|
@@ -1,48 +1,8 @@
|
|
1
1
|
<span page-title ng-model="filter">{{ 'Filter:' | translate }} {{ filter.name }}</span>
|
2
2
|
|
3
|
-
<
|
4
|
-
|
5
|
-
|
6
|
-
</
|
3
|
+
<header class="details-header">
|
4
|
+
<h3>{{ filter.name }}</h3>
|
5
|
+
<small translate>Type: {{ filter.inclusion | filterType }} {{ filter.type | filterContentType }}</small>
|
6
|
+
</header>
|
7
7
|
|
8
|
-
<div
|
9
|
-
|
10
|
-
<ol class="breadcrumb">
|
11
|
-
<li ng-class="{active: isState('content-views.details.filters.list')}">
|
12
|
-
<a ui-sref="content-views.details.filters.list" translate>Filters</a>
|
13
|
-
</li>
|
14
|
-
|
15
|
-
<li ng-if="filter.type === 'erratum'"
|
16
|
-
ng-class="{active: stateIncludes('content-views.details.filters.details.erratum')}">
|
17
|
-
<a ng-if="!filter.rules[0].types"
|
18
|
-
ui-sref="content-views.details.filters.details.erratum.list({filterId: filter.id})">
|
19
|
-
{{ filter.name }}
|
20
|
-
</a>
|
21
|
-
<a ng-if="filter.rules[0].types"
|
22
|
-
ui-sref="content-views.details.filters.details.erratum.dateType({filterId: filter.id})">
|
23
|
-
{{ filter.name }}
|
24
|
-
</a>
|
25
|
-
</li>
|
26
|
-
|
27
|
-
<li ng-if="filter.type === 'rpm'"
|
28
|
-
ng-class="{active: stateIncludes('content-views.details.filters.details.rpm')}">
|
29
|
-
<a ui-sref="content-views.details.filters.details.rpm({filterId: filter.id})">
|
30
|
-
{{ filter.name }}
|
31
|
-
</a>
|
32
|
-
</li>
|
33
|
-
|
34
|
-
<li ng-if="filter.type === 'package_group'"
|
35
|
-
ng-class="{active: stateIncludes('content-views.details.filters.details.package_group')}">
|
36
|
-
<a ui-sref="content-views.details.filters.details.package_group.list({filterId: filter.id})">
|
37
|
-
{{ filter.name }}
|
38
|
-
</a>
|
39
|
-
</li>
|
40
|
-
</ol>
|
41
|
-
|
42
|
-
<header class="details-header">
|
43
|
-
<h3>{{ filter.name }} ({{ filter.inclusion | filterType }} {{ filter.type | filterContentType }})</h3>
|
44
|
-
</header>
|
45
|
-
|
46
|
-
<div ui-view></div>
|
47
|
-
|
48
|
-
</div>
|
8
|
+
<div ui-view></div>
|
@@ -1,123 +1,117 @@
|
|
1
1
|
<span page-title ng-model="filter">{{ 'Repositories for Filter:' | translate }} {{ filter.name }}</span>
|
2
2
|
|
3
|
-
<div
|
4
|
-
|
5
|
-
<
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
ng-hide="denied('edit_content_views', contentView)"
|
24
|
-
ng-model="showRepos"/>
|
25
|
-
<span translate>This filter applies only to a subset of repositories in the content view.</span>
|
26
|
-
</label>
|
27
|
-
</div>
|
3
|
+
<div class="row">
|
4
|
+
<div class="well col-sm-8">
|
5
|
+
<div class="radio">
|
6
|
+
<label>
|
7
|
+
<input type="radio"
|
8
|
+
ng-value="false"
|
9
|
+
ng-model="showRepos"
|
10
|
+
ng-hide="denied('edit_content_views', contentView)"
|
11
|
+
ng-click="selectAllRepositories()"/>
|
12
|
+
<span translate>This filter applies to all repositories in the content view (current and future).</span>
|
13
|
+
</label>
|
14
|
+
</div>
|
15
|
+
<div class="radio">
|
16
|
+
<label>
|
17
|
+
<input type="radio"
|
18
|
+
ng-value="true"
|
19
|
+
ng-hide="denied('edit_content_views', contentView)"
|
20
|
+
ng-model="showRepos"/>
|
21
|
+
<span translate>This filter applies only to a subset of repositories in the content view.</span>
|
22
|
+
</label>
|
28
23
|
</div>
|
29
24
|
</div>
|
25
|
+
</div>
|
30
26
|
|
31
|
-
|
32
|
-
|
33
|
-
|
27
|
+
<div ng-class="{'table-mask': !showRepos}">
|
28
|
+
<div data-extend-template="layouts/partials/table.html">
|
29
|
+
<div data-block="list-actions">
|
30
|
+
<button class="btn btn-default"
|
34
31
|
translate
|
35
32
|
ng-hide="denied('edit_content_views', contentView)"
|
36
|
-
ng-disabled="!showRepos ||
|
33
|
+
ng-disabled="!showRepos || table.numSelected === 0"
|
37
34
|
ng-click="updateRepositories()">
|
38
35
|
Update Repositories
|
39
36
|
</button>
|
40
|
-
</
|
41
|
-
|
42
|
-
<div class="row">
|
43
|
-
<div class="col-sm-8">
|
44
|
-
<div class="input-group">
|
45
|
-
|
46
|
-
<span class="input-group-addon">
|
47
|
-
<select ng-model="product" ng-options="product.name for (id, product) in products">
|
48
|
-
</select>
|
49
|
-
</span>
|
37
|
+
</div>
|
50
38
|
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
39
|
+
<div data-block="search" class="col-sm-5">
|
40
|
+
<div class="input-group">
|
41
|
+
<span class="input-group-addon">
|
42
|
+
<select ng-model="product" ng-options="product.name for (id, product) in products"></select>
|
43
|
+
</span>
|
55
44
|
|
56
|
-
|
45
|
+
<input type="text"
|
46
|
+
class="form-control filter-input"
|
47
|
+
placeholder="{{ 'Filter' | translate }}"
|
48
|
+
ng-model="repositorySearch"/>
|
57
49
|
</div>
|
58
50
|
</div>
|
59
51
|
|
60
|
-
<
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
<
|
65
|
-
<
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
52
|
+
<div data-block="table">
|
53
|
+
<table bst-table="table"
|
54
|
+
class="table table-striped"
|
55
|
+
ng-class="{'table-mask': table.working}">
|
56
|
+
<thead>
|
57
|
+
<tr bst-table-head row-select>
|
58
|
+
<th bst-table-column="affectedRepos">Affected?</th>
|
59
|
+
<th bst-table-column="name" translate>Name</th>
|
60
|
+
<th bst-table-column="product" translate>Product</th>
|
61
|
+
<th bst-table-column="type" translate>Type</th>
|
62
|
+
<th bst-table-column="sync-status" translate>Sync Status</th>
|
63
|
+
<th bst-table-column="content" translate>Content</th>
|
64
|
+
</tr>
|
65
|
+
</thead>
|
73
66
|
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
</a>
|
84
|
-
</td>
|
85
|
-
<td bst-table-cell>
|
86
|
-
<a ui-sref="product.info({productId: repository.product.id})">
|
87
|
-
{{ repository.product.name }}
|
88
|
-
</a>
|
89
|
-
</td>
|
90
|
-
<td bst-table-cell>{{ repository.content_type }}</td>
|
91
|
-
<td bst-table-cell>
|
92
|
-
<span ng-show="repository.url">
|
93
|
-
<span ng-show="repository.last_sync == null" translate>
|
94
|
-
Not Synced
|
95
|
-
</span>
|
96
|
-
<span ng-hide="repository.last_sync == null">
|
97
|
-
<a href="/foreman_tasks/tasks/{{repository.last_sync.id}}">{{ repository.last_sync.result | capitalize}}</a>
|
98
|
-
({{ repository.last_sync.ended_at | date:"short" }})
|
99
|
-
</span>
|
100
|
-
</span>
|
101
|
-
<span ng-hide="repository.url" translate>N/A</span>
|
102
|
-
</td>
|
103
|
-
<td bst-table-cell>
|
104
|
-
<div ng-if="repository.content_counts.rpm && repository.content_counts.rpm > 0">
|
105
|
-
<a ui-sref="product.repository.manage-content.packages({productId: repository.product.id, repositoryId: repository.id})"
|
106
|
-
ng-show="repository.content_type == 'yum'"
|
107
|
-
translate>
|
108
|
-
{{ repository.content_counts.rpm }} Packages
|
67
|
+
<tbody>
|
68
|
+
<tr bst-table-row
|
69
|
+
row-select="repository"
|
70
|
+
ng-hide="denied('edit_content_views', contentView)"
|
71
|
+
ng-disabled="!showRepos"
|
72
|
+
ng-repeat="repository in table.rows | filter:repositorySearch | filter:repositoryFilter">
|
73
|
+
<td bst-table-cell>
|
74
|
+
<a ui-sref="product.repository.info({productId: repository.product.id, repositoryId: repository.id})">
|
75
|
+
{{ repository.name }}
|
109
76
|
</a>
|
110
|
-
</
|
111
|
-
<
|
112
|
-
<a ui-sref="
|
113
|
-
|
114
|
-
translate>
|
115
|
-
{{ repository.content_counts.erratum }} Errata
|
77
|
+
</td>
|
78
|
+
<td bst-table-cell>
|
79
|
+
<a ui-sref="product.info({productId: repository.product.id})">
|
80
|
+
{{ repository.product.name }}
|
116
81
|
</a>
|
117
|
-
</
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
82
|
+
</td>
|
83
|
+
<td bst-table-cell>{{ repository.content_type }}</td>
|
84
|
+
<td bst-table-cell>
|
85
|
+
<span ng-show="repository.url">
|
86
|
+
<span ng-show="repository.last_sync == null" translate>
|
87
|
+
Not Synced
|
88
|
+
</span>
|
89
|
+
<span ng-hide="repository.last_sync == null">
|
90
|
+
<a href="/foreman_tasks/tasks/{{repository.last_sync.id}}">{{ repository.last_sync.result | capitalize}}</a>
|
91
|
+
({{ repository.last_sync.ended_at | date:"short" }})
|
92
|
+
</span>
|
93
|
+
</span>
|
94
|
+
<span ng-hide="repository.url" translate>N/A</span>
|
95
|
+
</td>
|
96
|
+
<td bst-table-cell>
|
97
|
+
<div ng-if="repository.content_counts.rpm && repository.content_counts.rpm > 0">
|
98
|
+
<a ui-sref="products.repository.manage-content.packages({productId: repository.product.id, repositoryId: repository.id})"
|
99
|
+
ng-show="repository.content_type == 'yum'"
|
100
|
+
translate>
|
101
|
+
{{ repository.content_counts.rpm }} Packages
|
102
|
+
</a>
|
103
|
+
</div>
|
104
|
+
<div ng-if="repository.content_counts.erratum && repository.content_counts.erratum > 0">
|
105
|
+
<a ui-sref="errata.index({repositoryId: repository.id})"
|
106
|
+
ng-show="repository.content_type == 'yum'"
|
107
|
+
translate>
|
108
|
+
{{ repository.content_counts.erratum }} Errata
|
109
|
+
</a>
|
110
|
+
</div>
|
111
|
+
</td>
|
112
|
+
</tr>
|
113
|
+
</tbody>
|
114
|
+
</table>
|
115
|
+
</div>
|
122
116
|
</div>
|
123
|
-
</
|
117
|
+
</div>
|
@@ -1,26 +1,17 @@
|
|
1
1
|
<span page-title ng-model="contentView">{{ 'Filters for Content View:' | translate }} {{ contentView.name }}</span>
|
2
2
|
|
3
|
-
<div data-extend-template="layouts/
|
4
|
-
|
5
|
-
<div data-block="messages"></div>
|
6
|
-
|
7
|
-
<div data-block="header">
|
8
|
-
<h3 translate>Filters</h3>
|
9
|
-
</div>
|
10
|
-
|
11
|
-
<div data-block="actions">
|
3
|
+
<div data-extend-template="layouts/partials/table.html">
|
4
|
+
<div data-block="list-actions">
|
12
5
|
<button class="btn btn-default"
|
13
6
|
ng-hide="denied('edit_content_views', contentView)"
|
14
|
-
ui-sref="content-
|
15
|
-
<i class="fa fa-plus"></i>
|
7
|
+
ui-sref="content-view.filters.new">
|
16
8
|
<span translate>New Filter</span>
|
17
9
|
</button>
|
18
10
|
<button class="btn btn-default"
|
19
11
|
ng-hide="denied('edit_content_views', contentView)"
|
20
|
-
ng-disabled="
|
12
|
+
ng-disabled="table.numSelected === 0"
|
21
13
|
ng-click="removeFilters()">
|
22
|
-
<
|
23
|
-
<span translate>Remove Filters</span>
|
14
|
+
<span translate>Remove Selected</span>
|
24
15
|
</button>
|
25
16
|
</div>
|
26
17
|
|
@@ -33,8 +24,8 @@
|
|
33
24
|
</span>
|
34
25
|
|
35
26
|
<div data-block="table">
|
36
|
-
<table class="table table-striped table-bordered" ng-show="
|
37
|
-
ng-class="{'table-mask':
|
27
|
+
<table class="table table-striped table-bordered" ng-show="table.rows.length > 0"
|
28
|
+
ng-class="{'table-mask': table.working}">
|
38
29
|
|
39
30
|
<thead>
|
40
31
|
<tr bst-table-head row-select>
|
@@ -47,22 +38,22 @@
|
|
47
38
|
</thead>
|
48
39
|
|
49
40
|
<tbody>
|
50
|
-
<tr bst-table-row ng-repeat="filter in
|
41
|
+
<tr bst-table-row ng-repeat="filter in table.rows" row-select="filter">
|
51
42
|
<td bst-table-cell>
|
52
43
|
<a ng-if="filter.type === 'erratum' && !filter.rules[0].types"
|
53
|
-
ui-sref="content-
|
44
|
+
ui-sref="content-view.filter.erratum.list({filterId: filter.id})">
|
54
45
|
{{ filter.name }}
|
55
46
|
</a>
|
56
47
|
<a ng-if="filter.type === 'erratum' && filter.rules[0].types"
|
57
|
-
ui-sref="content-
|
48
|
+
ui-sref="content-view.filter.erratum.dateType({filterId: filter.id})">
|
58
49
|
{{ filter.name }}
|
59
50
|
</a>
|
60
51
|
<a ng-if="filter.type === 'rpm'"
|
61
|
-
ui-sref="content-
|
52
|
+
ui-sref="content-view.filter.rpm.details({filterId: filter.id})">
|
62
53
|
{{ filter.name }}
|
63
54
|
</a>
|
64
55
|
<a ng-if="filter.type === 'package_group'"
|
65
|
-
ui-sref="content-
|
56
|
+
ui-sref="content-view.filter.package_group.list({filterId: filter.id})">
|
66
57
|
{{ filter.name }}
|
67
58
|
</a>
|
68
59
|
</td>
|
@@ -1,64 +1,55 @@
|
|
1
1
|
<span page-title ng-model="contentView">{{ 'New Filter for Content View:' | translate }} {{ contentView.name }}</span>
|
2
2
|
|
3
|
-
<
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
<
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
</
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
<div bst-form-buttons
|
58
|
-
on-cancel="transitionTo('content-views.details.filters.list', {contentViewId: contentView.id})"
|
59
|
-
on-save="save(filter, contentView)"
|
60
|
-
working="working">
|
61
|
-
</div>
|
62
|
-
</form>
|
63
|
-
|
64
|
-
</div>
|
3
|
+
<header data-block="sub-header`">
|
4
|
+
<h3 translate>Add New Filter</h3>
|
5
|
+
</header>
|
6
|
+
|
7
|
+
<form name="filterForm" class="col-sm-5" role="form" novalidate>
|
8
|
+
<div bst-form-group label="{{ 'Name' | translate }}">
|
9
|
+
<input id="name"
|
10
|
+
name="name"
|
11
|
+
ng-model="filter.name"
|
12
|
+
type="text"
|
13
|
+
tabindex="1"
|
14
|
+
autofocus
|
15
|
+
required/>
|
16
|
+
</div>
|
17
|
+
|
18
|
+
<div bst-form-group label="{{ 'Content Type' | translate }}">
|
19
|
+
<select id="type"
|
20
|
+
name="type"
|
21
|
+
ng-model="filter.type"
|
22
|
+
tabindex="2"
|
23
|
+
required>
|
24
|
+
<option value="rpm" translate>Package</option>
|
25
|
+
<option value="package_group" translate>Package Group</option>
|
26
|
+
<option value="erratumId" translate>Erratum - by ID</option>
|
27
|
+
<option value="erratumDateType" translate>Erratum - by Date and Type</option>
|
28
|
+
</select>
|
29
|
+
</div>
|
30
|
+
|
31
|
+
<div bst-form-group label="{{ 'Inclusion Type' | translate }}">
|
32
|
+
<select id="inclusion"
|
33
|
+
name="inclusion"
|
34
|
+
ng-model="filter.inclusion"
|
35
|
+
tabindex="3"
|
36
|
+
required>
|
37
|
+
<option value="true" translate>Include</option>
|
38
|
+
<option value="false" translate>Exclude</option>
|
39
|
+
</select>
|
40
|
+
</div>
|
41
|
+
|
42
|
+
<div bst-form-group label="{{ 'Description' | translate }}">
|
43
|
+
<textarea id="description"
|
44
|
+
name="description"
|
45
|
+
ng-model="filter.description"
|
46
|
+
tabindex="3">
|
47
|
+
</textarea>
|
48
|
+
</div>
|
49
|
+
|
50
|
+
<div bst-form-buttons
|
51
|
+
on-cancel="transitionTo('content-view.filters', {contentViewId: contentView.id})"
|
52
|
+
on-save="save(filter, contentView)"
|
53
|
+
working="working">
|
54
|
+
</div>
|
55
|
+
</form>
|