[Midnightbsd-cvs] mports: www/tmpls: add alternating rows.
ctriv at midnightbsd.org
ctriv at midnightbsd.org
Wed Oct 31 19:25:58 EDT 2007
Log Message:
-----------
add alternating rows.
Modified Files:
--------------
mports/Tools/magus/www/data/magus/elements:
magus.css (r1.9 -> r1.10)
mports/Tools/magus/www/tmpls:
index.tmpl (r1.4 -> r1.5)
-------------- next part --------------
Index: magus.css
===================================================================
RCS file: /home/cvs/mports/Tools/magus/www/data/magus/elements/magus.css,v
retrieving revision 1.9
retrieving revision 1.10
diff -LTools/magus/www/data/magus/elements/magus.css -LTools/magus/www/data/magus/elements/magus.css -u -r1.9 -r1.10
--- Tools/magus/www/data/magus/elements/magus.css
+++ Tools/magus/www/data/magus/elements/magus.css
@@ -12,7 +12,8 @@
}
h1 {
- font-size: 1.7em;
+ letter-spacing: .1em;
+ font-size: 2em;
font-family: Verdana, Helvetica, Arial, sans-serif;
color: white;
margin: 0;
@@ -32,8 +33,7 @@
}
table td {
- border: solid 1px #eee;
- padding: 4px 10px;
+ padding: 6px 10px;
}
table tr {
@@ -41,13 +41,17 @@
}
table tr:hover {
- background: silver;
+ background: #DBDCE9;
}
table th {
border-bottom: solid 1px #888;
}
+tr.even {
+ background: #eaeaea;
+}
+
*.fail {
color: #C0000B;
}
Index: index.tmpl
===================================================================
RCS file: /home/cvs/mports/Tools/magus/www/tmpls/index.tmpl,v
retrieving revision 1.4
retrieving revision 1.5
diff -LTools/magus/www/tmpls/index.tmpl -LTools/magus/www/tmpls/index.tmpl -u -r1.4 -r1.5
--- Tools/magus/www/tmpls/index.tmpl
+++ Tools/magus/www/tmpls/index.tmpl
@@ -16,7 +16,7 @@
<tbody>
<TMPL_LOOP NAME="locks">
-<tr>
+<tr <TMPL_UNLESS name="__odd__">class="even"</TMPL_UNLESS>>
<td><a href="<TMPL_VAR name=port_root>/<TMPL_VAR NAME=port>"><TMPL_VAR NAME="port"></a></td>
<td><TMPL_VAR name="machine"></td>
<td><TMPL_VAR name="arch"></td>
@@ -43,7 +43,7 @@
</thead>
<tbody>
<TMPL_LOOP NAME=results>
- <tr class="<TMPL_VAR NAME=summary>">
+ <tr class="<TMPL_VAR NAME=summary><TMPL_UNLESS NAME="__odd__"> even</TMPL_UNLESS>">
<td><a href="<TMPL_VAR name=port_root>/<TMPL_VAR NAME=port>"><TMPL_VAR NAME="port"></a></td>
<td><TMPL_VAR NAME=version></td>
<td><TMPL_VAR NAME=summary></td>
More information about the Midnightbsd-cvs
mailing list