foreman_theme_satellite 14.1.0 → 14.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/models/concerns/realm_theme.rb +3 -2
- data/app/overrides/layouts/base/eol_banner.html.erb.deface +1 -1
- data/app/overrides/layouts/base/theme_resources.html.erb.deface +1 -1
- data/lib/foreman_theme_satellite/engine.rb +34 -32
- data/lib/foreman_theme_satellite/version.rb +1 -1
- data/package.json +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fc257863281454246c7a885e532ca75a8ae52de374e37a0300d8b01496278f4a
|
|
4
|
+
data.tar.gz: fa16b3506869471c1a63c3e7f9ee7d55c1f6f26328bb50563e7ab6be94df8f6b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0c084a27421fd358d3e2e830421efd953c48f43310c24adb3b84f80f9930e5ca9f21277e3ae547e74141986ea5d10b1d162b1222272699ae853f516d6fd595fe
|
|
7
|
+
data.tar.gz: 0a3cd6726391e62602599f81317a1f3549966a8e2fea68c0e67350b84aa0581d1497bcc93a4dd36e0b2415f50cf068cca7884f0a117b2a045b29b95b6829e0a5
|
|
@@ -7,8 +7,9 @@ module RealmTheme
|
|
|
7
7
|
Realm.class_eval do
|
|
8
8
|
_validators.delete(:realm_type)
|
|
9
9
|
_validate_callbacks.each do |callback|
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
filter_method = callback.respond_to?(:raw_filter) ? :raw_filter : :filter
|
|
11
|
+
if callback.send(filter_method).respond_to? :attributes
|
|
12
|
+
callback.send(filter_method).attributes.delete :realm_type
|
|
12
13
|
end
|
|
13
14
|
end
|
|
14
15
|
validates :realm_type, :presence => true, :inclusion => { :in => ["Red Hat Identity Management", "Active Directory"] }
|
|
@@ -21,7 +21,7 @@ end %>
|
|
|
21
21
|
<% end %>
|
|
22
22
|
<div class="eol-banner-content">
|
|
23
23
|
<%= _("For up to date information about Satellite's lifecycle see ") %><a href="https://access.redhat.com/support/policy/updates/satellite"><%= _("Red Hat Satellite Product Life Cycle") %></a>.
|
|
24
|
-
<%= _("Kindly plan to upgrade Satellite to the supported version, for upgrade guidance see ") %><a href="
|
|
24
|
+
<%= _("Kindly plan to upgrade Satellite to the supported version, for upgrade guidance see ") %><a href="https://access.redhat.com/labsinfo/satelliteupgradehelper "><%= _("Red Hat Satellite Upgrade Helper") %>.
|
|
25
25
|
</div>
|
|
26
26
|
</div>
|
|
27
27
|
<span id="satellite-oel-banner-dismiss-button" style="position: absolute; font-size: 20px; top: 0px; right: 5px; cursor: pointer;">×</span>
|
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
<%= javascript_include_tag('foreman_theme_satellite/theme_ng_page_title') %>
|
|
4
4
|
<%= webpacked_plugins_js_for :'foreman_theme_satellite' %>
|
|
5
5
|
<%= javascript_tag do %>
|
|
6
|
-
<%= render("foreman_theme_satellite/theme_client_side_branding
|
|
6
|
+
<%= render(partial: "foreman_theme_satellite/theme_client_side_branding", formats: :js) %>
|
|
7
7
|
<% end %>
|
|
@@ -9,40 +9,42 @@ module ForemanThemeSatellite
|
|
|
9
9
|
config.eager_load_paths += Dir["#{config.root}/lib"]
|
|
10
10
|
|
|
11
11
|
initializer 'foreman_theme_satellite.register_plugin', :before=> :finisher_hook do |app|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
12
|
+
app.reloader.to_prepare do
|
|
13
|
+
Foreman::Plugin.register :foreman_theme_satellite do
|
|
14
|
+
requires_foreman '>= 3.13.0'
|
|
15
|
+
register_gettext
|
|
16
|
+
|
|
17
|
+
settings do
|
|
18
|
+
category(:provisioning) do
|
|
19
|
+
setting('show_unsupported_templates',
|
|
20
|
+
type: :boolean,
|
|
21
|
+
default: true,
|
|
22
|
+
description: N_('Show unsupported provisioning templates. '\
|
|
23
|
+
'When enabled, all the avaiable templates will be shown. '\
|
|
24
|
+
'When disabled, Red Hat supported templates will be shown only'),
|
|
25
|
+
full_name: N_('Show unsupported provisioning templates')
|
|
26
|
+
)
|
|
27
|
+
end
|
|
26
28
|
end
|
|
27
|
-
end
|
|
28
29
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
30
|
+
tests_to_skip ({
|
|
31
|
+
"ComputeResourceTest" => ["friendly provider name"],
|
|
32
|
+
"RealmIntegrationTest" => ["create new page"],
|
|
33
|
+
"SmartProxyIntegrationTest" => ["create new page", "index page"],
|
|
34
|
+
"TopBarIntegrationTest" => ["top bar links"],
|
|
35
|
+
"AboutIntegrationTest" => ["about page"],
|
|
36
|
+
"ComputeProfileIntegrationTest" => ["index page", "create new page", "edit page", "show page", "edit compute attribute page", "new compute attribute page"] ,
|
|
37
|
+
|
|
38
|
+
#the following tests are failing due to change in realms types
|
|
39
|
+
"Api::V2::RealmsControllerTest" => ["should create valid realm", "should update valid realm"],
|
|
40
|
+
"OrganizationTest" => ["should clone organization with all associations"],
|
|
41
|
+
"RealmTest" => ["realm can be assigned to locations"],
|
|
42
|
+
"LocationTest" => ["should clone location with all associations"]
|
|
43
|
+
})
|
|
44
|
+
|
|
45
|
+
extend_rabl_template 'api/v2/home/status', 'api/v2/home/status_extensions'
|
|
46
|
+
extend_template_helpers ForemanThemeSatellite::RendererMethods
|
|
47
|
+
end
|
|
46
48
|
end
|
|
47
49
|
end
|
|
48
50
|
|
data/package.json
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: foreman_theme_satellite
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 14.
|
|
4
|
+
version: 14.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Shimon Stein
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2024-11-
|
|
12
|
+
date: 2024-11-26 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: activesupport
|
|
@@ -196,7 +196,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
196
196
|
- !ruby/object:Gem::Version
|
|
197
197
|
version: '0'
|
|
198
198
|
requirements: []
|
|
199
|
-
rubygems_version: 3.5.
|
|
199
|
+
rubygems_version: 3.5.22
|
|
200
200
|
signing_key:
|
|
201
201
|
specification_version: 4
|
|
202
202
|
summary: This is a plugin that enables building a theme for Foreman.
|