summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/posts/templates/posts/film_detail.html12
-rw-r--r--app/utils/views.py3
2 files changed, 3 insertions, 12 deletions
diff --git a/app/posts/templates/posts/film_detail.html b/app/posts/templates/posts/film_detail.html
index d0108e9..5e44d7d 100644
--- a/app/posts/templates/posts/film_detail.html
+++ b/app/posts/templates/posts/film_detail.html
@@ -20,17 +20,7 @@
</style>
{%endblock%}
{%block bodyid%}id="home" class="friends"{%endblock%}
-{% block breadcrumbs %}<nav class="breadcrumbs" itemscope itemtype="http://schema.org/BreadcrumbList">
- <span class="nav-item" itemprop="item">
- <a href="/" itemprop="name">Home</a>
- <meta itemprop="position" content="1" />
- </span>
- <span class="nav-item" itemprop="item">
- <a href="/film/" itemprop="name">Films</a>
- <meta itemprop="position" content="2" />
- </span>
- </nav>
-{% endblock %}
+{% block breadcrumbs %}{% include "lib/breadcrumbs.html" with breadcrumbs=breadcrumbs %}{% endblock %}
{% block primary %}
<main>
<article class="h-entry hentry entry-content content" itemscope itemType="http://schema.org/BlogPosting">
diff --git a/app/utils/views.py b/app/utils/views.py
index 5b1e4fd..19ada6f 100644
--- a/app/utils/views.py
+++ b/app/utils/views.py
@@ -60,9 +60,10 @@ class LuxDetailView(DetailView):
if self.object._meta.verbose_name_plural == 'posts':
if self.object.get_post_type_display() != 'src':
context['breadcrumbs'] = (self.object.get_post_type_display()+"s",)
+ context['crumb_url'] = "/%ss/" % slugify(self.object.get_post_type_display())
else:
context['breadcrumbs'] = (self.object.get_post_type_display(),)
- context['crumb_url'] = "/%ss/" % slugify(self.object.get_post_type_display())
+ context['crumb_url'] = "/%s/" % slugify(self.object.get_post_type_display())
else:
context['breadcrumbs'] = (self.object._meta.verbose_name_plural,)
try: