got members.py to dump out <th>'s instead of <td>'s in the header row and made the table it generates more colourful.
This commit is contained in:
parent
c1fe676938
commit
61e2b2a7e5
|
@ -29,7 +29,7 @@ print "<p>The members for " + term2 + " " + str(year) + " are listed here. We cu
|
||||||
print "Use of this list for solicitation of any form is prohibited. If you wish to get in touch with the membership as a whole please contact <a href=\"mailto:exec@csclub.uwaterloo.ca\">the Executive</a>.</p>"
|
print "Use of this list for solicitation of any form is prohibited. If you wish to get in touch with the membership as a whole please contact <a href=\"mailto:exec@csclub.uwaterloo.ca\">the Executive</a>.</p>"
|
||||||
print "<center>"
|
print "<center>"
|
||||||
print "<table>"
|
print "<table>"
|
||||||
print " <tr><td>Name</td><td>Program</td><td>Username</td>"
|
print " <tr><th>Name</th><th>Program</th><th>Username</th>"
|
||||||
for (_, member) in members:
|
for (_, member) in members:
|
||||||
if not 'program' in member:
|
if not 'program' in member:
|
||||||
member['program'] = ['']
|
member['program'] = ['']
|
||||||
|
|
|
@ -441,16 +441,25 @@ dd {
|
||||||
/* GENERAL */
|
/* GENERAL */
|
||||||
|
|
||||||
table {
|
table {
|
||||||
border: solid 1px black;
|
background-color: #fff;
|
||||||
|
border-collapse: collapse;
|
||||||
|
border: 2px solid #fff;
|
||||||
|
outline: 1px solid #4a47ae;
|
||||||
}
|
}
|
||||||
th {
|
th {
|
||||||
background-color: #abc;
|
background-color: #aaa;
|
||||||
border: solid 1px black;
|
color: #fff;
|
||||||
text-align: center;
|
text-align: left;
|
||||||
|
background-color: #4A47AE;
|
||||||
}
|
}
|
||||||
td {
|
|
||||||
background-color: #def;
|
tr:nth-child(odd) {
|
||||||
border: solid 1px black;
|
background-color: #c0ffee;
|
||||||
|
background-color: #d3dfee;
|
||||||
|
}
|
||||||
|
|
||||||
|
td a {
|
||||||
|
background-color: transparent !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
hr {
|
hr {
|
||||||
|
|
Loading…
Reference in New Issue