From: Jon Murphy <jcmurphy26@gmail.com>
To: development@lists.ipfire.org
Subject: Re: Development Digest, Vol 100, Issue 34
Date: Sat, 16 May 2020 11:08:01 -0500 [thread overview]
Message-ID: <70EFA11E-3381-408E-95D4-EBE9811E701E@gmail.com> (raw)
In-Reply-To: <mailman.39.1589578832.797.development@lists.ipfire.org>
[-- Attachment #1: Type: text/plain, Size: 27746 bytes --]
Tim,
Is this the help link for each WebGUI page? This will help all of us newbies big time. Its no fun being lost and not knowing where to look for instant help.
Big "thank you!"
Jon
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Fri, 15 May 2020 22:39:49 +0100
> From: Tim FitzGeorge <ipfr(a)tfitzgeorge.me.uk>
> To: development(a)lists.ipfire.org
> Subject: [PATCH 0/3] Help for GUI
> Message-ID: <20200515213952.15127-1-ipfr(a)tfitzgeorge.me.uk>
>
> Add per-page help link to GUI.
> The link is extracted from the menu file and added to the menu.
> Currently only implemented for 'ipfire' and 'ipfire-rounded' themes.
>
> Tim FitzGeorge (3):
> Help for GUI - ipfire theme code
> Help for GUI - Help links
> Help for GUI - help link style
>
> config/menu/10-system.menu | 11 +++++++
> config/menu/20-status.menu | 13 ++++++++
> config/menu/30-network.menu | 20 +++++++++--
> config/menu/40-services.menu | 6 ++++
> config/menu/50-firewall.menu | 8 ++++-
> config/menu/60-ipfire.menu | 1 +
> config/menu/70-log.menu | 33 ++++++++++++-------
> config/menu/EX-apcupsd.menu | 1 +
> config/menu/EX-guardian.menu | 1 +
> config/menu/EX-mpfire.menu | 1 +
> config/menu/EX-samba.menu | 1 +
> config/menu/EX-tor.menu | 1 +
> config/menu/EX-wlanap.menu | 1 +
> html/html/themes/ipfire/include/css/style.css | 8 +++++
> html/html/themes/ipfire/include/functions.pl | 19 +++++++++--
> 15 files changed, 107 insertions(+), 18 deletions(-)
>
> --
> 2.26.1
>
>
>
> ------------------------------
>
> Message: 2
> Date: Fri, 15 May 2020 22:39:50 +0100
> From: Tim FitzGeorge <ipfr(a)tfitzgeorge.me.uk>
> To: development(a)lists.ipfire.org
> Subject: [PATCH 1/3] Help for GUI - ipfire theme code
> Message-ID: <20200515213952.15127-2-ipfr(a)tfitzgeorge.me.uk>
>
> Extracts help key from menu hash when building menus and adds help
> link to the menu.
>
> Signed-off-by: Tim FitzGeorge <ipfr(a)tfitzgeorge.me.uk>
> ---
> html/html/themes/ipfire/include/functions.pl | 19 ++++++++++++++++---
> 1 file changed, 16 insertions(+), 3 deletions(-)
>
> diff --git a/html/html/themes/ipfire/include/functions.pl b/html/html/themes/ipfire/include/functions.pl
> index 9aec77497..6eb56c628 100644
> --- a/html/html/themes/ipfire/include/functions.pl
> +++ b/html/html/themes/ipfire/include/functions.pl
> @@ -39,6 +39,8 @@ require "${General::swroot}/lang.pl";
> # @param submenu entries
> sub showsubmenu() {
> my $submenus = shift;
> + my $uri = shift;
> + my $help;
>
> print "<ul>";
> foreach my $item (sort keys %$submenus) {
> @@ -54,16 +56,26 @@ sub showsubmenu() {
> }
> print '<a href="'.$link.'">'.$submenus->{$item}->{'caption'}.'</a>';
>
> + if (exists $submenus->{$item}->{'help'} and $link eq $uri) {
> + $help = $submenus->{$item}->{'help'};
> + }
> +
> &showsubmenu($subsubmenus) if ($subsubmenus);
> print '</li>';
> }
> - print "</ul>"
> + print "</ul>";
> +
> + return $help;
> }
>
> ###############################################################################
> #
> # print menu html elements
> sub showmenu() {
> + $uri = shift;
> + my $help = '';
> + my $subhelp;
> +
> print '<div id="cssmenu" class="bigbox fixed">';
>
> if ($settings{'SPEED'} ne 'off') {
> @@ -82,10 +94,11 @@ EOF
> next if (!is_menu_visible($link) or $link eq '');
> print '<li class="has-sub "><a href="#"><span>'.$menu->{$k1}->{'caption'}.'</span></a>';
> my $submenus = $menu->{$k1}->{'subMenu'};
> - &showsubmenu($submenus) if ($submenus);
> + $help .= &showsubmenu($submenus, $uri) if ($submenus);
> print "</li>";
> }
>
> + print '<li><a href="https://wiki.ipfire.org/'.$help.'" target="ipfire" class="help">?</a></li>' if ($help);
> print "</ul></div>";
> }
>
> @@ -168,7 +181,7 @@ print <<END
> END
> ;
>
> -&showmenu() if ($suppressMenu != 1);
> +&showmenu( $URI[0] ) if ($suppressMenu != 1);
>
> print <<END
> <div class="bigbox fixed">
> --
> 2.26.1
>
>
>
> ------------------------------
>
> Message: 3
> Date: Fri, 15 May 2020 22:39:52 +0100
> From: Tim FitzGeorge <ipfr(a)tfitzgeorge.me.uk>
> To: development(a)lists.ipfire.org
> Subject: [PATCH 3/3] Help for GUI - help link style
> Message-ID: <20200515213952.15127-4-ipfr(a)tfitzgeorge.me.uk>
>
> Signed-off-by: Tim FitzGeorge <ipfr(a)tfitzgeorge.me.uk>
> ---
> html/html/themes/ipfire/include/css/style.css | 8 ++++++++
> 1 file changed, 8 insertions(+)
>
> diff --git a/html/html/themes/ipfire/include/css/style.css b/html/html/themes/ipfire/include/css/style.css
> index 9421fc111..7c2ec8577 100644
> --- a/html/html/themes/ipfire/include/css/style.css
> +++ b/html/html/themes/ipfire/include/css/style.css
> @@ -261,6 +261,14 @@ input.text {
> background: #dddddd;
> }
>
> +#cssmenu .help {
> + padding: 0px 6px;
> + border: solid;
> + border-width: thin;
> + border-radius: 10px;
> + line-height: 20px;
> +}
> +
> /* This decorates all tables with class="tbl" */
>
> table {
> --
> 2.26.1
>
>
>
> ------------------------------
>
> Message: 4
> Date: Fri, 15 May 2020 22:39:51 +0100
> From: Tim FitzGeorge <ipfr(a)tfitzgeorge.me.uk>
> To: development(a)lists.ipfire.org
> Subject: [PATCH 2/3] Help for GUI - Help links
> Message-ID: <20200515213952.15127-3-ipfr(a)tfitzgeorge.me.uk>
>
> Signed-off-by: Tim FitzGeorge <ipfr(a)tfitzgeorge.me.uk>
> ---
> config/menu/10-system.menu | 11 +++++++++++
> config/menu/20-status.menu | 13 +++++++++++++
> config/menu/30-network.menu | 20 +++++++++++++++++---
> config/menu/40-services.menu | 6 ++++++
> config/menu/50-firewall.menu | 8 +++++++-
> config/menu/60-ipfire.menu | 1 +
> config/menu/70-log.menu | 33 ++++++++++++++++++++++-----------
> config/menu/EX-apcupsd.menu | 1 +
> config/menu/EX-guardian.menu | 1 +
> config/menu/EX-mpfire.menu | 1 +
> config/menu/EX-samba.menu | 1 +
> config/menu/EX-tor.menu | 1 +
> config/menu/EX-wlanap.menu | 1 +
> 13 files changed, 83 insertions(+), 15 deletions(-)
>
> diff --git a/config/menu/10-system.menu b/config/menu/10-system.menu
> index b142bfbac..176621b41 100644
> --- a/config/menu/10-system.menu
> +++ b/config/menu/10-system.menu
> @@ -3,63 +3,74 @@
> 'uri' => '/cgi-bin/index.cgi',
> 'title' => "$Lang::tr{'alt home'}",
> 'enabled' => 1,
> + 'help' => 'configuration/system/startpage'
> };
> $subsystem->{'20.dialup'} = {
> 'caption' => $Lang::tr{'alt dialup'},
> 'uri' => '/cgi-bin/pppsetup.cgi',
> 'title' => "$Lang::tr{'alt dialup'}",
> 'enabled' => 1,
> + 'help' => 'configuration/system/dial'
> };
> $subsystem->{'21.wlan'} = {
> 'caption' => $Lang::tr{'wlan client'},
> 'uri' => '/cgi-bin/wirelessclient.cgi',
> 'title' => "$Lang::tr{'wlan client'}",
> 'enabled' => 0,
> + 'help' => 'configuration/system/wlanclient'
> };
> $subsystem->{'22.dma'} = {'caption' => $Lang::tr{'email settings'},
> 'uri' => '/cgi-bin/mail.cgi',
> 'title' => "$Lang::tr{'email settings'}",
> 'enabled' => 1,
> + 'help' => 'configuration/system/mail_service'
> };
> $subsystem->{'30.ssh'} = {
> 'caption' => $Lang::tr{'ssh access'},
> 'uri' => '/cgi-bin/remote.cgi',
> 'title' => "$Lang::tr{'ssh access'}",
> 'enabled' => 1,
> + 'help' => 'configuration/system/ssh'
> };
> $subsystem->{'40.gui'} = {
> 'caption' => $Lang::tr{'gui settings'},
> 'uri' => '/cgi-bin/gui.cgi',
> 'title' => "$Lang::tr{'gui settings'}",
> 'enabled' => 1,
> + 'help' => 'configuration/system/userinterface'
> };
> $subsystem->{'40.backup'} = {
> 'caption' => $Lang::tr{'backup'},
> 'uri' => '/cgi-bin/backup.cgi',
> 'title' => "$Lang::tr{'backup'}",
> 'enabled' => 1,
> + 'help' => 'configuration/system/backup'
> };
> $subsystem->{'41.fireinfo'} = {
> 'caption' => $Lang::tr{'system information'},
> 'uri' => '/cgi-bin/fireinfo.cgi',
> 'title' => "$Lang::tr{'system information'}",
> 'enabled' => 1,
> + 'help' => 'fireinfo'
> };
> $subsystem->{'42.hwvuln'} = {
> 'caption' => $Lang::tr{'hardware vulnerabilities'},
> 'uri' => '/cgi-bin/vulnerabilities.cgi',
> 'title' => "$Lang::tr{'hardware vulnerabilities'}",
> 'enabled' => 1,
> + 'help' => 'configuration/system/vulnerabilties'
> };
> $subsystem->{'43.shutdown'} = {
> 'caption' => $Lang::tr{'shutdown'},
> 'uri' => '/cgi-bin/shutdown.cgi',
> 'title' => "$Lang::tr{'shutdown'}",
> 'enabled' => 1,
> + 'help' => 'configuration/system/shutdown'
> };
> $subsystem->{'99.credits'} = {
> 'caption' => $Lang::tr{'credits'},
> 'uri' => '/cgi-bin/credits.cgi',
> 'title' => "$Lang::tr{'credits'}",
> 'enabled' => 1,
> + 'help' => 'configuration/system/credits'
> };
> diff --git a/config/menu/20-status.menu b/config/menu/20-status.menu
> index 2bcf0d5e8..38944b447 100644
> --- a/config/menu/20-status.menu
> +++ b/config/menu/20-status.menu
> @@ -3,48 +3,56 @@
> 'uri' => '/cgi-bin/system.cgi',
> 'title' => "$Lang::tr{'system'}",
> 'enabled' => 1,
> + 'help' => 'configuration/status/system'
> };
> $substatus->{'20.memory'} = {
> 'caption' => $Lang::tr{'memory'},
> 'uri' => '/cgi-bin/memory.cgi',
> 'title' => "$Lang::tr{'memory'}",
> 'enabled' => 1,
> + 'help' => 'configuration/status/memory'
> };
> $substatus->{'30.services'} = {
> 'caption' => $Lang::tr{'services'},
> 'uri' => '/cgi-bin/services.cgi',
> 'title' => "$Lang::tr{'services'}",
> 'enabled' => 1,
> + 'help' => 'configuration/status/services'
> };
> $substatus->{'40.media'} = {
> 'caption' => $Lang::tr{'media'},
> 'uri' => '/cgi-bin/media.cgi',
> 'title' => "$Lang::tr{'media'}",
> 'enabled' => 1,
> + 'help' => 'configuration/status/drives'
> };
> $substatus->{'50.networkred'} = {
> 'caption' => "$Lang::tr{'network red'}",
> 'uri' => '/cgi-bin/netexternal.cgi',
> 'title' => "$Lang::tr{'network red'}",
> 'enabled' => 1,
> + 'help' => 'configuration/status/network_ext'
> };
> $substatus->{'51.networkinternal'} = {
> 'caption' => "$Lang::tr{'network internal'}",
> 'uri' => '/cgi-bin/netinternal.cgi',
> 'title' => "$Lang::tr{'network internal'}",
> 'enabled' => 1,
> + 'help' => 'configuration/status/network_int'
> };
> $substatus->{'52.networkother'} = {
> 'caption' => "$Lang::tr{'network other'}",
> 'uri' => '/cgi-bin/netother.cgi',
> 'title' => "$Lang::tr{'network other'}",
> 'enabled' => 1,
> + 'help' => 'configuration/status/network_other'
> };
> $substatus->{'53.networkovpn'} = {
> 'caption' => "$Lang::tr{'vpn statistic rw'}",
> 'uri' => '/cgi-bin/netovpnrw.cgi',
> 'title' => "$Lang::tr{'vpn statistic rw'}",
> 'enabled' => 1,
> + 'help' => 'configuration/status/network_ovpnrw'
> };
> $substatus->{'54.networkovpnsrv'} = {
> 'caption' => "$Lang::tr{'vpn statistic n2n'}",
> @@ -57,24 +65,28 @@
> 'uri' => '/cgi-bin/hardwaregraphs.cgi',
> 'title' => "$Lang::tr{'hardware graphs'}",
> 'enabled' => 1,
> + 'help' => 'configuration/status/hardware_diagrams'
> };
> $substatus->{'61.entropy'} = {
> 'caption' => "$Lang::tr{'entropy'}",
> 'uri' => '/cgi-bin/entropy.cgi',
> 'title' => "$Lang::tr{'entropy graphs'}",
> 'enabled' => 1,
> + 'help' => 'configuration/status/entropy'
> };
> $substatus->{'71.connections'} = {
> 'caption' => $Lang::tr{'connections'},
> 'uri' => '/cgi-bin/connections.cgi',
> 'title' => "$Lang::tr{'connections'}",
> 'enabled' => 1,
> + 'help' => 'configuration/status/connections'
> };
> $substatus->{'72.nettraf'} = {
> 'caption' => $Lang::tr{'sstraffic'},
> 'uri' => '/cgi-bin/traffic.cgi',
> 'title' => "$Lang::tr{'sstraffic'}",
> 'enabled' => 1,
> + 'help' => 'configuration/status/nettraffic'
> };
> $substatus->{'73.qos'} = {
> 'caption' => $Lang::tr{'qos graphs'},
> @@ -96,4 +108,5 @@
> 'uri' => '/cgi-bin/mdstat.cgi',
> 'title' => 'Mdstat',
> 'enabled' => 1,
> + 'help' => 'configuration/status/mdstat'
> };
> diff --git a/config/menu/30-network.menu b/config/menu/30-network.menu
> index 19571a870..6b1e8edf6 100644
> --- a/config/menu/30-network.menu
> +++ b/config/menu/30-network.menu
> @@ -1,83 +1,97 @@
> $subnetwork->{'10.netconf'} = {'caption' => "$Lang::tr{'net config'}",
> 'uri' => '/cgi-bin/netconfig.cgi',
> 'title' => "$Lang::tr{'net config'}",
> - 'enabled' => 0,
> + 'enabled' => 0
> };
> $subnetwork->{'11.zoneconf'} = {'caption' => "$Lang::tr{'zoneconf title'}",
> 'uri' => '/cgi-bin/zoneconf.cgi',
> 'title' => "$Lang::tr{'zoneconf title'}",
> 'enabled' => 1,
> + 'help' => 'configuration/network/zoneconf'
> };
> $subnetwork->{'12.dns'} = {
> 'caption' => $Lang::tr{'dns title'},
> 'uri' => '/cgi-bin/dns.cgi',
> 'title' => "$Lang::tr{'dns title'}",
> 'enabled' => 1,
> + 'help' => 'configuration/network/dns'
> };
> $subnetwork->{'20.proxy'} = {'caption' => "$Lang::tr{'web proxy'}",
> 'uri' => '/cgi-bin/proxy.cgi',
> 'title' => "$Lang::tr{'web proxy'}",
> 'enabled' => 1,
> + 'help' => 'configuration/network/proxy/wui_conf'
> };
> $subnetwork->{'21.urlfilter'} = {'caption' => $Lang::tr{'url filter'},
> 'uri' => '/cgi-bin/urlfilter.cgi',
> 'title' => $Lang::tr{'url filter'},
> 'enabled' => 1,
> + 'help' => 'configuration/network/url-filter'
> };
> $subnetwork->{'22.updxlrator'} = {'caption' => $Lang::tr{'update accelerator'},
> 'uri' => '/cgi-bin/updatexlrator.cgi',
> 'title' => $Lang::tr{'update accelerator'},
> 'enabled' => 1,
> + 'help' => 'configuration/network/update-booster'
> };
> $subnetwork->{'30.dhcp'} = {'caption' => $Lang::tr{'dhcp server'},
> 'uri' => '/cgi-bin/dhcp.cgi',
> 'title' => "$Lang::tr{'dhcp server'}",
> 'enabled' => 1,
> + 'help' => 'configuration/network/dhcp'
> };
> $subnetwork->{'32.captive'} = {'caption' => $Lang::tr{'Captive'},
> 'uri' => '/cgi-bin/captive.cgi',
> 'title' => $Lang::tr{'Captive'},
> 'enabled' => 1,
> + 'help' => 'configuration/network/captive'
> };
> $subnetwork->{'40.scheduler'} = {
> 'caption' => $Lang::tr{'connscheduler'},
> 'uri' => '/cgi-bin/connscheduler.cgi',
> 'title' => "$Lang::tr{'connscheduler'}",
> 'enabled' => 1,
> + 'help' => 'configuration/network/connectionscheduler'
> };
> $subnetwork->{'50.hosts'} = {
> 'caption' => $Lang::tr{'edit hosts'},
> 'uri' => '/cgi-bin/hosts.cgi',
> 'title' => "$Lang::tr{'edit hosts'}",
> 'enabled' => 1,
> + 'help' => 'configuration/network/hosts'
> };
> $subnetwork->{'52.dnsforward'} = {
> 'caption' => $Lang::tr{'dnsforward'},
> 'uri' => '/cgi-bin/dnsforward.cgi',
> 'title' => "$Lang::tr{'dnsforward'}",
> - 'enabled' => 1
> + 'enabled' => 1,
> + 'help' => 'configuration/network/dnsforward'
> };
> $subnetwork->{'60.routes'} = {
> 'caption' => $Lang::tr{'static routes'},
> 'uri' => '/cgi-bin/routing.cgi',
> 'title' => "$Lang::tr{'static routes'}",
> 'enabled' => 1,
> + 'help' => 'configuration/network/static'
> };
> $subnetwork->{'70.aliases'} = {
> 'caption' => $Lang::tr{'aliases'},
> 'uri' => '/cgi-bin/aliases.cgi',
> 'title' => "$Lang::tr{'aliases'}",
> - 'enabled' => `grep "RED_TYPE=STATIC" /var/ipfire/ethernet/settings`,
> + 'help' => 'configuration/network/aliases',
> + 'enabled' => `grep "RED_TYPE=STATIC" /var/ipfire/ethernet/settings`
> };
> $subnetwork->{'80.macadressmenu'} = {
> 'caption' => $Lang::tr{'mac address menu'},
> 'uri' => '/cgi-bin/mac.cgi',
> 'title' => "$Lang::tr{'mac address menu'}",
> 'enabled' => 1,
> + 'help' => 'configuration/network/mac-address'
> };
> $subnetwork->{'90.wakeonlan'} = {
> 'caption' => $Lang::tr{'WakeOnLan'},
> 'uri' => '/cgi-bin/wakeonlan.cgi',
> 'title' => "$Lang::tr{'WakeOnLan'}",
> 'enabled' => 1,
> + 'help' => 'configuration/network/wake-on-lan'
> };
> diff --git a/config/menu/40-services.menu b/config/menu/40-services.menu
> index 83ce3bc1f..bb363cbae 100644
> --- a/config/menu/40-services.menu
> +++ b/config/menu/40-services.menu
> @@ -3,30 +3,36 @@
> 'uri' => '/cgi-bin/vpnmain.cgi',
> 'title' => "$Lang::tr{'virtual private networking'}",
> 'enabled' => 1,
> + 'help' => 'configuration/services/ipsec'
> };
> $subservices->{'20.openvpn'} = {
> 'caption' => 'OpenVPN',
> 'uri' => '/cgi-bin/ovpnmain.cgi',
> 'title' => "$Lang::tr{'virtual private networking'}",
> 'enabled' => 1,
> + 'help' => 'configuration/services/openvpn'
> };
> $subservices->{'30.dyndns'} = {'caption' => $Lang::tr{'dynamic dns'},
> 'uri' => '/cgi-bin/ddns.cgi',
> 'title' => "$Lang::tr{'dynamic dns'}",
> 'enabled' => 1,
> + 'help' => 'configuration/services/dyndns'
> };
> $subservices->{'40.time'} = {'caption' => $Lang::tr{'time server'},
> 'uri' => '/cgi-bin/time.cgi',
> 'title' => "$Lang::tr{'time server'}",
> 'enabled' => 1,
> + 'help' => 'configuration/services/ntp'
> };
> $subservices->{'50.qos'} = {'caption' => 'Quality of Service',
> 'uri' => '/cgi-bin/qos.cgi',
> 'title' => "Quality of Service",
> 'enabled' => 1,
> + 'help' => 'configuration/services/qos'
> };
> $subservices->{'70.extrahd'} = {'caption' => "ExtraHD",
> 'enabled' => 1,
> 'uri' => '/cgi-bin/extrahd.cgi',
> 'title' => "ExtraHD",
> + 'help' => 'configuration/services/extrahd'
> };
> diff --git a/config/menu/50-firewall.menu b/config/menu/50-firewall.menu
> index 5ec1f67fc..07dfd4732 100644
> --- a/config/menu/50-firewall.menu
> +++ b/config/menu/50-firewall.menu
> @@ -3,6 +3,7 @@
> 'uri' => '/cgi-bin/firewall.cgi',
> 'title' => "$Lang::tr{'firewall rules'}",
> 'enabled' => 1,
> + 'help' => 'configuration/firewall/rules'
> };
> $subfirewall->{'20.fwhost'} = {
> 'caption' => $Lang::tr{'fwhost menu'},
> @@ -15,29 +16,33 @@
> 'uri' => '/cgi-bin/optionsfw.cgi',
> 'title' => "$Lang::tr{'options fw'}",
> 'enabled' => 1,
> + 'help' => 'configuration/firewall/options'
> };
> $subfirewall->{'40.ids'} = {'caption' => $Lang::tr{'intrusion detection'},
> 'uri' => '/cgi-bin/ids.cgi',
> 'title' => "$Lang::tr{'intrusion detection system'}",
> 'enabled' => 1,
> + 'help' => 'configuration/firewall/ips'
> };
> $subfirewall->{'50.p2p'} = {
> 'caption' => $Lang::tr{'p2p block'},
> 'uri' => '/cgi-bin/p2p-block.cgi',
> 'title' => "P2P-Block",
> 'enabled' => 1,
> + 'help' => 'configuration/firewall/p2p-block'
> };
> $subfirewall->{'60.geoipblock'} = {
> 'caption' => $Lang::tr{'geoipblock'},
> 'uri' => '/cgi-bin/geoip-block.cgi',
> 'title' => $Lang::tr{'geoipblock'},
> 'enabled' => 1,
> + 'help' => 'configuration/firewall/geoip-block'
> };
> $subfirewall->{'70.wireless'} = {
> 'caption' => $Lang::tr{'blue access'},
> 'uri' => '/cgi-bin/wireless.cgi',
> 'title' => "$Lang::tr{'blue access'}",
> - 'enabled' => 1,
> + 'enabled' => 1
> };
> $subfirewall->{'80.upnp'} = {
> 'caption' => 'UPnP',
> @@ -50,4 +55,5 @@
> 'uri' => '/cgi-bin/iptables.cgi',
> 'title' => "$Lang::tr{'ipts'}",
> 'enabled' => 1,
> + 'help' => 'configuration/firewall/iptables'
> };
> diff --git a/config/menu/60-ipfire.menu b/config/menu/60-ipfire.menu
> index 8b4c13950..87ce7f506 100644
> --- a/config/menu/60-ipfire.menu
> +++ b/config/menu/60-ipfire.menu
> @@ -2,6 +2,7 @@
> 'uri' => '/cgi-bin/pakfire.cgi',
> 'title' => "Pakfire",
> 'enabled' => 1,
> + 'help' => 'configuration/ipfire/pakfire'
> };
> $subipfire->{'99.help'} = {'caption' => $Lang::tr{'help'},
> 'uri' => '/cgi-bin/help.cgi',
> diff --git a/config/menu/70-log.menu b/config/menu/70-log.menu
> index 2fa0e426e..97931d3b8 100644
> --- a/config/menu/70-log.menu
> +++ b/config/menu/70-log.menu
> @@ -1,59 +1,69 @@
> $sublogs->{'10.summary'} = {'caption' => $Lang::tr{'log summary'},
> 'uri' => '/cgi-bin/logs.cgi/summary.dat',
> 'title' => "$Lang::tr{'log summary'}",
> - 'enabled' => 1
> + 'enabled' => 1,
> + 'help' => 'configuration/logs/summary'
> };
> $sublogs->{'20.settings'} = {'caption' => $Lang::tr{'log settings'},
> 'uri' => '/cgi-bin/logs.cgi/config.dat',
> 'title' => "$Lang::tr{'log settings'}",
> - 'enabled' => 1
> + 'enabled' => 1,
> + 'help' => 'configuration/logs/logsettings'
> };
> $sublogs->{'30.proxy'} = {'caption' => $Lang::tr{'proxy logs'},
> 'uri' => '/cgi-bin/logs.cgi/proxylog.dat',
> 'title' => "$Lang::tr{'proxy logs'}",
> - 'enabled' => 1
> + 'enabled' => 1,
> + 'help' => 'configuration/logs/proxy'
> };
> $sublogs->{'31.calamaris'} = {'caption' => $Lang::tr{'calamaris proxy reports'},
> 'uri' => '/cgi-bin/logs.cgi/calamaris.dat',
> 'title' => "$Lang::tr{'calamaris proxy reports'}",
> - 'enabled' => 1
> + 'enabled' => 1,
> + 'help' => 'configuration/logs/proxyreports'
> };
> $sublogs->{'40.firewall'} = {'caption' => $Lang::tr{'firewall logs'},
> 'uri' => '/cgi-bin/logs.cgi/firewalllog.dat',
> 'title' => "$Lang::tr{'firewall logs'}",
> - 'enabled' => 1
> + 'enabled' => 1,
> + 'help' => 'configuration/logs/firewall'
> };
> $sublogs->{'41.firewallip'} = {'caption' => $Lang::tr{'firewall logs ip'},
> 'uri' => '/cgi-bin/logs.cgi/firewalllogip.dat',
> 'title' => "$Lang::tr{'firewall logs ip'}",
> - 'enabled' => 1
> + 'enabled' => 1,
> + 'help' => 'configuration/logs/firewall-ip'
> };
> $sublogs->{'42.firewallport'} = {'caption' => $Lang::tr{'firewall logs port'},
> 'uri' => '/cgi-bin/logs.cgi/firewalllogport.dat',
> 'title' => "$Lang::tr{'firewall logs port'}",
> - 'enabled' => 1
> + 'enabled' => 1,
> + 'help' => 'configuration/logs/firewall-port'
> };
> $sublogs->{'43.firewallcountry'} = {'caption' => $Lang::tr{'firewall logs country'},
> 'uri' => '/cgi-bin/logs.cgi/firewalllogcountry.dat',
> 'title' => "$Lang::tr{'firewall logs country'}",
> - 'enabled' => 1
> + 'enabled' => 1,
> + 'help' => 'configuration/logs/firewall-country'
> };
> $sublogs->{'50.ids'} = {'caption' => $Lang::tr{'ids logs'},
> 'uri' => '/cgi-bin/logs.cgi/ids.dat',
> 'title' => "$Lang::tr{'ids logs'}",
> - 'enabled' => 1
> + 'enabled' => 1,
> + 'help' => 'configuration/logs/ids'
> };
> $sublogs->{'55.ovpnclients'} = {
> 'caption' => $Lang::tr{'ovpn rw connection log'},
> 'uri' => '/cgi-bin/logs.cgi/ovpnclients.dat',
> 'title' => "$Lang::tr{'ovpn rw connection log'}",
> - 'enabled' => 1,
> + 'enabled' => 1
> };
> $sublogs->{'60.urlfilter'} = {
> 'caption' => $Lang::tr{'urlfilter logs'},
> 'uri' => '/cgi-bin/logs.cgi/urlfilter.dat',
> 'title' => "$Lang::tr{'urlfilter log'}",
> 'enabled' => 1,
> + 'help' => 'configuration/logs/url-filter'
> };
> $sublogs->{'70.openvpn'} = {'caption' => $Lang::tr{'openvpn log'},
> 'uri' => '/cgi-bin/logs.cgi/openvpn.dat',
> @@ -63,7 +73,8 @@
> $sublogs->{'80.system'} = {'caption' => $Lang::tr{'system logs'},
> 'uri' => '/cgi-bin/logs.cgi/log.dat',
> 'title' => "$Lang::tr{'system logs'}",
> - 'enabled' => 1
> + 'enabled' => 1,
> + 'help' => 'configuration/logs/system'
> };
> $sublogs->{'90.userlog'} = {'caption' => $Lang::tr{'user proxy logs'},
> 'uri' => '/cgi-bin/logs.cgi/userlog.dat',
> diff --git a/config/menu/EX-apcupsd.menu b/config/menu/EX-apcupsd.menu
> index 5f01dce33..70553c8a5 100644
> --- a/config/menu/EX-apcupsd.menu
> +++ b/config/menu/EX-apcupsd.menu
> @@ -2,4 +2,5 @@
> 'uri' => '/cgi-bin/upsstats.cgi',
> 'title' => $Lang::tr{'apcupsd'},
> 'enabled' => 1,
> + 'help' => 'addons/apcupsd'
> };
> diff --git a/config/menu/EX-guardian.menu b/config/menu/EX-guardian.menu
> index 89cda9d35..159b54486 100644
> --- a/config/menu/EX-guardian.menu
> +++ b/config/menu/EX-guardian.menu
> @@ -3,4 +3,5 @@ $subservices->{'65.guardian'} = {
> 'uri' => '/cgi-bin/guardian.cgi',
> 'title' => "$Lang::tr{'guardian'}",
> 'enabled' => '1',
> + 'help' => 'addons/guardian'
> };
> diff --git a/config/menu/EX-mpfire.menu b/config/menu/EX-mpfire.menu
> index afba4dbde..583e7eca0 100644
> --- a/config/menu/EX-mpfire.menu
> +++ b/config/menu/EX-mpfire.menu
> @@ -2,4 +2,5 @@
> 'uri' => '/cgi-bin/mpfire.cgi',
> 'title' => $Lang::tr{'mpfire'},
> 'enabled' => 1,
> + 'help' => 'addons/mpfire'
> };
> diff --git a/config/menu/EX-samba.menu b/config/menu/EX-samba.menu
> index 6a9a1ae71..30bcb0c8b 100644
> --- a/config/menu/EX-samba.menu
> +++ b/config/menu/EX-samba.menu
> @@ -2,4 +2,5 @@
> 'uri' => '/cgi-bin/samba.cgi',
> 'title' => $Lang::tr{'samba'},
> 'enabled' => 1,
> + 'help' => 'addons/samba'
> };
> diff --git a/config/menu/EX-tor.menu b/config/menu/EX-tor.menu
> index 00ddffe8d..aec5b4354 100644
> --- a/config/menu/EX-tor.menu
> +++ b/config/menu/EX-tor.menu
> @@ -3,4 +3,5 @@ $subipfire->{'50.tor'} = {
> 'uri' => '/cgi-bin/tor.cgi',
> 'title' => $Lang::tr{'tor'},
> 'enabled' => 1,
> + 'help' => 'addons/tor'
> };
> diff --git a/config/menu/EX-wlanap.menu b/config/menu/EX-wlanap.menu
> index 95b653052..cc131a209 100644
> --- a/config/menu/EX-wlanap.menu
> +++ b/config/menu/EX-wlanap.menu
> @@ -2,4 +2,5 @@
> 'uri' => '/cgi-bin/wlanap.cgi',
> 'title' => WLanAP,
> 'enabled' => 1,
> + 'help' => 'addons/wireless'
> };
> --
> 2.26.1
>
parent reply other threads:[~2020-05-16 16:08 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <mailman.39.1589578832.797.development@lists.ipfire.org>]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=70EFA11E-3381-408E-95D4-EBE9811E701E@gmail.com \
--to=jcmurphy26@gmail.com \
--cc=development@lists.ipfire.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox