mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-19 19:15:22 +00:00
fix spacing in diag_logs_template.inc https://github.com/opnsense/core/issues/1003
This commit is contained in:
parent
40ca0a8a3a
commit
365afd1b2d
@ -64,7 +64,6 @@ if (isset($_POST['filtertext'])) {
|
||||
}
|
||||
|
||||
include("head.inc");
|
||||
|
||||
?>
|
||||
|
||||
<body>
|
||||
@ -83,39 +82,43 @@ include("head.inc");
|
||||
</p>
|
||||
<div class="tab-content content-box col-xs-12">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped table-sort">
|
||||
<tr>
|
||||
<td class="col-md-2 col-sm-3 col-xs-4"><?= gettext('Date') ?></td>
|
||||
<td class="col-md-10 col-sm-9 col-xs-8"><?= gettext('Message') ?></td>
|
||||
</tr>
|
||||
<?php if (isset($logpills)): ?>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<ul class="nav nav-pills" role="tablist">
|
||||
<?php foreach ($logpills as $pill): ?>
|
||||
<li role="presentation" <?php if (str_replace('amp;','', $pill[2]) == $_SERVER['REQUEST_URI']):?>class="active"<?php endif; ?>><a href="<?=$pill[2];?>"><?=$pill[0];?></a></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
<?php
|
||||
if ($logclog) {
|
||||
dump_clog($logfile, $nentries, $filtertext);
|
||||
} else {
|
||||
dump_log($logfile, $nentries, $filtertext);
|
||||
}
|
||||
?>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<form method="post">
|
||||
<?php if (isset($mode)): ?>
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="col-md-2 col-sm-3 col-xs-4"><?= gettext('Date') ?></th>
|
||||
<th class="col-md-10 col-sm-9 col-xs-8"><?= gettext('Message') ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php if (isset($logpills)): ?>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<ul class="nav nav-pills" role="tablist">
|
||||
<?php foreach ($logpills as $pill): ?>
|
||||
<li role="presentation" <?php if (str_replace('amp;','', $pill[2]) == $_SERVER['REQUEST_URI']):?>class="active"<?php endif; ?>><a href="<?=$pill[2];?>"><?=$pill[0];?></a></li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
<?php
|
||||
if ($logclog) {
|
||||
dump_clog($logfile, $nentries, $filtertext);
|
||||
} else {
|
||||
dump_log($logfile, $nentries, $filtertext);
|
||||
}
|
||||
?>
|
||||
<tr>
|
||||
<td colspan="2">
|
||||
<form method="post">
|
||||
<?php if (isset($mode)): ?>
|
||||
<input type="hidden" name="mode" id="mode" value="<?= html_safe($mode) ?>"/>
|
||||
<?php endif ?>
|
||||
<input name="clear" type="submit" class="btn btn-primary" value="<?= html_safe(gettext('Clear log')) ?>"/>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
<input name="clear" type="submit" class="btn btn-primary" value="<?= html_safe(gettext('Clear log')) ?>"/>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user