seed.templatetags package¶
Submodules¶
seed.templatetags.breadcrumbs module¶
:copyright (c) 2014 - 2015, The Regents of the University of California, through Lawrence Berkeley National Laboratory (subject to receipt of any required approvals from the U.S. Department of Energy) and contributors. All rights reserved. # NOQA :author
Bases: django.template.base.Node
Bases: django.template.base.Node
Renders the breadcrumb. Examples:
{% breadcrumb “Title of breadcrumb” url_var %} {% breadcrumb context_var url_var %} {% breadcrumb “Just the title” %} {% breadcrumb just_context_var %}Parameters: -First parameter is the title of the crumb, -Second (optional) parameter is the url variable to link to, produced by url tag, i.e.:
{% url “person_detail” object.id as person_url %} then: {% breadcrumb person.name person_url %}@author Andriy Drozdyuk
Renders the breadcrumb. Examples:
{% breadcrumb “Title of breadcrumb” url_var %} {% breadcrumb context_var url_var %} {% breadcrumb “Just the title” %} {% breadcrumb just_context_var %}Parameters: -First parameter is the title of the crumb, -Second (optional) parameter is the url variable to link to, produced by url tag, i.e.:
{% url “person_detail/” object.id as person_url %} then: {% breadcrumb person.name person_url %}@author Andriy Drozdyuk
Same as breadcrumb but instead of url context variable takes in all the arguments URL tag takes.
{% breadcrumb “Title of breadcrumb” person_detail person.id %} {% breadcrumb person.name person_detail person.id %}
Same as breadcrumb but instead of url context variable takes in all the arguments URL tag takes.
{% breadcrumb “Title of breadcrumb” person_detail person.id %} {% breadcrumb person.name person_detail person.id %}
Helper function
Helper function
Module contents¶
:copyright (c) 2014 - 2015, The Regents of the University of California, through Lawrence Berkeley National Laboratory (subject to receipt of any required approvals from the U.S. Department of Energy) and contributors. All rights reserved. # NOQA :author