Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
radiopanik
panikweb
Commits
52a5a37a
Commit
52a5a37a
authored
Sep 03, 2013
by
fred
Browse files
add section name to fiber pages
parent
df2b7a50
Changes
2
Hide whitespace changes
Inline
Side-by-side
panikweb/urls.py
View file @
52a5a37a
...
...
@@ -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
:
...
...
panikweb/views.py
View file @
52a5a37a
...
...
@@ -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
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment