{% load base_tags %}
{% load perm_tags %}
{% load i18n %}

{% has_perm user site_settings.change_setting as can_edit_setting %}

{% if nav_object %}
	{% has_perm user view_appentry nav_object as can_view_entry %}
{% else %}
	{% has_perm user view_appentry as can_view_entry %}
{% endif %}

<div id="showh">
	<ul id="primary">

    {% if user.is_authenticated %}
	<li>
	    <a href="{% url dashboard %}" title="Tendenci Home Page">
		<img border="0" src="{{ STATIC_URL }}images/tendenci34x15.gif"
		alt="Tendenci User Home" align="top" width="34" height="15"></a>
	</li>
    {% endif %}

	<li>
		<span>{% trans "Entries" %}</span>
		<ul id="secondary">
			<li><a href="{% url membership.application_entries %}">{% trans "Entries:" %}</a></li>

			{% if can_edit_setting %}
				<li><a href="{% url settings.index "module" "memberships" %}">{% trans "Settings" %}</a></li>
			{% endif %}

			{% if nav_object %}
				{% if can_view_entry %}
				<li><a href="{{ nav_object.get_absolute_url }}">{% trans "View" %}</a></li>
				{% endif %}
			{% endif %}

			<li><a href="{% url membership.application_entries_search %}">{% trans "Search" %}</a></li>

			{% if user.is_authenticated %}
			<li><a href="{% url auth_logout %}">{% trans "Log Off" %}</a></li>
			{% endif %}
		</ul>

	</li>
	<li><a href="{% url corp_memb.index %}">{% firstof MODULE_CORPORATEMEMBERSHIPS_LABEL "Corp. Mem." %}</a></li>
	</ul>
</div>