forked from slav0nic/djangobb
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add topic * edit post see: #5
- Loading branch information
Showing
3 changed files
with
26 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
djangobb_forum/templates/djangobb_forum/includes/breadcrumb_post.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{% extends 'djangobb_forum/includes/breadcrumb_base.html' %} | ||
{% load forum_extras %} | ||
{% load i18n %} | ||
|
||
{% block breadcrumb %}{{ block.super }} | ||
{% if post %} | ||
<li>» {{ post.topic.forum.category }}</li> | ||
<li>» {% link post.topic.forum %}</li> | ||
<li>» {% link post.topic %}</li> | ||
{% elif forum %} | ||
<li>» {{ forum.category }}</li> | ||
<li>» {% link forum %}</li> | ||
{% else %} | ||
<li>» {{ topic.forum.category }}</li> | ||
<li>» {% link topic.forum %}</li> | ||
<li>» {% link topic %}</li> | ||
{% endif %} | ||
{% endblock breadcrumb %} | ||
|
||
{% block rss_feed %}{% endblock rss_feed %} | ||
|
||
{% block paginate %}{% endblock paginate %} |