diff options
author | citrons <citrons> | 2021-06-23 08:52:15 +0000 |
---|---|---|
committer | citrons <citrons> | 2021-06-23 08:52:15 +0000 |
commit | a474526d7f79acc585cb5412fc244080b1da2cb3 (patch) | |
tree | 5b34f3292f9e34de6bd0d51e757e8cfad408b8f5 | |
parent | 2cba6d4d88266aa3626d4606f2a17460c7437270 (diff) |
add breadcrumb to forum view
-rw-r--r-- | apioforum/templates/view_forum.html | 10 |
1 files 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 %}<h1>{% block title %}{{forum.name}}{%endblock%}</h1>{%endblock%} +{% from 'common.html' import ts, tag, disp_user, post_url, forum_breadcrumb %} +{% block header %} +<h1>{% block title %}{{forum.name}}{%endblock%}</h1> +{% if forum.id != 1 %} + {{ forum_breadcrumb(forum) }} +{% endif %} +{%endblock%} + {%block nmcontent%} <main class="widemain"> {{forum.description|md|safe}} |