Fix forum breadcrumbs
This commit is contained in:
@@ -2,9 +2,9 @@
|
||||
{% load minecraft %}
|
||||
|
||||
{% block breadcrumb %}
|
||||
<a href="{% url local.views.index%}">Home</a>
|
||||
Home
|
||||
{%for f in forum.get_ancestors %}
|
||||
> <a href="{{f.get_relative_url}}">{{f}}</a>
|
||||
> <a href="{{f.get_absolute_url}}">{{f}}</a>
|
||||
{%endfor%}
|
||||
> {{forum}}
|
||||
{% endblock %}
|
||||
|
@@ -4,12 +4,11 @@
|
||||
{%block title %}{{topic.title}}{%endblock%}
|
||||
|
||||
{%block breadcrumb %}
|
||||
<a href="{% url forums.views.index%}">Forums</a>
|
||||
|
||||
> <a href="{{topic.forum.get_absolute_url}}">{{topic.forum}}</a>
|
||||
{%for f in topic.forum.get_ancestors %}
|
||||
> <a href="{{f.get_relative_url}}">{{f}}</a>
|
||||
Home
|
||||
{%for f in topic.forum.get_ancestors%}
|
||||
> <a href="{{f.get_absolute_url}}">{{f}}</a>
|
||||
{%endfor%}
|
||||
> <a href="{{topic.forum.get_absolute_url}}">{{topic.forum}}</a>
|
||||
{%endblock%}
|
||||
|
||||
{%block content %}
|
||||
|
Reference in New Issue
Block a user