Commit cb5b0f9d authored by Franco Fichtner's avatar Franco Fichtner

dashboard: system log widget whitespace cleanup; closes #211

parent 6b430dd7
......@@ -34,9 +34,9 @@ $system_logfile = '/var/log/system.log';
if (!$config['widgets']['systemlogfiltercount']){
$syslogEntriesToFetch = $config['syslog']['nentries'];
if (!$syslogEntriesToFetch) {
$syslogEntriesToFetch = 20;
}
if (!$syslogEntriesToFetch) {
$syslogEntriesToFetch = 20;
}
} else {
$syslogEntriesToFetch = $config['widgets']['systemlogfiltercount'];
}
......@@ -55,7 +55,7 @@ if(is_numeric($_POST['logfiltercount'])) {
<div id="system_log-settings" class="widgetconfigdiv" style="display:none;">
<form action="/widgets/widgets/system_log.widget.php" method="post" name="iform">
<table class="table table-striped" summary="system_log widget">
<tr>
<tr>
<td><?=gettext("Number of Log lines to display");?>:</td>
<td>
......@@ -64,11 +64,11 @@ if(is_numeric($_POST['logfiltercount'])) {
<option value="<?php echo $i;?>" <?php if ($syslogEntriesToFetch == $i) { echo "selected=\"selected\"";}?>><?php echo $i;?></option>
<?php } ?>
</td>
<td>
<input id="submit" name="submit" type="submit" class="btn btn-primary formbtn" value="Save" autocomplete="off">
</td>
</tr>
</table>
</form>
......@@ -87,4 +87,4 @@ if(is_numeric($_POST['logfiltercount'])) {
textlink = document.getElementById(selectIntLink);
textlink.style.display = "inline";
//]]>
</script>
\ No newline at end of file
</script>
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