symposion_app/pinaxcon/templates/sitetree_header.html
Christopher Neugebauer 40a4df3767 Fixes for 20160718 (#54)
* Simple form input fields now use TakeFlight styling

* Styles the form widgets as per the styles in our CSS

* Styling of TextArea now matches the remaining input types

* Adds is_last modifier to navigation dropdown

* Adds admin for talk, tutorial, and miniconf proposals

* Adds an RSS feed

* Adds a link to the RSS page

* Unbreaks the old news index page

* Adds never_cache to the login page, removes the never cache middleware from the settings
2016-07-20 07:31:13 +10:00

22 lines
840 B
HTML

{% load sitetree %}
<nav role="navigation" id="LOL" class="l-header--links">
{% for item in sitetree_items %}
<li class="l-header--nav">
<a
href="{% if item.has_children %}#{% else %}{% sitetree_url for item %}{% endif %}"
{% if item.has_children %}
class="l-header--nav dropdown-toggle {% if item.is_current or item.in_current_branch %}active{% endif %}" data-toggle="dropdown"
{% else %}
class="l-header--nav {% if item.is_current or item.in_current_branch %}active{% endif %}"
{% endif %}>
{{ item.title_resolved }}
</a>
{% if item.has_children %}
{% with is_last=forloop.last %}
{% sitetree_children of item for menu template "sitetree_header_dropdown.html" %}
{% endwith %}
{% endif %}
</li>
{% endfor %}
</nav>