foreman_theme_satellite 13.1.0 → 13.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/images/foreman_theme_satellite/supported_icon.png +0 -0
- data/app/assets/javascripts/foreman_theme_satellite/locale/ka/foreman_theme_satellite.js +124 -0
- data/app/assets/stylesheets/foreman_theme_satellite/theme.scss +22 -0
- data/app/controllers/concerns/provisioning_templates_controller_branding.rb +1 -0
- data/app/helpers/provisioning_templates_helper_branding.rb +1 -1
- data/app/overrides/layouts/base/eol_banner.html.erb.deface +62 -0
- data/app/services/foreman_theme_satellite/lifecycle.rb +31 -0
- data/lib/foreman_theme_satellite/documentation.rb +10 -2
- data/lib/foreman_theme_satellite/engine.rb +6 -1
- data/lib/foreman_theme_satellite/version.rb +1 -1
- data/locale/Makefile +1 -1
- data/locale/foreman_theme_satellite.pot +39 -257
- data/locale/ka/LC_MESSAGES/foreman_theme_satellite.mo +0 -0
- data/locale/ka/foreman_theme_satellite.po +122 -0
- data/package.json +6 -6
- metadata +8 -6
- data/app/assets/javascripts/foreman_theme_satellite/locale/en/foreman_theme_satellite.js +0 -124
- data/locale/en/foreman_theme_satellite.edit.po +0 -152
- data/locale/en/foreman_theme_satellite.po +0 -286
- data/locale/en/foreman_theme_satellite.po.time_stamp +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: beaa054eccfb8898f7735f130efe942b9a7f8cee76f629073fe68c95a0aebd85
|
4
|
+
data.tar.gz: 2d271c6335f17c3606e68d8cca80c161f177e7e32bac87340d723f71ff1e27a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f2c992b80c8bb423478bcbec0ad8b1aa689e2790ce975668670e318d4a3a667fe5af06a642a03da6f69c85fcb159d3892279f9f889762da812b3996c9996ee7a
|
7
|
+
data.tar.gz: 7e4e825dc142b3abf89f42ee2645aa8e08f9d3c357515ae153ca51f04c8d6a449bcbd8e0f75b82f4a9ae5966b650c2cbb64aa526be9700bd2aeda363ec1c5ca1
|
Binary file
|
@@ -0,0 +1,124 @@
|
|
1
|
+
locales['foreman_theme_satellite'] = locales['foreman_theme_satellite'] || {}; locales['foreman_theme_satellite']['ka'] = {
|
2
|
+
"domain": "foreman_theme_satellite",
|
3
|
+
"locale_data": {
|
4
|
+
"foreman_theme_satellite": {
|
5
|
+
"": {
|
6
|
+
"Project-Id-Version": "foreman_theme_satellite 13.2.0",
|
7
|
+
"Report-Msgid-Bugs-To": "",
|
8
|
+
"PO-Revision-Date": "2023-11-21 10:43+0000",
|
9
|
+
"Last-Translator": "Temuri Doghonadze <temuri.doghonadze@gmail.com>, 2023",
|
10
|
+
"Language-Team": "Georgian (https://app.transifex.com/foreman/teams/114/ka/)",
|
11
|
+
"MIME-Version": "1.0",
|
12
|
+
"Content-Type": "text/plain; charset=UTF-8",
|
13
|
+
"Content-Transfer-Encoding": "8bit",
|
14
|
+
"Language": "ka",
|
15
|
+
"Plural-Forms": "nplurals=2; plural=(n!=1);",
|
16
|
+
"lang": "ka",
|
17
|
+
"domain": "foreman_theme_satellite",
|
18
|
+
"plural_forms": "nplurals=2; plural=(n!=1);"
|
19
|
+
},
|
20
|
+
"(build: %{version})": [
|
21
|
+
"(აგება: %{version})"
|
22
|
+
],
|
23
|
+
"API Guide": [
|
24
|
+
"API-ის გიდი"
|
25
|
+
],
|
26
|
+
"Administering Red Hat Satellite": [
|
27
|
+
"Red Hat Satellite-ის ადმინისტრირება"
|
28
|
+
],
|
29
|
+
"Blog": [
|
30
|
+
"ბლოგი"
|
31
|
+
],
|
32
|
+
"Customer portal": [
|
33
|
+
"მომხმარებლის პორტალი"
|
34
|
+
],
|
35
|
+
"Documentation": [
|
36
|
+
"დოკუმენტაცია"
|
37
|
+
],
|
38
|
+
"Environment only": [
|
39
|
+
"მხოლოდ გარემო"
|
40
|
+
],
|
41
|
+
"Full trace": [
|
42
|
+
"სრული ტრეისი"
|
43
|
+
],
|
44
|
+
"Host group and Environment": [
|
45
|
+
"ჰოსტების ჯგუფი და გარემო"
|
46
|
+
],
|
47
|
+
"Host group only": [
|
48
|
+
"მხოლოდ ჰოსტების ჯგუფი"
|
49
|
+
],
|
50
|
+
"IRC": [
|
51
|
+
"IRC"
|
52
|
+
],
|
53
|
+
"If you feel this is an error with Satellite 6 itself, please open a new issue with": [
|
54
|
+
"თუ გგონიათ, რომ ეს შეცდომა Satellite 6-ის შეცდომაა, გახსენით ახალი ბილეთი"
|
55
|
+
],
|
56
|
+
"Includes %{system} © 2009-%{year} Paul Kelly and Ohad Levy": [
|
57
|
+
"შეიცავს %{system} © 2009-%{year} პოლ კელი და ოჰედ ლევი"
|
58
|
+
],
|
59
|
+
"More information": [
|
60
|
+
"მეტი ინფორმაცია"
|
61
|
+
],
|
62
|
+
"On August 31, 2022, Red Hat Virtualization entered the Maintenance Support Phase. The Maintenance Support Phase runs until August 31, 2024, followed by the Extended Life Phase, which runs until August 31, 2026.": [
|
63
|
+
"2022 წლის 31 აგვისტოს RHEV რემონტის მხარდაჭერის ფაზაზე გადავიდა. ის 2024 წლის 31 აგვისტომდე გაგრძელდება, რომელიც გაფართოებული სიცოცხლის ფაზით გაგრძელდება, 2026 წლის 31 აგვისტომდე."
|
64
|
+
],
|
65
|
+
"Operating System": [
|
66
|
+
"ოპერაციული სისტემა"
|
67
|
+
],
|
68
|
+
"Operating system default": [
|
69
|
+
"ოპერაციული სისტემის ნაგულისხმები მნიშვნელობა"
|
70
|
+
],
|
71
|
+
"RHEV integration is deprecated.": [
|
72
|
+
"RHEV-ის ჩაშენება მოძველებულია."
|
73
|
+
],
|
74
|
+
"Red Hat Satellite Blog": [
|
75
|
+
"Red Hat Satellite-ის ბლოგი"
|
76
|
+
],
|
77
|
+
"Satellite ticketing system": [
|
78
|
+
"Satellite-ის ბილეთებს სისტემა"
|
79
|
+
],
|
80
|
+
"Show unsupported provisioning templates": [
|
81
|
+
"მხარდაუჭერელი გაშლის ნიმუშების ჩვენება"
|
82
|
+
],
|
83
|
+
"Show unsupported provisioning templates. When enabled, all the avaiable templates will be shown. When disabled, Red Hat supported templates will be shown only": [
|
84
|
+
"მხარდაუჭერელი გაშლის ნიმუშების ჩვენება. როცა ჩართულია, ნაჩვენები იქნება ყველა ხელმისაწვდომი ნიმუში. როცა გამორთულია, ნაჩვენები იქნება, მხოლოდ, Red Hat-ის მიერ მხარდაჭერილი ნმუშები"
|
85
|
+
],
|
86
|
+
"Support": [
|
87
|
+
"მხარდაჭერა"
|
88
|
+
],
|
89
|
+
"Supported by Red Hat": [
|
90
|
+
"მხარდაჭერილია Red Hat-ის მიერ"
|
91
|
+
],
|
92
|
+
"The final entry, Operating System default, can be set by editing the %s page.": [
|
93
|
+
"საბოლოო ჩანაწერი, ოპერაციული სისტემის ნაგულისხმები, შეიძლება დაყენდეს %s გვერდის რედაქტირებით."
|
94
|
+
],
|
95
|
+
"Theme changes for Satellite 6.": [
|
96
|
+
"თემის ცვლილებები Satellite 6-სთვის."
|
97
|
+
],
|
98
|
+
"Transitioning from Red Hat Satellite 5 to Red Hat Satellite 6": [
|
99
|
+
"გადასვლა Red Hat Satellite 5-დან to Red Hat Satellite 6-ზე"
|
100
|
+
],
|
101
|
+
"Version %{version}": [
|
102
|
+
"ვერსია %{version}"
|
103
|
+
],
|
104
|
+
"Version %{version} © %{year} Red Hat Inc.": [
|
105
|
+
"ვერსია %{version} © %{year} Red Hat Inc."
|
106
|
+
],
|
107
|
+
"When a Host requests a template (e.g. during provisioning), Foreman selects the optimal match from the available templates of that type, in the following order:": [
|
108
|
+
"როდესაც ჰოსტი მოითხოვს შაბლონს (მაგ. სამუშაოდ მომზადების დროს), Foreman საუკეთესო შესატყვისს ამ ტიპის არსებული შაბლონებიდან შემდეგი თანამიმდევრობით შეარჩევს:"
|
109
|
+
],
|
110
|
+
"When editing a Template, you must assign a list of Operating Systems with which this Template can be used. Optionally, you can restrict a template to a list of Hostgroups or Environments.": [
|
111
|
+
"შაბლონის რედაქტირებისას თქვენ უნდა მიანიჭოთ სია ოპერაციული სისტემებისა, რომლებთანაც შესაძლებელია ამ შაბლონის გამოყენება. სურვილისამებრ, შეგიძლიათ, შაბლონი ჰოსტების ჯგუფების სიით ან/და გარემოებით შეზღუდოთ."
|
112
|
+
],
|
113
|
+
"You can find us on %{liberachat} (irc.libera.chat) in #redhat-satellite.": [
|
114
|
+
"%{liberachat}-ზე (irc.libera.chat) ჩვენი პოვნა #redhat-satellite არხზე შეგიძლიათ."
|
115
|
+
],
|
116
|
+
"You would probably need to attach the": [
|
117
|
+
"ალბათ, დაგჭირდებათ მიამაგროთ"
|
118
|
+
],
|
119
|
+
"and relevant log entries.": [
|
120
|
+
"და შესაბამისი ჟურნალის ჩანაწერები."
|
121
|
+
]
|
122
|
+
}
|
123
|
+
}
|
124
|
+
};
|
@@ -12,3 +12,25 @@
|
|
12
12
|
margin: -5px 5px 0 0;
|
13
13
|
}
|
14
14
|
}
|
15
|
+
|
16
|
+
#satellite-eol-banner .eol-banner-content {
|
17
|
+
overflow-x: auto;
|
18
|
+
}
|
19
|
+
|
20
|
+
#rails-app-content {
|
21
|
+
--header-height: 70px;
|
22
|
+
top: var(--header-height);
|
23
|
+
height: calc(100% - var(--header-height));
|
24
|
+
|
25
|
+
&.eol-banner {
|
26
|
+
--banner-height: calc(
|
27
|
+
2 * var(--pf-global--spacer--xs) +
|
28
|
+
2 * (var(--pf-global--LineHeight--md) * var(--pf-global--FontSize--sm))
|
29
|
+
); // banner height is line height and a small padding
|
30
|
+
top: calc(
|
31
|
+
var(--header-height) + var(--banner-height)
|
32
|
+
);
|
33
|
+
|
34
|
+
height: calc(100% - var(--header-height) - var(--banner-height));
|
35
|
+
}
|
36
|
+
}
|
@@ -4,7 +4,7 @@ module ProvisioningTemplatesHelperBranding
|
|
4
4
|
return super unless ProvisioningTemplatesControllerBranding::SUPPORTED_PROVISIONING_TEMPLATES.include?(name.name)
|
5
5
|
|
6
6
|
image_tag(
|
7
|
-
'foreman_theme_satellite/
|
7
|
+
'foreman_theme_satellite/supported_icon.png',
|
8
8
|
class: 'prov-brand-img',
|
9
9
|
title: _('Supported by Red Hat')
|
10
10
|
).safe_concat(super)
|
@@ -0,0 +1,62 @@
|
|
1
|
+
<!-- insert_top 'body' -->
|
2
|
+
|
3
|
+
<% if User.current&.admin %>
|
4
|
+
<% data = ForemanThemeSatellite.lifecycle_data %>
|
5
|
+
|
6
|
+
<% text, icon, date = if data[:end_of_life].nil?
|
7
|
+
[nil, nil, nil]
|
8
|
+
elsif data[:end_of_life] < Time.zone.now
|
9
|
+
[_('Satellite %{version} is estimated to have reached its End of Life on %{date}.'), 'danger', data[:end_of_life]]
|
10
|
+
elsif data[:end_of_life] < 6.months.after
|
11
|
+
[_('Satellite %{version} is estimated to reach its End of Life by the end of %{month} %{year}.'), 'warning', I18n.l(data[:end_of_life], format: "%B %Y")]
|
12
|
+
end %>
|
13
|
+
|
14
|
+
<% if text %>
|
15
|
+
<div class="pf-c-banner pf-m-<%= icon %>" id="satellite-eol-banner">
|
16
|
+
<div>
|
17
|
+
<% if icon == 'warning' %>
|
18
|
+
<%= text % { month: _(data[:end_of_life].strftime('%B')), year: data[:end_of_life].strftime('%Y'), version: data[:short_version] } %>
|
19
|
+
<% else %>
|
20
|
+
<%= text % { date: data[:end_of_life].to_date, version: data[:short_version] } %>
|
21
|
+
<% end %>
|
22
|
+
<div class="eol-banner-content">
|
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="<%= ForemanThemeSatellite.documentation_server %>/labsinfo/satelliteupgradehelper "><%= _("Red Hat Satellite Upgrade Helper") %>.
|
25
|
+
</div>
|
26
|
+
</div>
|
27
|
+
<span id="satellite-oel-banner-dismiss-button" style="position: absolute; font-size: 20px; top: 0px; right: 5px; cursor: pointer;">×</span>
|
28
|
+
</div>
|
29
|
+
|
30
|
+
<script>
|
31
|
+
const level = "<%= icon %>";
|
32
|
+
const shouldHide = localStorage.getItem('satellite-eol-banner-dismissed');
|
33
|
+
const element = document.getElementById('satellite-eol-banner');
|
34
|
+
const hiddenUntil = new Date(localStorage.getItem('satellite-eol-banner-dismissed-until'));
|
35
|
+
|
36
|
+
if (shouldHide == level && hiddenUntil >= (new Date())) {
|
37
|
+
element.style.display = 'none';
|
38
|
+
} else {
|
39
|
+
window.onload = function(e) {
|
40
|
+
// We have to do it from a callback because the element may not exist yet
|
41
|
+
const railsContainer = document.getElementById('rails-app-content');
|
42
|
+
if (railsContainer) {
|
43
|
+
railsContainer.classList.add('eol-banner');
|
44
|
+
}
|
45
|
+
}
|
46
|
+
}
|
47
|
+
|
48
|
+
const dismissButton = document.getElementById('satellite-oel-banner-dismiss-button');
|
49
|
+
dismissButton.addEventListener('click', () => {
|
50
|
+
element.style.display = 'none';
|
51
|
+
const railsContainer = document.getElementById('rails-app-content');
|
52
|
+
if (railsContainer) {
|
53
|
+
railsContainer.classList.remove('eol-banner');
|
54
|
+
}
|
55
|
+
localStorage.setItem('satellite-eol-banner-dismissed', level);
|
56
|
+
const now = new Date();
|
57
|
+
const cutoff = new Date(now.getTime() + 30 * 24 * 60 * 60 * 1000);
|
58
|
+
localStorage.setItem('satellite-eol-banner-dismissed-until', cutoff.toISOString());
|
59
|
+
});
|
60
|
+
</script>
|
61
|
+
<% end %>
|
62
|
+
<% end %>
|
@@ -0,0 +1,31 @@
|
|
1
|
+
module ForemanThemeSatellite
|
2
|
+
class Lifecycle
|
3
|
+
class << self
|
4
|
+
# rubocop:disable Metrics/AbcSize
|
5
|
+
def lifecycle_data(version)
|
6
|
+
metadata_path = ::ForemanThemeSatellite::LIFECYCLE_METADATA_PATH
|
7
|
+
|
8
|
+
parsed = Foreman::Version.new(version)
|
9
|
+
lifecycle_data = { current_version: version, short_version: "#{parsed.major}.#{parsed.minor}" }
|
10
|
+
|
11
|
+
return lifecycle_data unless File.exist?(metadata_path)
|
12
|
+
|
13
|
+
yaml = YAML.load_file(metadata_path)
|
14
|
+
raise "Unexpected lifecycle metadata file version '#{yaml['version']}'" unless yaml['version'] == '1'
|
15
|
+
|
16
|
+
eol = yaml['releases'].fetch(lifecycle_data[:short_version], {})['end_of_life']
|
17
|
+
lifecycle_data[:end_of_life] = Time.find_zone('UTC').parse(eol) if eol
|
18
|
+
lifecycle_data[:status] = if lifecycle_data[:end_of_life].nil?
|
19
|
+
nil
|
20
|
+
elsif lifecycle_data[:end_of_life] < Time.zone.now
|
21
|
+
'danger'
|
22
|
+
elsif lifecycle_data[:end_of_life] < 6.months.after
|
23
|
+
'warning'
|
24
|
+
end
|
25
|
+
|
26
|
+
lifecycle_data
|
27
|
+
end
|
28
|
+
# rubocop:enable Metrics/AbcSize
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
@@ -49,9 +49,10 @@ module ForemanThemeSatellite
|
|
49
49
|
'Searching' => "#{ForemanThemeSatellite.documentation_root}/administering_red_hat_satellite/searching_and_bookmarking_admin",
|
50
50
|
'RolesandPermissions' => "#{ForemanThemeSatellite.documentation_root}/administering_red_hat_satellite/managing_users_and_roles_admin",
|
51
51
|
'LDAPAuthentication' => "#{ForemanThemeSatellite.documentation_root}/installing_satellite_server_in_a_connected_network_environment/configuring_external_authentication_satellite#Using_LDAP_satellite",
|
52
|
+
'ExternalAuthentication' => "#{ForemanThemeSatellite.documentation_root}/installing_satellite_server_in_a_connected_network_environment/configuring_external_authentication_satellite",
|
52
53
|
'Bookmarks' => "#{ForemanThemeSatellite.documentation_root}/administering_red_hat_satellite/searching_and_bookmarking_admin",
|
53
|
-
'Policydeploymentoptions' => "#{ForemanThemeSatellite.documentation_root}/managing_security_compliance
|
54
|
-
'CreatingSCAPcontent' => "#{ForemanThemeSatellite.documentation_root}/
|
54
|
+
'Policydeploymentoptions' => "#{ForemanThemeSatellite.documentation_root}/managing_security_compliance/compliance-policy-deployment-options_security-compliance",
|
55
|
+
'CreatingSCAPcontent' => "#{ForemanThemeSatellite.documentation_root}/managing_security_compliance/configuring_scap_contents_security-compliance",
|
55
56
|
|
56
57
|
# Planning
|
57
58
|
'SmartProxies' => "#{ForemanThemeSatellite.documentation_root}/satellite_overview_concepts_and_deployment_considerations/chap-documentation-architecture_guide-capsule_server_overview",
|
@@ -62,6 +63,13 @@ module ForemanThemeSatellite
|
|
62
63
|
|
63
64
|
# Misc
|
64
65
|
'GettingHelp' => "https://access.redhat.com/products/red-hat-satellite/#support",
|
66
|
+
|
67
|
+
# Managing Security Compliance
|
68
|
+
'Monitoring_Compliance_security-compliance' => "#{ForemanThemeSatellite.documentation_root}/managing_security_compliance/Monitoring_Compliance_security-compliance",
|
69
|
+
'Managing_Compliance_Policies_security-compliance' => "#{ForemanThemeSatellite.documentation_root}/managing_security_compliance/Managing_Compliance_Policies_security-compliance",
|
70
|
+
'Configuring_SCAP_Contents_security-compliance' => "#{ForemanThemeSatellite.documentation_root}/managing_security_compliance/Configuring_SCAP_Contents_security-compliance",
|
71
|
+
'tailoring-xccdf-profiles_security-compliance' => "#{ForemanThemeSatellite.documentation_root}/managing_security_compliance/Configuring_SCAP_Contents_security-compliance#tailoring-xccdf-profiles_security-compliance",
|
72
|
+
'deploying-compliance-policies_security-compliance' => "#{ForemanThemeSatellite.documentation_root}/managing_security_compliance/Configuring_SCAP_Contents_security-compliance#deploying-compliance-policies_security-compliance",
|
65
73
|
}.freeze
|
66
74
|
|
67
75
|
PLUGINS_DOCUMENTATION = {
|
@@ -114,6 +114,7 @@ module ForemanThemeSatellite
|
|
114
114
|
end
|
115
115
|
|
116
116
|
METADATA_PATH = '/usr/share/satellite/metadata.yml'.freeze
|
117
|
+
LIFECYCLE_METADATA_PATH = '/usr/share/satellite/lifecycle-metadata.yml'.freeze
|
117
118
|
|
118
119
|
def self.metadata_field(key, default)
|
119
120
|
value = ENV["SATELLITE_#{key.upcase}"]
|
@@ -125,8 +126,12 @@ module ForemanThemeSatellite
|
|
125
126
|
@metadata_yaml.fetch(key, default)
|
126
127
|
end
|
127
128
|
|
129
|
+
def self.lifecycle_data
|
130
|
+
@lifecycle_data ||= ForemanThemeSatellite::Lifecycle.lifecycle_data(get_satellite_version)
|
131
|
+
end
|
132
|
+
|
128
133
|
def self.get_satellite_version
|
129
|
-
metadata_field('version', '6.
|
134
|
+
metadata_field('version', '6.14.0-development')
|
130
135
|
end
|
131
136
|
|
132
137
|
def self.get_satellite_short_version
|