webinterface: Add links to the configuration wiki

This patch adds a little "help" icon to the page header.
If a manual entry exists for a configuration page, the icon
appears and offers a quick way to access the wiki.
Wiki pages can be configured in the "manualpages" file.

Signed-off-by: Leo-Andres Hofmann <hofmann@leo-andres.de>
Reviewed-by: Bernhard Bitsch <bbitsch@ipfire.org>
Tested-by: Bernhard Bitsch <bbitsch@ipfire.org>
Reviewed-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Leo-Andres Hofmann
2021-09-28 13:09:04 +02:00
committed by Peter Müller
parent 0ad924b1c1
commit b0323d1946
4 changed files with 56 additions and 1 deletions

View File

@@ -169,6 +169,19 @@ iframe {
margin-bottom: 1em;
}
#main_header > * {
display: inline-block;
vertical-align: baseline;
}
#main_header > span {
margin-left: 0.8em;
}
#main_header img {
padding: 0;
}
#footer {
height: 2.5em;
margin-bottom: 1em;

View File

@@ -170,7 +170,22 @@ END
print <<END
<div class="bigbox fixed">
<div id="main_inner" class="fixed">
<h1>$title</h1>
<div id="main_header">
<h1>$title</h1>
END
;
# Print user manual link
my $manual_url = &Header::get_manualpage_url($scriptName);
if($manual_url) {
print <<END
<span><a href="$manual_url" title="$Lang::tr{'online help en'}" target="_blank"><img src="/images/help-browser.png" alt="$Lang::tr{'online help en'}"></a></span>
END
;
}
print <<END
</div>
END
;
}