mirror of
https://expo.survex.com/repositories/expoweb/.git/
synced 2025-01-18 00:42:38 +00:00
[svn r8169] julian's quick makework and index page
This commit is contained in:
parent
c538cc7e95
commit
309d706bd7
@ -2,19 +2,39 @@
|
||||
.centre { text-align: center; }
|
||||
.plus2pt { font-size: 160%; }
|
||||
|
||||
body, td, center, ul, p, input {
|
||||
body, td, center, ul, p, input
|
||||
{
|
||||
color: rgb(0, 0, 0);
|
||||
font-family: sans-serif;
|
||||
}
|
||||
body {
|
||||
|
||||
body
|
||||
{
|
||||
background-color: #FFFFFF;
|
||||
font: 100% Verdana, Arial, Helvetica, sans-serif;
|
||||
background: #666666;
|
||||
margin: 0; /* it's good practice to zero the margin and padding of the body element to account for differing browser defaults */
|
||||
Zbackground: #666666;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
text-align: center; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */
|
||||
text-align: center;
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
div#content
|
||||
{
|
||||
border: thin black dotted;
|
||||
margin: 50px;
|
||||
}
|
||||
|
||||
div#footer
|
||||
{
|
||||
background-color:black;
|
||||
color:white;
|
||||
text-align:center;
|
||||
margin-left:auto;
|
||||
margin-right:auto;
|
||||
}
|
||||
|
||||
|
||||
#expoHeader {
|
||||
width:100%;
|
||||
position:relative;
|
||||
@ -123,11 +143,8 @@ position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
}
|
||||
div.footer {
|
||||
position: fixed;
|
||||
bottom: 2px;
|
||||
left: 2px;
|
||||
}
|
||||
|
||||
|
||||
div.main {
|
||||
margin-bottom: 3em;
|
||||
}
|
||||
|
@ -92,7 +92,7 @@ def LoadPersons():
|
||||
|
||||
def parseMugShotAndBlurb(firstname, lastname, person, header, pObject):
|
||||
#create mugshot Photo instance
|
||||
mugShotPath = settings.EXPOWEB+"folk/"+person[header["Mugshot"]]
|
||||
mugShotPath = os.path.join(settings.EXPOWEB, "folk", person[header["Mugshot"]])
|
||||
if mugShotPath[-3:]=='jpg': #if person just has an image, add it
|
||||
mugShotObj = models.Photo(
|
||||
caption="Mugshot for "+firstname+" "+lastname,
|
||||
|
@ -3,7 +3,8 @@
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
|
||||
<link rel="stylesheet" type="text/css" href="{{ settings.MEDIA_URL }}css/main2.css" />
|
||||
<title>{% block title %}{% endblock %}</title>
|
||||
|
||||
<title>{% block title %}THE TITLE{% endblock %}</title>
|
||||
|
||||
<script src="{{ settings.MEDIA_URL }}js/base.js" type="text/javascript"></script>
|
||||
{% block javascript %}{% endblock %}
|
||||
@ -29,13 +30,18 @@
|
||||
|
||||
{% endblock %} </div>
|
||||
|
||||
<div id="currentLocation"> <br>
|
||||
{% block currentLocation %}
|
||||
Welcome to the website of the Cambridge University Caving Club's expeditions to Austria.
|
||||
{% endblock %} </div>
|
||||
<div class="content"> {% block content %}
|
||||
{% endblock %} </div>
|
||||
|
||||
<div id="content">
|
||||
{% block content %}
|
||||
REPLACE : The content
|
||||
{% endblock %}
|
||||
</div>
|
||||
|
||||
<div id="footer">
|
||||
{% block footer %}
|
||||
<p>{% endblock %}</p>
|
||||
THE FOOTER
|
||||
{% endblock %}
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
@ -5,8 +5,12 @@
|
||||
|
||||
{% block content %}
|
||||
|
||||
<h2>The unfinished front page</h2>
|
||||
<p>Some handy links into the less incomplete parts of this webpage</p>
|
||||
|
||||
<ul>
|
||||
<li><a href="{% url personindex %}">List osf people</a></li>
|
||||
<li><a href="/statistics">Statistics of what's loaded in the database</a></li>
|
||||
</ul>
|
||||
|
||||
{% endblock %}
|
||||
{% block currentLocation %}
|
||||
Welcome to the website of the Cambridge University Caving Club's expeditions to Austria.
|
||||
{% endblock %}
|
||||
|
@ -51,14 +51,14 @@
|
||||
{% endblock %}
|
||||
|
||||
<body class="twoColHybLtHdr">
|
||||
{% block currentLocation %}
|
||||
<div id="currentLocation">
|
||||
CUCC Expo virtual survey binder:
|
||||
{% if current_survey %}
|
||||
{{current_survey}}
|
||||
{% else %}
|
||||
{{current_year }}
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
</div>
|
||||
|
||||
{% block nav %}
|
||||
<div id="sidebar1">
|
||||
|
@ -19,13 +19,13 @@ urlpatterns = patterns('',
|
||||
(r'^survex/(?P<survex_file>.*)\.log$', log),
|
||||
(r'^survex/(?P<survex_file>.*)\.err$', err),
|
||||
|
||||
(r'^person/?$', personindex),
|
||||
url(r'^personindex$', personindex, name="personindex"),
|
||||
(r'^person/(?P<person_id>\d*)(?P<first_name>[a-zA-Z]*)[-_/\.\s(\%20)]*(?P<last_name>[a-zA-Z]*)/?$', person),
|
||||
|
||||
(r'^logbookentry/(.*)/?$', logbookentry),
|
||||
(r'^logbooksearch/(.*)/?$', logbookSearch),
|
||||
url(r'^logbooksearch/(.*)/?$', logbookSearch),
|
||||
|
||||
(r'^statistics/?$', stats),
|
||||
url(r'^statistics/?$', stats, name="stats"),
|
||||
|
||||
(r'^survey/?$', surveyindex),
|
||||
(r'^survey/(?P<year>\d\d\d\d)\#(?P<wallet_number>\d*)$', survey),
|
||||
|
Loading…
Reference in New Issue
Block a user