root/branches/0.9/pylucid_project/pylucid_plugins/main_menu/templates/main_menu/main_menu_items.html

Revision 2567, 0.7 KB (checked in by JensDiemer, 5 months ago)

mark first/last <a> in main menu, see:  http://trac.pylucid.net/ticket/365

Line 
1{% for node in nodes %}
2    {% if node.pagemeta %}
3            <li>
4            {% if node.visible %}
5                {% if node.current %}<strong>{% endif %}
6                <a href="{{ node.pagemeta.get_absolute_url }}" hreflang="{{ node.pagemeta.language.code }}" title="{{ node.pagemeta.get_title }}" class="{{ node.css_class }}">{{ node.pagemeta.get_name }}</a>
7                {% if node.current %}</strong>{% endif %}
8            {% endif %}
9
10            {% if node.subnodes %}
11                {% with "main_menu/main_menu_items.html" as filename %}
12                {% with node.subnodes as nodes %}
13                    <ul>{% include filename %}</ul>
14                {% endwith %}
15                {% endwith %}
16            {% endif %}         
17            </li>
18    {% endif %}
19{% endfor %}
Note: See TracBrowser for help on using the browser.