File tree 2 files changed +36
-5
lines changed 2 files changed +36
-5
lines changed Original file line number Diff line number Diff line change 1
1
<!DOCTYPE html>
2
2
< html lang ="{{ .Site.LanguageCode }} ">
3
3
4
- < head >
4
+ < head >
5
5
{{ block "head" . }}
6
6
7
7
{{ partial "meta.html" . }}
19
19
{{ end }}
20
20
21
21
{{ if or ( not hugo.IsServer ) ( not ( in .Site.Params.buildtype "package" ) ) }}
22
-
22
+
23
23
{{ partial "trustarc.html" . }}
24
24
25
25
{{ partial "tealium-profile.html" . }}
45
45
{{ block "header" . }}{{end}}
46
46
</ header >
47
47
48
+ {{ partial "license" .}}
49
+
48
50
{{ if not .IsHome }}
49
51
{{ if not (in .Params.display_breadcrumb "false" ) }}
50
- {{ partial "breadcrumb" .}}
52
+ {{ partial "breadcrumb" .}}
51
53
{{ end }}
52
54
{{ end }}
53
55
54
56
< div class ="main container-fluid min-page-height " data-menu-id ="{{.RelPermalink}} ">
55
-
57
+
56
58
{{ block "main" . }}{{ end }}
57
59
58
60
</ div >
65
67
66
68
</ footer >
67
69
68
- {{ partial "scripts.html" . }}
70
+ {{ partial "scripts.html" . }}
69
71
< div id ="consent_blackbar " style ="position:fixed;top:0px;width:100% "> </ div >
70
72
</ body >
71
73
</ html >
Original file line number Diff line number Diff line change
1
+ <!-- Banner for breaking change with icon aligned and amber colors -->
2
+ < div id ="licensingAlert " class ="alert alert-warning alert-dismissible fade show " role ="alert " style ="margin-bottom:0px!important; background-color: #ffebcc; color: #856404; padding: 15px; border-radius: 5px; display: none; ">
3
+ < i class ="fas fa-exclamation-triangle " style ="vertical-align: middle; font-size: 1.5rem; margin-right: 10px; line-height: 1.5; "> </ i > <!-- FontAwesome icon centered with text -->
4
+ < span style ="vertical-align: middle; line-height: 1.5; ">
5
+ < strong > Licensing changes:</ strong > Starting with NGINX Plus R33, all NGINX Plus instances must use a subscription token to validate their license and report usage data.< br >
6
+ < span style ="display: inline-block; padding-left: calc(1.5rem + 18px); ">
7
+ See < a href ="https://docs.nginx.com/solutions/about-subscription-licenses/ "> About subscription licenses</ a > for more information.
8
+ </ span >
9
+ </ span >
10
+ < button type ="button " class ="close " data-dismiss ="alert " aria-label ="Close " style ="background: none; border: none; font-size: 3rem; line-height: 1; " onclick ="dismissAlert() ">
11
+ < span aria-hidden ="true "> ×</ span >
12
+ </ button >
13
+ </ div >
14
+
15
+ < script >
16
+ // Check if the user has already dismissed the alert
17
+ document . addEventListener ( "DOMContentLoaded" , function ( ) {
18
+ // Show the alert only if it hasn't been dismissed
19
+ if ( ! localStorage . getItem ( "licensingAlertDismissed" ) ) {
20
+ document . getElementById ( "licensingAlert" ) . style . display = "block" ;
21
+ }
22
+ } ) ;
23
+
24
+ // Function to handle alert dismissal and store in localStorage
25
+ function dismissAlert ( ) {
26
+ document . getElementById ( "licensingAlert" ) . style . display = "none" ;
27
+ localStorage . setItem ( "licensingAlertDismissed" , "true" ) ;
28
+ }
29
+ </ script >
You can’t perform that action at this time.
0 commit comments