fix links

This commit is contained in:
j 2018-02-21 21:00:42 +05:30
parent 17879e9367
commit 8645e9b508
2 changed files with 8 additions and 8 deletions

View File

@ -43,15 +43,15 @@ urlpatterns = [
url(r'^projects/index/$', views.section_list, {'section': 'Projects'}, name='projects_list'),
url(r'^works/index/$', views.section_list, {'section': 'Works'}, name='works_list'),
url(r'^texts/(?P<shortname>.+)/$', views.texts, name='texts'),
url(r'^events/(?P<shortname>.+)/$', views.events, name='events'),
url(r'^projects/(?P<shortname>.+)/$', views.projects, name='projects'),
url(r'^texts/(?P<shortname>.+)/$', views.texts, name='text'),
url(r'^events/(?P<shortname>.+)/$', views.events, name='event'),
url(r'^projects/(?P<shortname>.+)/$', views.projects, name='project'),
url(r'^works/(?P<shortname>.+)/$', views.works, name='work'),
url(r'^works/$', views.works, name='works'),
url(r'^projects/$', views.projects),
url(r'^events/$', views.events),
url(r'^texts/$', views.texts),
url(r'^search/$', views.search),
url(r'^projects/$', views.projects, name='projects'),
url(r'^events/$', views.events, name='events'),
url(r'^texts/$', views.texts, name='texts'),
url(r'^search/$', views.search, name='search'),
url(r'^markdownx/', include(markdownx)),
url(r'^photologue/', include('photologue.urls', namespace='photologue')),
url(r'^gallerylist/$', GalleryListView.as_view(), name='gallery-list'),

View File

@ -14,7 +14,7 @@ def available_content():
for type in ['projects', 'events', 'works', 'texts']:
if Content.objects.filter(type__name=type, published=True).exists():
sections.append([
reverse('works'),
reverse(type),
type.capitalize()
])
return sections