Commit 52a5a37a authored by fred's avatar fred

add section name to fiber pages

parent df2b7a50
......@@ -44,7 +44,7 @@ from django.conf.urls.static import static
urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
urlpatterns += patterns('',
(r'', 'fiber.views.page'),
(r'', 'panikweb.views.fiber_page'),
)
try:
......
......@@ -10,6 +10,7 @@ from django.views.generic.dates import _date_from_string
from django.core.paginator import Paginator
import fiber.views
from haystack.query import SearchQuerySet
from jsonresponse import to_json
......@@ -510,3 +511,11 @@ class PodcastsFeedView(TemplateView):
return context
podcasts_feed = PodcastsFeedView.as_view()
class FiberPageView(fiber.views.FiberTemplateView):
def get_context_data(self, **kwargs):
context = super(FiberPageView, self).get_context_data(**kwargs)
context['sectionName'] = 'About'
return context
fiber_page = FiberPageView.as_view()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment