Fix forum breadcrumbs

This commit is contained in:
Trever Fischer
2012-04-21 10:34:46 -04:00
parent f4c118eac4
commit 831418f785
2 changed files with 6 additions and 7 deletions

View File

@@ -2,9 +2,9 @@
{% load minecraft %}
{% block breadcrumb %}
<a href="{% url local.views.index%}">Home</a>
Home
{%for f in forum.get_ancestors %}
&gt; <a href="{{f.get_relative_url}}">{{f}}</a>
&gt; <a href="{{f.get_absolute_url}}">{{f}}</a>
{%endfor%}
&gt; {{forum}}
{% endblock %}

View File

@@ -4,12 +4,11 @@
{%block title %}{{topic.title}}{%endblock%}
{%block breadcrumb %}
<a href="{% url forums.views.index%}">Forums</a>
&gt; <a href="{{topic.forum.get_absolute_url}}">{{topic.forum}}</a>
{%for f in topic.forum.get_ancestors %}
&gt; <a href="{{f.get_relative_url}}">{{f}}</a>
Home
{%for f in topic.forum.get_ancestors%}
&gt; <a href="{{f.get_absolute_url}}">{{f}}</a>
{%endfor%}
&gt; <a href="{{topic.forum.get_absolute_url}}">{{topic.forum}}</a>
{%endblock%}
{%block content %}