pytask/templates/_right_sidebar.html
changeset 446 44c87dedbe66
parent 439 66bdb28ebaf6
child 449 50c45258b00e
equal deleted inserted replaced
445:7d465ce581d9 446:44c87dedbe66
     5     {{ user.username }} Actions
     5     {{ user.username }} Actions
     6   {% else %}
     6   {% else %}
     7     Login Form
     7     Login Form
     8   {% endif %}
     8   {% endif %}
     9 </div>
     9 </div>
    10 <ul id="nav">
       
    11 
    10 
    12   {% if user.is_authenticated %}
    11 {% if user.is_authenticated %}
    13 
    12   <ul id="nav">
    14     <li>
    13     <li>
    15       <a href="{% url browse_notifications %}" title="notifications">
    14       <a href="{% url browse_notifications %}" title="notifications">
    16         {{ user|notf_dsp }}
    15         {{ user|notf_dsp }}
    17       </a>
    16       </a>
    18     </li>
    17     </li>
    19     <br>
    18     <br>
    20     <li><a href="{% url view_profile %}">Profile</a></li>
    19     <li><a href="{% url view_profile %}">View Profile</a></li>
    21     <li><a href="{% url auth_logout %}">Logout</a></li>
    20     <li><a href="{% url auth_logout %}">Logout</a></li>
       
    21   </ul>
       
    22 {% else %}
    22 
    23 
    23   {% else %}
    24   <form action="{% url auth_login %}" method="post">
       
    25     <div id="loginform">
       
    26       <div id="field">
       
    27         <label for="username">Username</label>
       
    28         <input type="text" name="username" />
       
    29       </div>
       
    30       <div id="field">
       
    31         <label for="password">Password</label>
       
    32         <input type="password" name="password" />
       
    33       </div>
       
    34       <p class="submit"><button type="submit">Login</button></p>
       
    35       </div>
       
    36   </form>
    24 
    37 
    25     <li>
    38   <div id="rightnav">
       
    39     <div id="register">
    26       <a href="{% url registration_register %}" title="register">
    40       <a href="{% url registration_register %}" title="register">
    27         Register
    41         Register
    28       </a>
    42       </a>
    29     </li>
    43       &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    30     <li>
    44       <a href="{% url auth_password_reset %}">Forgot password?</a>
    31       <a href="{% url auth_login %}" title="login">
    45     </div>
    32         Login
    46   </div>
    33       </a>
       
    34     </li>
       
    35 
    47 
    36   {% endif %}
    48 {% endif %}
    37 
       
    38 </ul>