aboutsummaryrefslogtreecommitdiffstats
path: root/en/doc
diff options
context:
space:
mode:
authorManuel Hiebel <leuhmanu@mageia.org>2017-07-15 23:21:56 +0200
committerManuel Hiebel <leuhmanu@mageia.org>2017-07-15 23:21:56 +0200
commitd8b0be92e684935c9d0de3a7aae3a685e296ca2a (patch)
treefb2a990f9da8a1d1442ee82856b1f7ebc5895cb9 /en/doc
parent3a54f5d4cab62888334ecb6e889081932c1c3691 (diff)
downloadwww-d8b0be92e684935c9d0de3a7aae3a685e296ca2a.tar
www-d8b0be92e684935c9d0de3a7aae3a685e296ca2a.tar.gz
www-d8b0be92e684935c9d0de3a7aae3a685e296ca2a.tar.bz2
www-d8b0be92e684935c9d0de3a7aae3a685e296ca2a.tar.xz
www-d8b0be92e684935c9d0de3a7aae3a685e296ca2a.zip
Fix table show when there is several version
Diffstat (limited to 'en/doc')
-rwxr-xr-x[-rw-r--r--]en/doc/doc.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/en/doc/doc.php b/en/doc/doc.php
index 488e31d96..44205c2b1 100644..100755
--- a/en/doc/doc.php
+++ b/en/doc/doc.php
@@ -125,12 +125,12 @@ function doc_list($documentation_name, $type, $version)
if ($your_language_present) {
$text_your_language = '<span style="font-weight:bold">' . _r('Documentation in your language:') . '</span><br/>';
if ($other_languages_present) {
- $text_others = '<a class="btn btn-outline-primary" data-toggle="collapse" href="#table-'.$name.'" role="button" aria-expanded="false" aria-controls="table-'.$name.'">' . _r('Other languages:') . ' &#x2198; </a>';
+ $text_others = '<a class="btn btn-outline-primary" data-toggle="collapse" href="#table-'.$name.'-'.$version.'" role="button" aria-expanded="false" aria-controls="table-'.$name.'-'.$version.'">' . _r('Other languages:') . ' &#x2198; </a>';
}
$table .= sprintf("\t<caption class=\"caption-top\">%s</caption>" . PHP_EOL .
"\t<thead><tr><th class=\"border-0\">%s</th></tr></thead>" . PHP_EOL .
- '<tbody id="table-%s">' . PHP_EOL ,
- $your_language, $text_others, $name);
+ '<tbody id="table-%s-%s">' . PHP_EOL ,
+ $your_language, $text_others, $name, $version);
} else {
foreach($documentation[$type] as $single_version => $all_languages) {
if($single_version < $version && in_array($link_locale, $all_languages)) {
@@ -144,9 +144,9 @@ function doc_list($documentation_name, $type, $version)
}
$text_your_language = _r('Please help <a href="../community/">us</a> translate it in your language.') . '<br/>';
$table .= sprintf("\t<caption class=\"caption-top\">%s<br/>" . PHP_EOL .
- "\t%s<a class=\"btn btn-outline-primary\" data-toggle=\"collapse\" href=\"#table-$name\" role=\"button\" aria-expanded=\"false\" aria-controls=\"table-$name\"> &#x2198; </a></caption>" . PHP_EOL . '%s' .
- "\t<tbody id=table-%s>" . PHP_EOL ,
- '<span style="font-weight:bold">' . $documentation_name . '</span>', $text_your_language, $language_present_before, $name);
+ "\t%s<a class=\"btn btn-outline-primary\" data-toggle=\"collapse\" href=\"#table-$name-$version\" role=\"button\" aria-expanded=\"false\" aria-controls=\"table-$name-$version\"> &#x2198; </a></caption>" . PHP_EOL . '%s' .
+ "\t<tbody id=table-%s-%s>" . PHP_EOL ,
+ '<span style="font-weight:bold">' . $documentation_name . '</span>', $text_your_language, $language_present_before, $name, $version);
}
foreach ($others as $other_languages) {
$table .= sprintf("\t\t<tr><td>%s</td></tr>" . PHP_EOL, $other_languages);