Browse Source

#169 Show link to other tools pages

tags/v2.2.0
Mike Koch 4 years ago
parent
commit
0fce992568
5 changed files with 30 additions and 0 deletions
  1. 9
    0
      admin/banned_emails.php
  2. 9
    0
      admin/banned_ips.php
  3. 1
    0
      admin/manage_users.php
  4. 10
    0
      admin/service_messages.php
  5. 1
    0
      language/en/text.php

+ 9
- 0
admin/banned_emails.php View File

@@ -89,6 +89,15 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
<a title="' . $hesklang['sm_title'] . '" href="service_messages.php">' . $hesklang['sm_title'] . '</a>
</li>';
}

// Show a link to email tpl management if user has permission to do so
if (hesk_checkPermission('can_man_email_tpl', 0)) {
echo '
<li role="presentation">
<a title="'.$hesklang['email_templates'].'" href="manage_email_templates.php">'.$hesklang['email_templates'].'</a>
</li>
';
}
?>
</ul>
<div class="tab-content summaryList tabPadding">

+ 9
- 0
admin/banned_ips.php View File

@@ -92,6 +92,15 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
<a title="' . $hesklang['sm_title'] . '" href="service_messages.php">' . $hesklang['sm_title'] . '</a>
</li>';
}

// Show a link to email tpl management if user has permission to do so
if (hesk_checkPermission('can_man_email_tpl', 0)) {
echo '
<li role="presentation">
<a title="'.$hesklang['email_templates'].'" href="manage_email_templates.php">'.$hesklang['email_templates'].'</a>
</li>
';
}
?>
</ul>
<div class="tab-content summaryList tabPadding">

+ 1
- 0
admin/manage_users.php View File

@@ -77,6 +77,7 @@ $hesk_settings['features'] = array(
'can_ban_ips', /* User can ban IP addresses */
'can_unban_ips', /* User can delete IP bans. Also enables "can_ban_ips" */
'can_service_msg', /* User can manage service messages shown in customer interface */
'can_man_email_tpl', /* User can manage email templates */
);

/* Set default values */

+ 10
- 0
admin/service_messages.php View File

@@ -92,6 +92,16 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
<li role="presentation" class="active">
<a href="#"><?php echo $hesklang['sm_title']; ?> <i class="fa fa-question-circle settingsquestionmark" onclick="javascript:alert('<?php echo hesk_makeJsString($hesklang['sm_intro']); ?>')"></i></a>
</li>
<?php
// Show a link to email tpl management if user has permission to do so
if (hesk_checkPermission('can_man_email_tpl', 0)) {
echo '
<li role="presentation">
<a title="'.$hesklang['email_templates'].'" href="manage_email_templates.php">'.$hesklang['email_templates'].'</a>
</li>
';
}
?>
</ul>
<div class="tab-content summaryList tabPadding">
<script language="javascript" type="text/javascript"><!--

+ 1
- 0
language/en/text.php View File

@@ -45,6 +45,7 @@ $hesklang['ticket_priority'] = 'Ticket priority';
$hesklang['custom_field_x'] = 'Custom field %s'; // %s: Custom field #1-20
$hesklang['email_template_saved'] = 'The email template <b>%s</b> has been saved.'; // %s: Template file name
$hesklang['error_saving_template'] = 'An error occurred when trying to save the email template!';
$hesklang['can_man_email_tpl'] = 'Edit email templates';
$hesklang['email_template_directory_not_writable'] = 'The email template <b>%s</b> is not writable by HESK. Please CHMOD it to 0666.'; // %s: template file name



Loading…
Cancel
Save