From a474526d7f79acc585cb5412fc244080b1da2cb3 Mon Sep 17 00:00:00 2001 From: citrons Date: Wed, 23 Jun 2021 08:52:15 +0000 Subject: add breadcrumb to forum view --- apioforum/templates/view_forum.html | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/apioforum/templates/view_forum.html b/apioforum/templates/view_forum.html index f83503b..2044d54 100644 --- a/apioforum/templates/view_forum.html +++ b/apioforum/templates/view_forum.html @@ -1,6 +1,12 @@ {% extends 'base.html' %} -{% from 'common.html' import ts, tag, disp_user, post_url %} -{% block header %}

{% block title %}{{forum.name}}{%endblock%}

{%endblock%} +{% from 'common.html' import ts, tag, disp_user, post_url, forum_breadcrumb %} +{% block header %} +

{% block title %}{{forum.name}}{%endblock%}

+{% if forum.id != 1 %} + {{ forum_breadcrumb(forum) }} +{% endif %} +{%endblock%} + {%block nmcontent%}
{{forum.description|md|safe}} -- cgit v1.2.3