You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by db...@apache.org on 2015/09/15 06:38:01 UTC

docs commit: Making 'not latest docs' warning redirect to the doc version index.

Repository: cordova-docs
Updated Branches:
  refs/heads/cordova-website 9317c64da -> 9165ab838


Making 'not latest docs' warning redirect to the doc version index.


Project: http://git-wip-us.apache.org/repos/asf/cordova-docs/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-docs/commit/9165ab83
Tree: http://git-wip-us.apache.org/repos/asf/cordova-docs/tree/9165ab83
Diff: http://git-wip-us.apache.org/repos/asf/cordova-docs/diff/9165ab83

Branch: refs/heads/cordova-website
Commit: 9165ab83830d9b9fd060a523ec92cbbd85b653b0
Parents: 9317c64
Author: Dmitry Blotsky <dm...@gmail.com>
Authored: Mon Sep 14 21:37:57 2015 -0700
Committer: Dmitry Blotsky <dm...@gmail.com>
Committed: Mon Sep 14 21:37:57 2015 -0700

----------------------------------------------------------------------
 www/_layouts/docs.html | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/9165ab83/www/_layouts/docs.html
----------------------------------------------------------------------
diff --git a/www/_layouts/docs.html b/www/_layouts/docs.html
index bab0bfa..f39e884 100644
--- a/www/_layouts/docs.html
+++ b/www/_layouts/docs.html
@@ -146,12 +146,20 @@ analytics_id: UA-64283057-1
 
         <!-- Show warning if this version isn't the latest -->
         {% if page.version != 'edge' %}
-        <a href="{{ site.baseurl }}{{ page.url | replace:page.version,'edge' }}">
-            <div class="alert alert-warning alert-dismissible" role="alert">
+        <a href="{{ site.baseurl }}/docs/{{ page.language }}/edge">
+            <div class="alert alert-warning" role="alert">
                 <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                 {{ page.not_latest_warning_text }}
             </div>
         </a>
+
+        <!--
+            In case the *same* page in the old docs is
+            required, the following link should be used
+            instead:
+
+            {{ site.baseurl }}{{ page.url | replace:page.version,'edge' }}
+        -->
         {% endif %}
 
         {{ content }}


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org