From 253fa0197f82883766c971cd09b83d87dc3bb008 Mon Sep 17 00:00:00 2001 From: k-paulius Date: Sat, 13 Feb 2016 23:53:38 -0600 Subject: Show interface name in the breadcrumb on DHCPv6 Server page --- src/usr/local/www/services_dhcpv6.php | 7 ++++++- src/usr/local/www/services_dhcpv6_edit.php | 8 +++++++- src/usr/local/www/services_router_advertisements.php | 7 ++++++- 3 files changed, 19 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/usr/local/www/services_dhcpv6.php b/src/usr/local/www/services_dhcpv6.php index 905a407..8d2ed03 100644 --- a/src/usr/local/www/services_dhcpv6.php +++ b/src/usr/local/www/services_dhcpv6.php @@ -436,7 +436,12 @@ if ($_GET['act'] == "del") { } } -$pgtitle = array(gettext("Services"), gettext("DHCPv6 Server")); +$pgtitle = array(gettext("Services"), gettext("DHCPv6 Server/RA")); + +if (!empty($if) && !$dhcrelay_enabled && isset($iflist[$if])) { + $pgtitle[] = $iflist[$if]; +} +$pgtitle[] = gettext("DHCPv6 Server"); $shortcut_section = "dhcp6"; include("head.inc"); diff --git a/src/usr/local/www/services_dhcpv6_edit.php b/src/usr/local/www/services_dhcpv6_edit.php index 0c27b1e..81698b9 100644 --- a/src/usr/local/www/services_dhcpv6_edit.php +++ b/src/usr/local/www/services_dhcpv6_edit.php @@ -214,7 +214,13 @@ if ($_POST) { } } -$pgtitle = array(gettext("Services"), gettext("DHCPv6 Server"), gettext("Edit Static Mapping")); +$iflist = get_configured_interface_with_descr(); +$ifname = ''; + +if (!empty($if) && isset($iflist[$if])) { + $ifname = $iflist[$if]; +} +$pgtitle = array(gettext("Services"), gettext("DHCPv6 Server/RA"), $ifname, gettext("DHCPv6 Server"), gettext("Edit Static Mapping")); $shortcut_section = "dhcp6"; include("head.inc"); diff --git a/src/usr/local/www/services_router_advertisements.php b/src/usr/local/www/services_router_advertisements.php index c7a221b..e095cd2 100644 --- a/src/usr/local/www/services_router_advertisements.php +++ b/src/usr/local/www/services_router_advertisements.php @@ -234,7 +234,12 @@ if ($_POST) { } } -$pgtitle = array(gettext("Services"), gettext("Router Advertisements")); +$pgtitle = array(gettext("Services"), gettext("DHCPv6 Server/RA")); + +if (!empty($if) && isset($iflist[$if])) { + $pgtitle[] = $iflist[$if]; +} +$pgtitle[] = gettext("Router Advertisements"); include("head.inc"); -- cgit v1.1