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
@@ -1,40 +1,37 @@
|
|
1
1
|
<span page-title ng-model="filter">{{ 'Package Group Filter:' | translate }} {{ filter.name }}</span>
|
2
2
|
|
3
3
|
<div class="details details-full">
|
4
|
-
|
5
|
-
<div data-block="messages" bst-alerts success-messages="successMessages" error-messages="errorMessages"></div>
|
6
|
-
|
7
4
|
<nav>
|
8
5
|
<ul class="nav nav-tabs">
|
9
6
|
|
10
|
-
<li ng-class="{active: isState('content-
|
11
|
-
<a ui-sref="content-
|
7
|
+
<li ng-class="{active: isState('content-view.filter.package_group.edit')}">
|
8
|
+
<a ui-sref="content-view.filter.package_group.edit">
|
12
9
|
<span translate>
|
13
10
|
Details
|
14
11
|
</span>
|
15
12
|
</a>
|
16
13
|
</li>
|
17
14
|
|
18
|
-
<li ng-class="{active: isState('content-
|
19
|
-
<a ui-sref="content-
|
15
|
+
<li ng-class="{active: isState('content-view.filter.package_group.list')}">
|
16
|
+
<a ui-sref="content-view.filter.package_group.list({filterId: filter.id})">
|
20
17
|
<span translate>
|
21
18
|
List/Remove
|
22
19
|
</span>
|
23
20
|
</a>
|
24
21
|
</li>
|
25
22
|
|
26
|
-
<li ng-class="{active: isState('content-
|
23
|
+
<li ng-class="{active: isState('content-view.filter.package_group.available')}"
|
27
24
|
ng-show="!contentView.permissions.editable">
|
28
|
-
<a ui-sref="content-
|
25
|
+
<a ui-sref="content-view.filter.package_group.available({filterId: filter.id})">
|
29
26
|
<span translate>
|
30
27
|
Add
|
31
28
|
</span>
|
32
29
|
</a>
|
33
30
|
</li>
|
34
31
|
|
35
|
-
<li ng-class="{active: isState('content-
|
32
|
+
<li ng-class="{active: isState('content-view.filter.package_group.repositories')}"
|
36
33
|
ng-show="!contentView.permissions.editable">
|
37
|
-
<a ui-sref="content-
|
34
|
+
<a ui-sref="content-view.filter.package_group.repositories({filterId: filter.id})"
|
38
35
|
ng-include="'content-views/details/filters/views/partials/filter-repositories-count.html'">
|
39
36
|
</a>
|
40
37
|
</li>
|
@@ -21,7 +21,7 @@ angular.module('Bastion.content-views').controller('ContentViewHistoryController
|
|
21
21
|
});
|
22
22
|
|
23
23
|
nutupane.table.closeItem = function () {};
|
24
|
-
$scope.
|
24
|
+
$scope.table = nutupane.table;
|
25
25
|
|
26
26
|
$scope.actionText = function (history) {
|
27
27
|
var message,
|
@@ -1,14 +1,17 @@
|
|
1
1
|
<span page-title ng-model="contentView">{{ 'History for Content View:' | translate }} {{ contentView.name }}</span>
|
2
2
|
|
3
|
-
<
|
3
|
+
<header data-block="sub-header">
|
4
|
+
<h3 translate>Promotion History</h3>
|
5
|
+
</header>
|
4
6
|
|
5
|
-
|
7
|
+
<div data-extend-template="layouts/partials/table.html">
|
8
|
+
<span data-block="no-rows-message" translate>
|
9
|
+
There is currently no history associated with this Content View.
|
10
|
+
</span>
|
6
11
|
|
7
|
-
<div data-block="messages"></div>
|
8
|
-
<div data-block="selection-summary"></div>
|
9
12
|
|
10
13
|
<div data-block="table">
|
11
|
-
<table class="table table-striped table-bordered" ng-class="{'table-mask':
|
14
|
+
<table class="table table-striped table-bordered" ng-class="{'table-mask': table.working}">
|
12
15
|
<thead>
|
13
16
|
<tr bst-table-head>
|
14
17
|
<th translate>Date</th>
|
@@ -21,7 +24,7 @@
|
|
21
24
|
</thead>
|
22
25
|
|
23
26
|
<tbody>
|
24
|
-
<tr bst-table-row ng-repeat="history in
|
27
|
+
<tr bst-table-row ng-repeat="history in table.rows">
|
25
28
|
<td bst-table-cell>{{ history.created_at | date:'short' }}</td>
|
26
29
|
<td bst-table-cell>{{ history.version }} </td>
|
27
30
|
<td bst-table-cell class="preserve-newlines">{{ history.description }}</td>
|
@@ -32,5 +35,4 @@
|
|
32
35
|
</tbody>
|
33
36
|
</table>
|
34
37
|
</div>
|
35
|
-
|
36
38
|
</div>
|
@@ -19,9 +19,9 @@ angular.module('Bastion.content-views').controller('ContentViewPuppetModuleNames
|
|
19
19
|
'availablePuppetModuleNames'
|
20
20
|
);
|
21
21
|
nutupane.masterOnly = true;
|
22
|
-
$scope.
|
22
|
+
$scope.table = nutupane.table;
|
23
23
|
|
24
|
-
$scope.
|
24
|
+
$scope.table.fetchAutocomplete = function (term) {
|
25
25
|
var promise;
|
26
26
|
|
27
27
|
promise = PuppetModule.autocomplete({'organization_id': CurrentOrganization, search: term}).$promise;
|
@@ -32,7 +32,7 @@ angular.module('Bastion.content-views').controller('ContentViewPuppetModuleNames
|
|
32
32
|
};
|
33
33
|
|
34
34
|
$scope.selectVersion = function (moduleName) {
|
35
|
-
$scope.transitionTo('content-
|
35
|
+
$scope.transitionTo('content-view.puppet-modules.versions',
|
36
36
|
{
|
37
37
|
contentViewId: $scope.$stateParams.contentViewId,
|
38
38
|
moduleName: moduleName
|
@@ -4,29 +4,27 @@
|
|
4
4
|
*
|
5
5
|
* @requires $scope
|
6
6
|
* @requires translate
|
7
|
+
* @requires Nutupane
|
7
8
|
* @requires ContentView
|
8
9
|
* @requires ContentViewPuppetModule
|
10
|
+
* @requires GlobalNotification
|
9
11
|
*
|
10
12
|
* @description
|
11
13
|
* Provides the ability to select a version of a Puppet Module for a Content View.
|
12
14
|
*/
|
13
15
|
angular.module('Bastion.content-views').controller('ContentViewPuppetModuleVersionsController',
|
14
|
-
['$scope', 'translate', 'ContentView', 'ContentViewPuppetModule',
|
15
|
-
function ($scope, translate, ContentView, ContentViewPuppetModule) {
|
16
|
-
var success, error;
|
16
|
+
['$scope', 'translate', 'Nutupane', 'ContentView', 'ContentViewPuppetModule', 'GlobalNotification',
|
17
|
+
function ($scope, translate, Nutupane, ContentView, ContentViewPuppetModule, GlobalNotification) {
|
18
|
+
var success, error, nutupane, params;
|
17
19
|
|
18
|
-
|
19
|
-
|
20
|
-
|
20
|
+
params = {
|
21
|
+
name: $scope.$stateParams.moduleName,
|
22
|
+
id: $scope.$stateParams.contentViewId
|
23
|
+
};
|
21
24
|
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
id: $scope.$stateParams.contentViewId
|
26
|
-
}, function () {
|
27
|
-
$scope.versionsLoading = false;
|
28
|
-
}
|
29
|
-
);
|
25
|
+
nutupane = new Nutupane(ContentView, params, 'availablePuppetModules');
|
26
|
+
nutupane.masterOnly = true;
|
27
|
+
$scope.table = nutupane.table;
|
30
28
|
|
31
29
|
$scope.selectVersion = function (module) {
|
32
30
|
var contentViewPuppetModule, contentViewPuppetModuleData = {
|
@@ -36,10 +34,6 @@ angular.module('Bastion.content-views').controller('ContentViewPuppetModuleVersi
|
|
36
34
|
name: module.name
|
37
35
|
};
|
38
36
|
|
39
|
-
if (module.useLatest) {
|
40
|
-
contentViewPuppetModuleData.uuid = null;
|
41
|
-
}
|
42
|
-
|
43
37
|
contentViewPuppetModule = new ContentViewPuppetModule(contentViewPuppetModuleData);
|
44
38
|
|
45
39
|
if ($scope.$stateParams.moduleId) {
|
@@ -51,14 +45,14 @@ angular.module('Bastion.content-views').controller('ContentViewPuppetModuleVersi
|
|
51
45
|
};
|
52
46
|
|
53
47
|
success = function () {
|
54
|
-
$scope.transitionTo('content-
|
48
|
+
$scope.transitionTo('content-view.puppet-modules.list',
|
55
49
|
{contentViewId: $scope.$stateParams.contentViewId});
|
56
|
-
|
50
|
+
GlobalNotification.setSuccessMessage(translate('Puppet module added to Content View'));
|
57
51
|
};
|
58
52
|
|
59
53
|
error = function (response) {
|
60
54
|
angular.forEach(response.data.errors, function (errorMessage) {
|
61
|
-
|
55
|
+
GlobalNotification.setErrorMessage(translate("An error occurred updating the Content View: ") + errorMessage);
|
62
56
|
});
|
63
57
|
};
|
64
58
|
}]
|
@@ -6,22 +6,21 @@
|
|
6
6
|
* @requires translate
|
7
7
|
* @requires Nutupane
|
8
8
|
* @requires ContentViewPuppetModule
|
9
|
+
* @requires GlobalNotification
|
9
10
|
*
|
10
11
|
* @description
|
11
12
|
* Provides functionality to the Content View existing Puppet Modules list.
|
12
13
|
*/
|
13
14
|
angular.module('Bastion.content-views').controller('ContentViewPuppetModulesController',
|
14
|
-
['$scope', 'translate', 'Nutupane', 'ContentViewPuppetModule',
|
15
|
-
function ($scope, translate, Nutupane, ContentViewPuppetModule) {
|
15
|
+
['$scope', 'translate', 'Nutupane', 'ContentViewPuppetModule', 'GlobalNotification',
|
16
|
+
function ($scope, translate, Nutupane, ContentViewPuppetModule, GlobalNotification) {
|
16
17
|
var nutupane = new Nutupane(ContentViewPuppetModule, {
|
17
18
|
contentViewId: $scope.$stateParams.contentViewId
|
18
19
|
});
|
19
20
|
|
20
21
|
nutupane.masterOnly = true;
|
21
22
|
|
22
|
-
$scope.
|
23
|
-
$scope.successMessages = [];
|
24
|
-
$scope.errorMessages = [];
|
23
|
+
$scope.table = nutupane.table;
|
25
24
|
|
26
25
|
$scope.versionText = function (module) {
|
27
26
|
var version;
|
@@ -37,7 +36,7 @@ angular.module('Bastion.content-views').controller('ContentViewPuppetModulesCont
|
|
37
36
|
};
|
38
37
|
|
39
38
|
$scope.selectNewVersion = function (module) {
|
40
|
-
$scope.transitionTo('content-
|
39
|
+
$scope.transitionTo('content-view.puppet-modules.versionsForModule',
|
41
40
|
{
|
42
41
|
contentViewId: $scope.$stateParams.contentViewId,
|
43
42
|
moduleName: module.name,
|
@@ -50,14 +49,14 @@ angular.module('Bastion.content-views').controller('ContentViewPuppetModulesCont
|
|
50
49
|
var success, error;
|
51
50
|
|
52
51
|
success = function () {
|
53
|
-
|
54
|
-
.replace('%s', module.name)
|
52
|
+
GlobalNotification.setSuccessMessage(translate('Module %s removed from Content View.')
|
53
|
+
.replace('%s', module.name));
|
55
54
|
nutupane.removeRow(module.id);
|
56
55
|
};
|
57
56
|
|
58
57
|
error = function (response) {
|
59
58
|
angular.forEach(response.data.errors, function (errorMessage) {
|
60
|
-
|
59
|
+
GlobalNotification.setErrorMessage(translate("An error occurred updating the Content View: ") + errorMessage);
|
61
60
|
});
|
62
61
|
};
|
63
62
|
|
@@ -1,49 +1,37 @@
|
|
1
1
|
<span page-title ng-model="contentView">{{ 'Available Puppet Modules for Content View:' | translate }} {{ contentView.name }}</span>
|
2
2
|
|
3
|
-
<
|
4
|
-
<
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
<i class="fa fa-spinner fa-spin"></i>
|
14
|
-
{{ "Loading..." | translate }}
|
15
|
-
</div>
|
16
|
-
|
17
|
-
<a ui-sref="content-views.details.puppet-modules.list" >
|
18
|
-
<i class="fa fa-double-angle-left"></i>
|
19
|
-
{{ "Back to Module List" | translate }}
|
20
|
-
</a>
|
21
|
-
|
22
|
-
<span data-block="header" translate>Select A New Puppet Module To Add</span>
|
23
|
-
<span data-block="messages"></span>
|
24
|
-
<div data-block="search">
|
25
|
-
<div class="input-group input-group">
|
26
|
-
<input type="text"
|
27
|
-
class="form-control"
|
28
|
-
placeholder="{{ 'Search...' | translate }}"
|
29
|
-
ng-model="detailsTable.searchTerm"
|
30
|
-
bst-on-enter="detailsTable.search(detailsTable.searchTerm)"
|
31
|
-
ng-trim="false"
|
32
|
-
uib-typeahead="item.label for item in detailsTable.fetchAutocomplete($viewValue)"
|
33
|
-
typeahead-template-url="components/views/autocomplete-scoped-search.html"/>
|
34
|
-
<span class="input-group-btn">
|
35
|
-
<button ng-click="detailsTable.search(detailsTable.searchTerm)" class="btn btn-default" type="button"><i class="fa fa-search"></i></button>
|
36
|
-
</span>
|
37
|
-
</div>
|
38
|
-
</div>
|
39
|
-
|
40
|
-
<span data-block="selection-summary"></span>
|
41
|
-
<span data-block="no-rows-message" translate>No puppet modules found</span>
|
3
|
+
<header data-block="sub-header">
|
4
|
+
<h3 translate>
|
5
|
+
Select A New Puppet Module To Add
|
6
|
+
</h3>
|
7
|
+
</header>
|
8
|
+
|
9
|
+
<div data-extend-template="layouts/partials/table.html">
|
10
|
+
<span data-block="no-rows-message" translate>
|
11
|
+
No puppet modules found
|
12
|
+
</span>
|
42
13
|
|
43
14
|
<span data-block="no-search-results-message" translate>
|
44
15
|
Your search returned zero Puppet Modules.
|
45
16
|
</span>
|
46
17
|
|
18
|
+
<div data-block="search">
|
19
|
+
<div class="col-sm-3">
|
20
|
+
<div class="input-group">
|
21
|
+
<input type="text"
|
22
|
+
class="form-control"
|
23
|
+
placeholder="{{ 'Filter...' | translate }}"
|
24
|
+
ng-model="table.searchTerm"
|
25
|
+
bst-on-enter="table.search(table.searchTerm)"
|
26
|
+
ng-trim="false"
|
27
|
+
uib-typeahead="item.label for item in table.fetchAutocomplete($viewValue)"
|
28
|
+
typeahead-template-url="components/views/autocomplete-scoped-search.html"/>
|
29
|
+
<span class="input-group-btn">
|
30
|
+
<button ng-click="table.search(table.searchTerm)" class="btn btn-default" type="button"><i class="fa fa-search"></i></button>
|
31
|
+
</span>
|
32
|
+
</div>
|
33
|
+
</div>
|
34
|
+
</div>
|
47
35
|
|
48
36
|
<div data-block="table">
|
49
37
|
<table class="table table-striped table-bordered">
|
@@ -55,7 +43,7 @@
|
|
55
43
|
</thead>
|
56
44
|
|
57
45
|
<tbody>
|
58
|
-
<tr bst-table-row ng-repeat="item in
|
46
|
+
<tr bst-table-row ng-repeat="item in table.rows">
|
59
47
|
<td >{{ item.name }}</td>
|
60
48
|
<td class="action-cell">
|
61
49
|
<button translate
|
@@ -69,4 +57,3 @@
|
|
69
57
|
</table>
|
70
58
|
</div>
|
71
59
|
</div>
|
72
|
-
|
@@ -1,37 +1,40 @@
|
|
1
1
|
<span page-title ng-model="$stateParams">{{ 'Versions for Puppet Module:' | translate }} {{ $stateParams.moduleName }}</span>
|
2
2
|
|
3
|
-
<
|
4
|
-
<
|
5
|
-
|
6
|
-
|
7
|
-
|
3
|
+
<header data-block="sub-header">
|
4
|
+
<h3 translate>
|
5
|
+
Select an Available Version of {{ $stateParams.moduleName }}
|
6
|
+
</h3>
|
7
|
+
</header>
|
8
8
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
</a>
|
14
|
-
</li>
|
15
|
-
<li>
|
16
|
-
<a ui-sref="content-views.details.puppet-modules.names">
|
17
|
-
{{ "Select Module" | translate }}
|
18
|
-
</a>
|
19
|
-
</li>
|
20
|
-
<li class="active">
|
21
|
-
{{ $stateParams.moduleName }}
|
22
|
-
</li>
|
23
|
-
</ol>
|
9
|
+
<div data-extend-template="layouts/partials/table.html">
|
10
|
+
<span data-block="no-rows-message" translate>
|
11
|
+
No versions found for {{ $stateParams.moduleName }}
|
12
|
+
</span>
|
24
13
|
|
25
|
-
<
|
14
|
+
<span data-block="no-search-results-message" translate>
|
15
|
+
Your search returned zero versions for {{ $stateParams.moduleName }}
|
16
|
+
</span>
|
26
17
|
|
27
|
-
<div
|
28
|
-
<
|
29
|
-
|
30
|
-
|
31
|
-
|
18
|
+
<div data-block="search">
|
19
|
+
<div class="col-sm-3">
|
20
|
+
<div class="input-group">
|
21
|
+
<input type="text"
|
22
|
+
class="form-control"
|
23
|
+
placeholder="{{ 'Filter...' | translate }}"
|
24
|
+
ng-model="table.searchTerm"
|
25
|
+
bst-on-enter="table.search(table.searchTerm)"
|
26
|
+
ng-trim="false"
|
27
|
+
typeahead="item.label for item in table.fetchAutocomplete($viewValue)"
|
28
|
+
typeahead-empty
|
29
|
+
typeahead-template-url="components/views/autocomplete-scoped-search.html"/>
|
30
|
+
<span class="input-group-btn">
|
31
|
+
<button ng-click="table.search(table.searchTerm)" class="btn btn-default" type="button"><i class="fa fa-search"></i></button>
|
32
|
+
</span>
|
33
|
+
</div>
|
34
|
+
</div>
|
32
35
|
</div>
|
33
36
|
|
34
|
-
<table
|
37
|
+
<table data-block="table" class="table table-striped table-bordered">
|
35
38
|
<thead>
|
36
39
|
<tr bst-table-head>
|
37
40
|
<th bst-table-column><span translate>Author</span></th>
|
@@ -43,7 +46,7 @@
|
|
43
46
|
</thead>
|
44
47
|
|
45
48
|
<tbody>
|
46
|
-
<tr bst-table-row ng-repeat="item in
|
49
|
+
<tr bst-table-row ng-repeat="item in table.rows | orderBy: ['author', '-version']">
|
47
50
|
<td bst-table-cell >{{ item.author }}</td>
|
48
51
|
<td bst-table-cell >{{ item.version }}</td>
|
49
52
|
<td bst-table-cell >{{ item.summary }}</td>
|
@@ -1,15 +1,12 @@
|
|
1
1
|
<span page-title ng-model="contentView">{{ 'Puppet Modules for Content View:' | translate }} {{ contentView.name }}</span>
|
2
2
|
|
3
|
-
<div data-extend-template="layouts/
|
4
|
-
<span data-block="messages"></span>
|
5
|
-
|
3
|
+
<div data-extend-template="layouts/partials/table.html">
|
6
4
|
<span data-block="header" translate>Currently Selected Puppet Modules</span>
|
7
5
|
|
8
|
-
<div data-block="actions">
|
9
|
-
<button class="btn btn-
|
6
|
+
<div data-block="list-actions">
|
7
|
+
<button class="btn btn-default"
|
10
8
|
ng-hide="denied('edit_content_views', contentView)"
|
11
|
-
ui-sref="content-
|
12
|
-
<i class="fa fa-plus"></i>
|
9
|
+
ui-sref="content-view.puppet-modules.names">
|
13
10
|
<span translate>Add New Module</span>
|
14
11
|
</button>
|
15
12
|
</div>
|
@@ -23,7 +20,7 @@
|
|
23
20
|
</span>
|
24
21
|
|
25
22
|
<div data-block="table">
|
26
|
-
<table class="table table-striped table-bordered"
|
23
|
+
<table class="table table-striped table-bordered">
|
27
24
|
<thead>
|
28
25
|
<tr bst-table-head>
|
29
26
|
<th bst-table-column><span translate>Name</span></th>
|
@@ -34,7 +31,7 @@
|
|
34
31
|
</thead>
|
35
32
|
|
36
33
|
<tbody>
|
37
|
-
<tr bst-table-row ng-repeat="contentViewPuppetModule in
|
34
|
+
<tr bst-table-row ng-repeat="contentViewPuppetModule in table.rows | filter:filterTerm">
|
38
35
|
<td bst-table-cell >{{ contentViewPuppetModule.name}}</td>
|
39
36
|
<td bst-table-cell >{{ contentViewPuppetModule.author}}</td>
|
40
37
|
<td bst-table-cell >{{ versionText(contentViewPuppetModule) }}</td>
|