{% if not href %}
  {% url url as href %}
{% endif %}
<li class="{% if not href %}navbar-text{% endif %} {% if request.path == href %}active{% endif %} {{ class }}">
  {% if href %}
  <a href="{{ href }}" title="{{ text }}">
  {% else %}
  <span title="{{ text }}">
  {% endif %}<!--
    {% if glyphicon %}
    --><span class="glyphicon glyphicon-{{ glyphicon }}"></span><!--
    {% endif %}
    {% if text %}
    --><span class="visible-xl-inline">{{ text }}</span><!--
    {% endif %}
    -->
  {% if href %}
  </a>
  {% else %}
  </span>
  {% endif %}
</li>
