fifteen-theme: made all log tables themeable

With this commit it is possible to make css designs to all tables in the
logs.
This commit is contained in:
Alexander Marx
2014-01-07 09:23:37 +01:00
parent 5ca9ea6a28
commit fda1f52ff3
6 changed files with 140 additions and 122 deletions

View File

@@ -354,11 +354,11 @@ if ($logsettings{'LOGVIEW_REVERSE'} eq 'on') { @log = reverse @log; }
if ($lines != 0) { &oldernewer(); }
print <<END
<table width='100%'>
<table width='100%' class='tbl'>
<tr>
<td width='10%' align='center' class='boldbase'><b>$Lang::tr{'time'}</b></td>
<td width='10%' align='center' class='boldbase'><b>$Lang::tr{'section'}</b></td>
<td width='80%'>&nbsp;</td>
<th width='10%' align='center' class='boldbase'><b>$Lang::tr{'time'}</b></th>
<th width='10%' align='center' class='boldbase'><b>$Lang::tr{'section'}</b></th>
<th width='80%'>&nbsp;</th>
</tr>
END
;
@@ -383,13 +383,15 @@ foreach $_ (@log)
$data = substr ($data,80); #permit correct display in table cell
$d .= ' ' . substr ($data,0,80);
}
my $col="";
if ($lines % 2) {
print "<tr bgcolor='$color{'color20'}'>"; }
print "<tr>";
$col="bgcolor='$color{'color20'}'"; }
else {
print "<tr bgcolor='$color{'color22'}'>"; }
print "<td>$time<td>$sec<td>" .&Header::cleanhtml ("$d", 'y') . "</td></tr>\n";
print "<tr>";
$col="bgcolor='$color{'color22'}'"; }
print "<td $col>$time<td $col>$sec<td $col>" .&Header::cleanhtml ("$d", 'y') . "</td></tr>\n";
$lines++;
}
#print '</tt>';