gnucash-htdocs master: Allow access to $major_stable docs
Frank H.Ellenberger
fell at code.gnucash.org
Tue Apr 3 06:08:24 EDT 2018
Updated via https://github.com/Gnucash/gnucash-htdocs/commit/e417082d (commit)
from https://github.com/Gnucash/gnucash-htdocs/commit/350efad9 (commit)
commit e417082db2310cc334b010393bc588a480510843
Author: fell <frank.h.ellenberger at gmail.com>
Date: Tue Apr 3 12:08:20 2018 +0200
Allow access to $major_stable docs
diff --git a/docs.phtml b/docs.phtml
index 648c986..e4dcf85 100644
--- a/docs.phtml
+++ b/docs.phtml
@@ -430,6 +430,7 @@ $older1 ="1.6";
$older2 ="1.8";
$older3 ="2.0";
$older4 ="2.2";
+$older5 ="2.4";
?>
<div class="featurecontainer">
@@ -438,6 +439,28 @@ $older4 ="2.2";
</div>
<p class="justify"><?php echo T_("This section contains all the older <span class=\"gnucash\">GnuCash</span> documentation. If you are using one of these old versions of <span class=\"gnucash\">GnuCash</span>, it is highly recommended that you upgrade to the latest stable version.");?></p>
<ul>
+ <li><b><?php printf (T_("GnuCash v%s"), $older5)?></b>:
+ <ul>
+ <li>
+ <b><?php echo T_("Help Manual");?></b>:
+ <?php echo T_("English");?> (<a href="<?=$top_dir;?>/viewdoc.phtml?rev=<?=$older5;?>&lang=C&doc=help"
+ ><img class="docicon" alt="online" title="<?php echo T_($online);?>" src="<?=$top_dir;?>/images/icons/online_logo.png" /></a>) |
+ <?php echo T_("German");?> (<a href="<?=$top_dir;?>/viewdoc.phtml?rev=<?=$older5;?>&lang=de_DE&doc=help"
+ ><img class="docicon" alt="online" title="<?php echo T_($online);?>" src="<?=$top_dir;?>/images/icons/online_logo.png" /></a>) |
+ <?php echo T_("Italian");?> (<a href="<?=$top_dir;?>/viewdoc.phtml?rev=<?=$older5;?>&lang=it_IT&doc=help"
+ ><img class="docicon" alt="online" title="<?php echo T_($online);?>" src="<?=$top_dir;?>/images/icons/online_logo.png" /></a>)
+ </li>
+ </ul>
+ <ul>
+ <li>
+ <b><?= T_("Concepts Guide") ?></b>:
+ <?php echo T_("English");?> (<a href="<?=$top_dir;?>/viewdoc.phtml?rev=<?=$older5;?>&lang=C&doc=guide"
+ ><img class="docicon" alt="online" title="<?php echo T_($online);?>" src="<?=$top_dir;?>/images/icons/online_logo.png" /></a>)
+ <?php echo T_("Italian");?> (<a href="<?=$top_dir;?>/viewdoc.phtml?rev=<?=$older5;?>&lang=it_IT&doc=guide"
+ ><img class="docicon" alt="online" title="<?php echo T_($online);?>" src="<?=$top_dir;?>/images/icons/online_logo.png" /></a>)
+ </li>
+ </ul>
+ </li>
<li><b><?php printf (T_("GnuCash v%s"), $older4)?></b>:
<ul>
<li>
diff --git a/viewdoc.phtml b/viewdoc.phtml
index 2d86810..5abb098 100644
--- a/viewdoc.phtml
+++ b/viewdoc.phtml
@@ -14,7 +14,7 @@ include("externals/menu.phtml");
$basepath = "https://www.gnucash.org/docs";
$helpdoc = "gnucash-help/help.html";
$tcdoc = "gnucash-guide/index.html";
-$current_stable = "2.6";
+$current_stable = $major_stable;
# Show current stable helpdoc, in overall set language by default
$showdoc = $tcdoc;
@@ -68,6 +68,9 @@ if (isset ($_GET["rev"])) {
case "2.6":
$showrev = "2.6";
break;
+ case "3":
+ $showrev = "3";
+ break;
case "current":
$showrev = $current_stable;
break;
Summary of changes:
docs.phtml | 23 +++++++++++++++++++++++
viewdoc.phtml | 5 ++++-
2 files changed, 27 insertions(+), 1 deletion(-)
More information about the gnucash-changes
mailing list