foreman_theme_satellite 16.2.0 → 16.2.1
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/assets/stylesheets/foreman_theme_satellite/theme.scss +6 -16
- data/app/overrides/layouts/base/eol_banner.html.erb.deface +6 -6
- data/lib/foreman_theme_satellite/documentation.rb +1 -1
- data/lib/foreman_theme_satellite/version.rb +1 -1
- data/lib/tasks/foreman_theme_satellite_tasks.rake +4 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d35bd851499da4bc1defae6d90da2d052fff3890ad32128643f2e9782ac2abfe
|
|
4
|
+
data.tar.gz: 13400b432f27e80d5690905a403f9a1b897e006ad99ddbf329a28ef9beb5b5d0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3ae36927444d660229f3dbc4049797ef003274f57ab544b116efae3c79e1cefeabcdbcba978132f7b0a1f6572edff339e3c7c21e39778263cd88b6af33dbf79c
|
|
7
|
+
data.tar.gz: f2b58b7a8104b46ee952d1e9b215654cfab4518d423d81fee5cbcd4ea888b12ca7c8fc12ee8faa368360378878d3232e065224ccd1f2f1b2769d34a5609c042a
|
|
@@ -17,20 +17,10 @@
|
|
|
17
17
|
overflow-x: auto;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
--
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
--banner-height: calc(
|
|
27
|
-
2 * var(--pf-v5-global--spacer--xs) +
|
|
28
|
-
2 * (var(--pf-v5-global--LineHeight--md) * var(--pf-v5-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
|
-
}
|
|
20
|
+
body.eol-banner-present {
|
|
21
|
+
--eol-banner-height: calc(
|
|
22
|
+
2 * var(--pf-v5-global--spacer--xs) + 2 *
|
|
23
|
+
(var(--pf-v5-global--LineHeight--md) * var(--pf-v5-global--FontSize--sm))
|
|
24
|
+
); // banner height is line height and a small padding
|
|
25
|
+
--header-height: (70px + var(--eol-banner-height));
|
|
36
26
|
}
|
|
@@ -38,9 +38,9 @@ end %>
|
|
|
38
38
|
} else {
|
|
39
39
|
window.onload = function(e) {
|
|
40
40
|
// We have to do it from a callback because the element may not exist yet
|
|
41
|
-
const
|
|
42
|
-
if (
|
|
43
|
-
|
|
41
|
+
const body = document.body;
|
|
42
|
+
if (body) {
|
|
43
|
+
body.classList.add('eol-banner-present');
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
}
|
|
@@ -48,9 +48,9 @@ end %>
|
|
|
48
48
|
const dismissButton = document.getElementById('satellite-oel-banner-dismiss-button');
|
|
49
49
|
dismissButton.addEventListener('click', () => {
|
|
50
50
|
element.style.display = 'none';
|
|
51
|
-
const
|
|
52
|
-
if (
|
|
53
|
-
|
|
51
|
+
const body = document.body
|
|
52
|
+
if (body) {
|
|
53
|
+
body.classList.remove('eol-banner-present');
|
|
54
54
|
}
|
|
55
55
|
localStorage.setItem('satellite-eol-banner-dismissed', level);
|
|
56
56
|
const now = new Date();
|
|
@@ -54,7 +54,7 @@ module ForemanThemeSatellite
|
|
|
54
54
|
'Auditing' => "overview_concepts_and_deployment_considerations/index#glossary-of-terms-used-in-satellite_planning",
|
|
55
55
|
|
|
56
56
|
# Install
|
|
57
|
-
'HTTP(S)Proxy' => "installing_satellite_server_in_a_connected_network_environment/index#
|
|
57
|
+
'HTTP(S)Proxy' => "installing_satellite_server_in_a_connected_network_environment/index#configuring-satellite-server-to-use-an-http-proxy",
|
|
58
58
|
|
|
59
59
|
# Misc
|
|
60
60
|
'GettingHelp' => "https://access.redhat.com/products/red-hat-satellite/#support",
|
|
@@ -31,7 +31,10 @@ namespace :foreman_theme_satellite do
|
|
|
31
31
|
.merge(ForemanThemeSatellite::Documentation::PLUGINS_DOCUMENTATION)
|
|
32
32
|
.merge(ForemanThemeSatellite::Documentation.flat_docs_guides_links)
|
|
33
33
|
|
|
34
|
-
|
|
34
|
+
# The links are either
|
|
35
|
+
# - path fragments - managing_hosts/index#data-control-settings
|
|
36
|
+
# - full URLs - https://access.redhat.com/products/red-hat-satellite/#support
|
|
37
|
+
failed = all_links.filter { |_key, doc_address| !doc_address.start_with?('http') && !checker.test_link(doc_address) }
|
|
35
38
|
|
|
36
39
|
abort((failed.map { |key, doc_address| "FAILED: Cannot find #{doc_address} in TOC for entry: #{key}" } + ["Total failed: #{failed.count} entries"]).join("\n")) unless failed.empty?
|
|
37
40
|
|