From 98a3d44eed3286da2c0124253c89d83f16aa095b Mon Sep 17 00:00:00 2001 From: substantialnoninfringinguser Date: Wed, 13 May 2009 05:45:01 +0100 Subject: [PATCH] [svn] fix martins front page links Copied from http://cucc@cucc.survex.com/svn/trunk/expoweb/troggle/, rev. 8225 by julian @ 1/24/2009 6:36 PM --- expo/views_other.py | 2 +- templates/index.html | 2 +- urls.py | 5 +++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/expo/views_other.py b/expo/views_other.py index 7c5fc92..1155036 100644 --- a/expo/views_other.py +++ b/expo/views_other.py @@ -29,7 +29,7 @@ def frontPage(request): #'randSent':randSent.randomLogbookSentence(), expeditions = Expedition.objects.order_by("-year") - return render_to_response('index.html', {'expeditions':expeditions, 'settings':settings, "message":message}) + return render_to_response('index.html', {'expeditions':expeditions, 'settings':settings, 'all':'all', "message":message}) def calendar(request,year): week=['S','S','M','T','W','T','F'] diff --git a/templates/index.html b/templates/index.html index cafc8a8..f30c100 100644 --- a/templates/index.html +++ b/templates/index.html @@ -30,7 +30,7 @@
  • List of People
  • List of Caves
  • Statistics of what's loaded in the database
  • -
  • Survex directory
  • +
  • Survex directory
  • Survey files
  • diff --git a/urls.py b/urls.py index 20d2ceb..1f10ecb 100644 --- a/urls.py +++ b/urls.py @@ -8,13 +8,14 @@ admin.autodiscover() urlpatterns = patterns('', (r'^$', frontPage), - url(r'^cave/?$', caveindex, name="caveindex"), + url(r'^caveindex$', caveindex, name="caveindex"), + (r'^cave/(?P[^/]+)/?$', cave), (r'^cave/(?P[^/]+)/?(?P[^/])$', ent), #(r'^cave/(?P[^/]+)/edit/$', edit_cave), (r'^cavesearch', caveSearch), - url(r'^survex/(?P.*)\.index$', index, name="survexindex"), + url(r'^survex/(.*?)\.index$', index, name="survexindex"), (r'^survex/(?P.*)\.svx$', svx), (r'^survex/(?P.*)\.3d$', threed), (r'^survex/(?P.*)\.log$', log),