added red colour to non cavers in folklist

This commit is contained in:
Philip Sargent 2020-02-20 17:41:27 +00:00
parent 40a8e6a94e
commit b64f470017
2 changed files with 16 additions and 5 deletions

View File

@ -42,6 +42,7 @@ body#homepage {
margin: 80px; margin: 80px;
text-align: left; text-align: left;
} }
.didntcave { color: #dd0000 }
.caption { .caption {
color: #004C4C; color: #004C4C;
font-family: Tahoma,'Trebuchet MS','Lucida Grande',Verdana,Arial,Sans-Serif; font-family: Tahoma,'Trebuchet MS','Lucida Grande',Verdana,Arial,Sans-Serif;

View File

@ -72,6 +72,12 @@ def collapse(m):
#output = re.sub(r'(<td></td>)+',collapse, output) #output = re.sub(r'(<td></td>)+',collapse, output)
lastyear=1976+1+len([t for t in headcounts_byyear if t > 0]) # no expo in 1986
# moved to main.css
#<style type="text/css">
#.didntcave { color: #dd0000 }
print """ print """
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
@ -79,8 +85,6 @@ print """
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>CUCC's Austria expeditions: Members</title> <title>CUCC's Austria expeditions: Members</title>
<link rel="stylesheet" type="text/css" href="../css/main2.css" /> <link rel="stylesheet" type="text/css" href="../css/main2.css" />
<style type="text/css">
.didntcave { color: #dd0000 }
<!-- <!--
table.fancy { border-collapse: collapse; border: 2px solid black } table.fancy { border-collapse: collapse; border: 2px solid black }
table.fancy td { border: 1px solid black; padding: 2pt } table.fancy td { border: 1px solid black; padding: 2pt }
@ -91,8 +95,10 @@ table.fancy td.nonempty { background: #eee }
<body> <body>
<!-- DO NOT EDIT THIS DOCUMENT BY HAND! It is automatically generated by "scripts/make-folklist.py" --> <!-- DO NOT EDIT THIS DOCUMENT BY HAND! It is automatically generated by "scripts/make-folklist.py" -->
<h1>CUCC members and guests in Austria 1976 to present</h1> <h1>CUCC members and guests in Austria</br> 1976 to %s</h1>
""" % lastyear
print """
<p>This is a pretty much complete list of all the personnel on %d CUCC <p>This is a pretty much complete list of all the personnel on %d CUCC
expeditions (there was no expo in 1986), together with the total number of expeditions (there was no expo in 1986), together with the total number of
expeditions each has attended and the total number of people on each expedition.</p> expeditions each has attended and the total number of people on each expedition.</p>
@ -123,10 +129,14 @@ times. These include particularly Karl Gaisberger
Gunter Graf, Sepp Gunter Graf, Sepp
Steinberger and Robert Seebacher <a href="i/robert.jpg"><img alt=":-)" Steinberger and Robert Seebacher <a href="i/robert.jpg"><img alt=":-)"
src="i/mug.png" /></a>.</p> src="i/mug.png" /></a>.</p>
<hr /><table class="fancy">
""" % len([t for t in headcounts_byyear if t > 0]) """ % len([t for t in headcounts_byyear if t > 0])
y2 = lastyear-2
y1 = lastyear-1
print """
<p>Links to recent expos: <a href="http://expo.survex.com/expedition/%s">last year</a>
<hr /><table class="fancy">
""" % y1,y1
print output print output