Files @ c56c7498700b
Branch filter:

Location: CopyleftConf/copyleftconf-website/pinaxcon/templates/_account_bar.html

Christopher Neugebauer
Prepares registrasion-demo to match the 0.1 release of registrasion.
{% load i18n %}
{% load account_tags %}

<ul class="nav navbar-nav pull-right">
    {% if request.user.is_authenticated %}
        <span class="navbar-text">
            <i class="fa fa-user"></i> {% user_display request.user %}
            <a href="{% url "dashboard" %}"><i class="fa fa-tasks"></i> {% trans "Dashboard" %}</a>
            <a href="{% url 'account_settings' %}"><i class="fa fa-cog"></i> {% trans "Settings" %}</a>
            <a id="account_logout" href="{% url 'account_logout' %}"><i class="fa fa-power-off"></i> {% trans "Log out" %}</a>
    {% else %}
        <li><a href="{% url 'account_login' %}">{% trans "Log in" %}</a></li>
        {% if ACCOUNT_OPEN_SIGNUP %}
            <li><a href="{% url 'account_signup' %}">{% trans "Sign up" %}</a></li>
        {% endif %}
    {% endif %}

<form id="accountLogOutForm" style="display: none;" action="{% url 'account_logout' %}" method="POST">
    {% csrf_token %}