Removed server column from notification log.
parent
6c14709d7c
commit
c44760c0f7
|
@ -100,15 +100,17 @@ class LogController extends AbstractServerController {
|
|||
for ($x = 0; $x < $log_count; $x++) {
|
||||
$record = &$records[$x];
|
||||
$record['users'] = '';
|
||||
$record['server'] = $record['label'];
|
||||
$record['type_icon'] = ($record['server_type'] == 'website') ? 'globe-americas' : 'cogs';
|
||||
$record['type_title'] = psm_get_lang('servers', 'type_'.$record['server_type']);
|
||||
$ip = '('.$record['ip'];
|
||||
if (!empty($record['port']) && (($record['server_type'] != 'website') || ($record['port'] != 80))) {
|
||||
$ip .= ':'.$record['port'];
|
||||
if($key == 'status'){
|
||||
$record['server'] = $record['label'];
|
||||
$record['type_icon'] = ($record['server_type'] == 'website') ? 'globe-americas' : 'cogs';
|
||||
$record['type_title'] = psm_get_lang('servers', 'type_'.$record['server_type']);
|
||||
$ip = '('.$record['ip'];
|
||||
if (!empty($record['port']) && (($record['server_type'] != 'website') || ($record['port'] != 80))) {
|
||||
$ip .= ':'.$record['port'];
|
||||
}
|
||||
$ip .= ')';
|
||||
$record['ip'] = $ip;
|
||||
}
|
||||
$ip .= ')';
|
||||
$record['ip'] = $ip;
|
||||
$record['datetime_format'] = psm_date($record['datetime']);
|
||||
|
||||
// fix up user list
|
||||
|
|
|
@ -13,18 +13,24 @@
|
|||
<table class="table table-striped table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">{{ label_server }}</th>
|
||||
<th scope="col">{{ label_message }}</th>
|
||||
{% if tab.id|lower == 'status' %}<th scope="col">{{ label_server }}</th>{% endif %}
|
||||
<th scope="col">{{ label_date }}</th>
|
||||
<th scope="col">{{ label_message }}</th>
|
||||
{% if tab.has_users %}<th scope="col">{{ label_users }}</th>{% endif %}
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for entry in tab.entries %}
|
||||
<tr>
|
||||
{% if entry.server %}
|
||||
<th scope="row"><i class="fas fa-{{ entry.type_icon }}" title="{{ entry.type_title }}"></i> {{ entry.server }} {{ entry.ip }}</th>
|
||||
{% endif %}
|
||||
{% if entry.server %}
|
||||
<td>{{ entry.datetime_format }}</td>
|
||||
{% else %}
|
||||
<th scope="row">{{ entry.datetime_format }}</th>
|
||||
{% endif %}
|
||||
<td>{{ entry.message|raw }}</td>
|
||||
<td>{{ entry.datetime_format }}</td>
|
||||
{% if tab.has_users %}<td>{{ entry.user_list|raw }}</td>{% endif %}
|
||||
</tr>
|
||||
{% endfor %}
|
||||
|
|
Loading…
Reference in New Issue