webui:css table padding

This commit is contained in:
Martijn Voncken 2008-03-26 22:39:04 +00:00
parent a1a8534972
commit 80db26e0e7
4 changed files with 30 additions and 7 deletions

View File

@ -83,8 +83,8 @@ $for torrent in torrent_list:
 
</td>
<td>$ftime(torrent.eta)</td>
<td>$("%.3f" % torrent.distributed_copies)</td>
<td>$("%.3f" % torrent.ratio)</td>
<td>$("%.2f" % torrent.distributed_copies)</td>
<td>$("%.2f" % torrent.ratio)</td>
</tr>
</tbody>
</table>

View File

@ -11,7 +11,7 @@ $altrow(True)
<th>$_("Down Speed")</th>
<th>$_("Country")</th>
<th>$_("Client")</th>
<th>$_("progress")</th>
<th>$_("Progress")</th>
$for peer in torrent.peers:
<tr class="tab_$altrow()" >
@ -20,7 +20,13 @@ $for peer in torrent.peers:
<td>$fspeed(peer['down_speed'])</td>
<td>$peer['country']</td>
<td>$peer['client']</td>
<td>$peer['progress']%</td>
<td class="progress_bar">
<div class="progress_bar_outer">
<div class="progress_bar" style="width:$(peer['progress'])%;overflow:hidden">
$int(peer['progress']) %
</div>
</div>
</td>
</tr>
</table>
</form>

View File

@ -26,14 +26,14 @@ $for state, num in filters.state:
$if not get('tracker'):
class="selected"
>
<a href="$self_url(tracker='')">All</a>
<a href="$self_url(tracker='')" title="$_('All')">$_("All")</a>
</li>
$for tracker, num in filters.tracker:
<li
$if tracker == get('tracker'):
class="selected"
>
<a href="$self_url(tracker=tracker)">$tracker ($num)</a>
<a href="$self_url(tracker=tracker)" title="$tracker ($num)">$crop(tracker, 20) ($num)</a>
</li>
</ul>

View File

@ -20,7 +20,10 @@ a {
}
a:visited { color: #0000AA;}
th {font-weight:normal}
th {
font-weight:normal;
text-align: left;
}
form {
display:inline;
@ -170,6 +173,20 @@ tr.altrow1 {
background-color:#FAFAFA; /*offf-topic-hint:allo allo*/
}
th {
padding-left:3px;
}
tr.altrow1 > td {
padding-left:3px;
}
tr.altrow0 > td {
padding-left:3px;
}
tr.torrent_table_selected > td {
padding-left:3px;
}
tr.torrent_table_selected {
background-color:#FFFFCC;
}