Skip to content

Commit

Permalink
Link to the jail in the Network Configuration page
Browse files Browse the repository at this point in the history
  • Loading branch information
Shawn Webb committed Jan 16, 2013
1 parent cbf8509 commit 2ac4526
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions jailnetwork.inc
Expand Up @@ -23,6 +23,12 @@ function jailadmin_config_network($form, &$form_state) {
$devicename = check_input($form_state, 'device');
$readonly = FALSE;

$title = l($jail->name, 'jailadmin/' . $jail->name . '/config');
if ($devicename !== FALSE)
$title .= " ({$devicename})";

drupal_set_title("Configuring Network for {$title}", PASS_THROUGH);

if (user_access('config ' . $jail->name) == FALSE)
$readonly = TRUE;

Expand Down

0 comments on commit 2ac4526

Please sign in to comment.