fix buttons and urls.py

This commit is contained in:
Thomas Steen Rasmussen 2016-08-08 20:05:38 +02:00
parent 6e679800f7
commit 7c1748d62a
2 changed files with 6 additions and 5 deletions

View file

@ -1,10 +1,11 @@
{% extends 'program_base.html' %}
{% block program_content %}
<a href="{% url 'call-for-speakers' %}" class="btn">Call for Speakers</a>
<a href="{% url 'schedule:speaker_index' %}" class="btn">Speakers</a>
<a href="{% url 'schedule:event_index' %}" class="btn">Talks &amp; Events</a>
<p>
<a href="{% url 'call-for-speakers' %}" class="btn btn-default">Call for Speakers</a>
<a href="{% url 'schedule:speaker_index' %}" class="btn btn-default">Speakers</a>
<a href="{% url 'schedule:event_index' %}" class="btn btn-default">Talks &amp; Events</a>
</p>
<a href="{% url 'schedule:index' %}" style="background-color: black; border: 0; color: white; display: inline-block; padding: 5px;">
All
</a>

View file

@ -5,7 +5,7 @@ urlpatterns = [
url(r'^(?P<year>\d{4})-(?P<month>\d{2})-(?P<day>\d{2})/$', views.ProgramDayView.as_view(), name='day'),
url(r'^$', views.ProgramOverviewView.as_view(), name='index'),
url(r'^speakers/$', views.SpeakerListView.as_view(), name='speaker_index'),
url(r'speakers/(?P<slug>[-_\w+]+)/$', views.SpeakerDetailView.as_view(), name='speaker_detail'),
url(r'^speakers/(?P<slug>[-_\w+]+)/$', views.SpeakerDetailView.as_view(), name='speaker_detail'),
url(r'^events/$', views.EventListView.as_view(), name='event_index'),
url(r'^(?P<slug>[-_\w+]+)/$', views.EventDetailView.as_view(), name='event'),
]