-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Custom breadcrumbs for webcast pages, fixes #146
- Loading branch information
1 parent
91ca3d2
commit 0f5522e
Showing
4 changed files
with
55 additions
and
2 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
project_tier/events/templates/events/tags/breadcrumbs.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{% load wagtailcore_tags %} | ||
|
||
{% if ancestors %} | ||
<nav class="breadcrumbs" aria-label="You are here:" role="navigation"> | ||
<ul> | ||
{% for ancestor in ancestors %} | ||
<li> | ||
{% if forloop.last %}<span class="show-for-sr">Current: </span>{% endif %} | ||
<a href="{% pageurl ancestor %}"> | ||
{% if ancestor.content_type|slugify == "webcast-index-page" %} | ||
Webcasts | ||
{% elif ancestor.content_type|slugify == "webcast-page" %} | ||
{{ ancestor.specific.speaker_name }} | ||
{% else %} | ||
{{ ancestor }} | ||
{% endif %} | ||
</a> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
</nav> | ||
{% endif %} |
15 changes: 14 additions & 1 deletion
15
project_tier/events/templates/events/webcast_index_page.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters