Remove the sidebar while in the forums and fix breadcrumbs

This commit is contained in:
Trever Fischer
2012-04-23 11:57:33 -04:00
parent 3aa1065050
commit 8fba71a8e7
4 changed files with 29 additions and 5 deletions

View File

@@ -1,2 +1,14 @@
{% extends "base_simple.html" %}
{% extends "base_full.html" %}
{% block sectiontitle %}Forums{% endblock %}
{% block main %}
<div id="content">
<div class="grid_12">
<div class="item">
{% block content %}
{% endblock content %}
<br style="clear:both"/>
</div>
</div>
</div>
{% endblock %}

View File

@@ -1,10 +1,12 @@
{% extends "forum_base.html" %}
{% block breadcrumb %}
<a href="{% url forums.views.index%}">Forums</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; <a href="{{forum.get_absolute_url}}">{{forum}}</a>
&gt; New Topic
{% endblock %}
{% block content %}

View File

@@ -1,4 +1,4 @@
{% extends "base.html" %}
{% extends "forum_base.html" %}
{%block content%}
<div class="item">
<h2>Replying to:</h2>
@@ -12,3 +12,13 @@
</form>
</div>
{%endblock%}
{%block breadcrumb %}
Home
{%for f in post.topic.forum.get_ancestors%}
&gt; <a href="{{f.get_absolute_url}}">{{f}}</a>
{%endfor%}
&gt; <a href="{{post.topic.forum.get_absolute_url}}">{{post.topic.forum}}</a>
&gt; <a href="{{post.topic.get_absolute_url}}">{{post.topic}}</a>
&gt; Reply
{%endblock%}

View File

@@ -1,4 +1,4 @@
{% extends "base_with_nav.html" %}
{% extends "forum_base.html" %}
{% load minecraft %}
{% load mptt_tags %}