File tree 3 files changed +13
-8
lines changed
3 files changed +13
-8
lines changed Original file line number Diff line number Diff line change 99
99
< link rel ="stylesheet " href ="/css/temp.css ">
100
100
{% seo %}
101
101
{% if page.hide_from_sitemap %}< meta name ="robots " content ="noindex " /> {% endif %}
102
+ < script language ="javascript ">
103
+ // Default to assuming this is an archive and hiding some stuff
104
+ // See js/archive.js and js/docs.js for logic relating to this
105
+ var isArchive = true ;
106
+ var dockerVersion = 'v{{ site.docker_ce_stable_version }}' ;
107
+ </ script >
102
108
</ head >
103
109
< body ng-app ="Docker " ng-controller ="DockerController " class ="colums ">
104
110
< header >
@@ -290,12 +296,6 @@ <h2>Next steps</h2>
290
296
< script src ="/js/jquery.js "> </ script >
291
297
< script src ="/js/bootstrap.min.js "> </ script >
292
298
<!-- Always include the archive.js, but it doesn't do much unless we are an archive -->
293
- < script language ="javascript ">
294
- // Default to assuming this is an archive and hiding some stuff
295
- // See js/archive.js and js/docs.js for logic relating to this
296
- var isArchive = true ;
297
- var dockerVersion = 'v{{ site.docker_ce_stable_version }}' ;
298
- </ script >
299
299
< script src ="/js/archive.js "> </ script >
300
300
< script src ="/js/stickyfill.min.js "> </ script >
301
301
< script defer src ="/js/docs.js "> </ script >
Original file line number Diff line number Diff line change @@ -11,6 +11,9 @@ and supported to provide enterprises with the most secure container platform
11
11
in the industry. For more info about Docker EE, including purchasing
12
12
options, see [ Docker Enterprise Edition] ( https://www.docker.com/enterprise-edition/ ) .
13
13
14
+ <!-- This is populated by logic in js/archive.js -->
15
+ <p id =" ee-version-div " ></p >
16
+
14
17
The free Docker products continue to be available as the Docker Community
15
18
Edition (* Docker CE* ).
16
19
Original file line number Diff line number Diff line change @@ -38,10 +38,12 @@ if (window.navigator.onLine) {
38
38
if ( suppressButterBar == false ) {
39
39
$ ( 'body' ) . prepend ( outerDivStart + buttonCode + listStart + listItems . join ( "" ) + listEnd + outerDivEnd ) ;
40
40
isArchive = true ;
41
- console . log ( "Detected that this is an archive." ) ;
42
41
} else {
43
42
isArchive = false ;
44
- console . log ( "This is not an archive. Suppressing the archive versions bar" ) ;
43
+ /* This is only relevant to /enterprise/index.md */
44
+ if ( document . getElementById ( 'ee-version-div' ) ) {
45
+ document . getElementById ( 'ee-version-div' ) . textContent += "The latest version of Docker EE is {{ site.docker_ee_version }}." ;
46
+ }
45
47
}
46
48
} ) ;
47
49
}
You can’t perform that action at this time.
0 commit comments