-
-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated the docstrings of the template tags and added breadcrumbs
- Loading branch information
Corey Oordt
committed
Dec 18, 2010
1 parent
7058ccd
commit afe9d20
Showing
4 changed files
with
129 additions
and
35 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
{% for node,structure in drilldown|tree_info %} | ||
{% if structure.new_level %}<ul><li>{% else %}</li><li>{% endif %} | ||
{% ifequal node category %}<strong>{{ node.name }}</strong> | ||
{% else %}<a href="{{ node.get_absolute_url }}">{{ node.name }}</a> | ||
{% endifequal %} | ||
{% for level in structure.closed_levels %}</li></ul>{% endfor %} | ||
{% endfor %} | ||
{% load category_tags %} | ||
<ul><li><a href="{% url categories_tree_list %}">Top</a> | ||
{% for node,structure in path|tree_info %} | ||
{% if structure.new_level %}<ul><li> | ||
{% else %}</li><li> | ||
{% endif %} | ||
{% ifequal node category %}<strong>{{ node.name }}</strong> | ||
{% else %}<a href="{{ node.get_absolute_url }}">{{ node.name }}</a> | ||
{% endifequal %} | ||
{% for level in structure.closed_levels %}</li></ul>{% endfor %} | ||
{% endfor %}</li></ul> |
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,5 @@ | ||
{% for item in category.get_ancestors %} | ||
<a href="{{ item.get_absolute_url }}">{{ item.name }}</a> | ||
{{ separator }} | ||
{% endfor %} | ||
{{ category.name }} |
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,11 @@ | ||
{% load category_tags %} | ||
<ul><li><a href="{% url categories_tree_list %}">Top</a> | ||
{% for node,structure in path|tree_info %} | ||
{% if structure.new_level %}<ul><li> | ||
{% else %}</li><li> | ||
{% endif %} | ||
{% ifequal node category %}<strong>{{ node.name }}</strong> | ||
{% else %}<a href="{{ node.get_absolute_url }}">{{ node.name }}</a> | ||
{% endifequal %} | ||
{% for level in structure.closed_levels %}</li></ul>{% endfor %} | ||
{% endfor %}</li></ul> |
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