You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@brooklyn.apache.org by he...@apache.org on 2014/12/17 18:24:20 UTC

[46/50] [abbrv] incubator-brooklyn git commit: fix the warning about viewing old content if seeing latest, and fix its links

fix the warning about viewing old content if seeing latest, and fix its links


Project: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/commit/be1f457a
Tree: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/tree/be1f457a
Diff: http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/diff/be1f457a

Branch: refs/heads/master
Commit: be1f457a9ea06c9419651451a9c6e0c0432954cf
Parents: fe4de8a
Author: Alex Heneveld <al...@cloudsoftcorp.com>
Authored: Wed Dec 17 12:56:19 2014 +0000
Committer: Alex Heneveld <al...@cloudsoftcorp.com>
Committed: Wed Dec 17 12:56:19 2014 +0000

----------------------------------------------------------------------
 docs/_layouts/guide-normal.html | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/blob/be1f457a/docs/_layouts/guide-normal.html
----------------------------------------------------------------------
diff --git a/docs/_layouts/guide-normal.html b/docs/_layouts/guide-normal.html
index d0310ed..4e676ad 100644
--- a/docs/_layouts/guide-normal.html
+++ b/docs/_layouts/guide-normal.html
@@ -120,7 +120,7 @@ console.log("setting text to "+txt);
 			var thisversion = document.location.pathname.split("/")[2],
 				msg = "";
 			
-			if (!$.cookie('brooklyn_versions') || 
+			if (thisversion != 'latest' && !$.cookie('brooklyn_versions') || 
 			        (($.inArray('ALL', $.cookie('brooklyn_versions').split(",")) === -1) &&
 			        ($.inArray(thisversion, $.cookie('brooklyn_versions').split(",")) === -1)) ){
 			    msg += "<div class='warning_banner_image'><img src='{{ site.path.style }}/img/warning.png'/></div>";
@@ -128,8 +128,8 @@ console.log("setting text to "+txt);
 			    msg += "<p>Are you using version "+thisversion+"?</p>";
 				msg += "<p class='warning_banner_buttons'>";
 				msg += "<a href = '#' onclick=\"set_user_version('"+thisversion+"');\">Yes, hide this warning</a>";
-			    msg += "<a href = '/'>No, show me the latest version</a>";
-				msg += "<a href = '/meta/versions.html'>Show all versions</a>";
+			    msg += "<a href = '{{ site.page.guide }}'>No, show me the latest version</a>";
+				msg += "<a href = '{{ site.page.guide }}/meta/versions.html'>Show all versions</a>";
 				msg += "</p>"
 							
 				$('#page_notes').html(msg);