#326 Show user agent info on admin_ticket

merge-requests/2/head
Mike Koch 9 years ago
parent 6c8feec6f7
commit 9156e98169

@ -697,10 +697,6 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
?> ?>
<script> <script>
var userAgent = platform.parse('<?php echo addslashes($ticket['user_agent']); ?>'); var userAgent = platform.parse('<?php echo addslashes($ticket['user_agent']); ?>');
var fontIcon = '';
if (userAgent.os == 'OS X') {
fontIcon = 'fa fa-apple';
}
</script> </script>
<div class="row" style="padding: 20px"> <div class="row" style="padding: 20px">
<div class="col-md-2"> <div class="col-md-2">
@ -891,7 +887,9 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
} }
if (isset($ticket['user_agent']) && $ticket['user_agent'] !== NULL) if (isset($ticket['user_agent']) && $ticket['user_agent'] !== NULL)
{ {
$tooltipText = $hesklang['ticket_submitted_using'];
echo '<i class="fa fa-desktop" id="user-agent"></i>';
echo '<script>$("#user-agent").tooltip({ title: \''.$tooltipText.'\' + userAgent })</script>';
} }
if ($modsForHesk_settings['request_location']) if ($modsForHesk_settings['request_location'])
{ {

@ -23,6 +23,7 @@ $hesklang['EMAIL_HR']='------ Reply above this line ------';
// ADDED OR MODIFIED IN Mods for HESK 2.5.0 // ADDED OR MODIFIED IN Mods for HESK 2.5.0
$hesklang['ticket_message_no_attachments'] = 'Ticket/Reply message, however attachments will not be included in the email'; $hesklang['ticket_message_no_attachments'] = 'Ticket/Reply message, however attachments will not be included in the email';
$hesklang['ticket_submitted_using'] = 'Ticket submitted using: ';
// ADDED OR MODIFIED IN Mods for HESK 2.4.0 // ADDED OR MODIFIED IN Mods for HESK 2.4.0
$hesklang['sort_by_user_defined_order'] = 'Sort by user-defined order'; $hesklang['sort_by_user_defined_order'] = 'Sort by user-defined order';

Loading…
Cancel
Save