diff --git a/expo/views_other.py b/expo/views_other.py index 728119a..0f8cb79 100644 --- a/expo/views_other.py +++ b/expo/views_other.py @@ -30,11 +30,27 @@ def frontpage(request): message = LoadAllSurvexBlocks() message = "Reloaded survexblocks" + #'randSent':randSent.randomLogbookSentence(), + expeditions = Expedition.objects.order_by("-year") + logbookentry = LogbookEntry + cave = Cave + photo = Photo + return render_response(request,'frontpage.html', locals()) + +def todo(request): + message = "no test message" #reverse('personn', kwargs={"name":"hkjhjh"}) + if "reloadexpos" in request.GET: + message = LoadPersonsExpos() + message = "Reloaded personexpos" + if "reloadsurvex" in request.POST: + message = LoadAllSurvexBlocks() + message = "Reloaded survexblocks" + #'randSent':randSent.randomLogbookSentence(), expeditions = Expedition.objects.order_by("-year") totallogbookentries = LogbookEntry.objects.count() return render_response(request,'index.html', {'expeditions':expeditions, 'all':'all', 'totallogbookentries':totallogbookentries, "message":message}) - + def calendar(request,year): week=['S','S','M','T','W','T','F'] if year: diff --git a/media/css/main3.css b/media/css/main3.css index e0b3c4e..467de9d 100644 --- a/media/css/main3.css +++ b/media/css/main3.css @@ -29,20 +29,6 @@ ul list-style: none; } -div#footer -{ - position: fixed; - bottom: 0; - clear:both; - background-color:#999; - color:red; - text-align:center; - margin-left:auto; - margin-right:auto; -} - - - div.logbookentry { text-align:left; @@ -149,7 +135,7 @@ div.centre img { vertical-align: middle; } h1 { text-align: center; font-size: 210%; display: inline;} h2 { color: #009900; } -h3 { color: #2c105e; text-align:left; border-bottom:thin solid black; margin-bottom:1em; margin-top:1em } +h3 { color: #000 text-align:left; border-bottom:thin solid black; margin-bottom:1em; margin-top:1em; font-weight:bold} h4 { color: #0d664c; } h4.navbar {line-height: 0px;} img.onright, div.onright { vertical-align: top; float: right; @@ -267,9 +253,6 @@ div.figure p { img.thumbnail { width: 100%; } -br.clearfloat { - clear:both; -} #error { color: red; @@ -299,19 +282,22 @@ div#editLinks { filter:alpha(opacity=75); -moz-opacity:.75; opacity:.75; +} +div#editLinks a{ + color:#FFF; } div#content { margin-top: 50px; - margin-left: 100px; - margin-right: 100px; - padding: 10px; - + margin-left: 120px; + margin-right: 120px; + padding: 5em; + background:#CCC; } -img#banner { +.footer { position:fixed; width:100%; bottom:0; @@ -319,7 +305,7 @@ img#banner { } body { - background-color:#CCC; + background-color:#000; padding-bottom:100px; } @@ -331,22 +317,24 @@ h1 { } -#rightMargin { +.rightMargin { position:absolute; z-index:-2; - width:100px; + width:130px; right:0px; top:0px; clip: rect(auto,auto,auto,auto); + background:#000; } -#leftMargin { +.leftMargin { position:absolute; z-index:-2; - width:100px; + width:130px; top:0px; left:0px; clip: rect(auto,100px,auto,auto,); + background:#000; } #footerLinks{ @@ -355,6 +343,24 @@ h1 { bottom:0; left:0; width:100%; - background-color:#333 + background-color:#000; + color:#999 } +#footerLinks a{ + color:#FFF +} + +/*.fadeIn { + display: none; +}*/ + +#timeMachine { + width:auto; + right:0; + left:auto; +} + +#col1 { + width:60% +} \ No newline at end of file diff --git a/media/expoBanner.gif b/media/expoBanner.gif index 03ad1f1..232e9ad 100644 Binary files a/media/expoBanner.gif and b/media/expoBanner.gif differ diff --git a/templates/base.html b/templates/base.html index c7fa462..eb478c5 100644 --- a/templates/base.html +++ b/templates/base.html @@ -5,56 +5,117 @@