Commit 5b286447 authored by Ad Schellevis's avatar Ad Schellevis Committed by Franco Fichtner

fix spacing in diag_logs_template.inc https://github.com/opnsense/core/issues/1003

(cherry picked from commit 365afd1b)
(cherry picked from commit 76d9190b)
parent acd2944c
......@@ -231,6 +231,10 @@ body{
}
}
.page-content-main [class^="col-"] + [class^="col-"]{
padding-top: ($grid-gutter-width/2);
}
.brand-logo{
display: none;
......
......@@ -5558,6 +5558,9 @@ body {
.tab-content .tab-content:last-child {
margin-bottom: 0; }
.page-content-main [class^="col-"] + [class^="col-"] {
padding-top: 20px; }
.brand-logo {
display: none; }
@media (min-width: 768px) {
......
......@@ -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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment