[svn r8223] Added links to front page

Add names for views in order to link from the main page
This commit is contained in:
julian 2009-01-24 16:11:44 +01:00
parent a38de9b7eb
commit c5e59200b3
2 changed files with 12 additions and 7 deletions

View File

@ -27,8 +27,11 @@
<h3>{{message}}</h3> <h3>{{message}}</h3>
<ul> <ul>
<li><a href="{% url personindex %}">List osf people</a></li> <li><a href="{% url caveindex %}">List of Caves</a></li>
<li><a href="{% url personindex %}">List of People</a></li>
<li><a href="/statistics">Statistics of what's loaded in the database</a></li> <li><a href="/statistics">Statistics of what's loaded in the database</a></li>
<li><a href="{% url survexindex survex_file=all %}">Survex directory</a></li>
<li><a href="{% url survey %}">Survey files</a></li>
</ul> </ul>
<form action="" method="GET"> <form action="" method="GET">
@ -37,11 +40,13 @@
</form> </form>
<ul id="expeditionlist"> <ul id="expeditionlist">
<li>
{% for expedition in expeditions %} {% for expedition in expeditions %}
<a href="{% url expedition expedition.year %}">{{expedition.name}}</a> <li>
<a href="{% url expedition expedition.year %}">{{expedition.name}}</a>
</li>
{% endfor %} {% endfor %}
</li>
</ul> </ul>
{% endblock %} {% endblock %}

View File

@ -8,13 +8,13 @@ admin.autodiscover()
urlpatterns = patterns('', urlpatterns = patterns('',
(r'^$', frontPage), (r'^$', frontPage),
(r'^cave/?$', caveindex), url(r'^cave/?$', caveindex, name="caveindex"),
(r'^cave/(?P<cave_id>[^/]+)/?$', cave), (r'^cave/(?P<cave_id>[^/]+)/?$', cave),
(r'^cave/(?P<cave_id>[^/]+)/?(?P<ent_letter>[^/])$', ent), (r'^cave/(?P<cave_id>[^/]+)/?(?P<ent_letter>[^/])$', ent),
#(r'^cave/(?P<cave_id>[^/]+)/edit/$', edit_cave), #(r'^cave/(?P<cave_id>[^/]+)/edit/$', edit_cave),
(r'^cavesearch', caveSearch), (r'^cavesearch', caveSearch),
(r'^survex/(?P<survex_file>.*)\.index$', index), url(r'^survex/(?P<survex_file>.*)\.index$', index, name="survexindex"),
(r'^survex/(?P<survex_file>.*)\.svx$', svx), (r'^survex/(?P<survex_file>.*)\.svx$', svx),
(r'^survex/(?P<survex_file>.*)\.3d$', threed), (r'^survex/(?P<survex_file>.*)\.3d$', threed),
(r'^survex/(?P<survex_file>.*)\.log$', log), (r'^survex/(?P<survex_file>.*)\.log$', log),