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