equal
deleted
inserted
replaced
1 {% load user_tags %} |
1 {% comment %} |
|
2 Currently this template only includes the user actions for logged |
|
3 in and non-logged in users. This can be extended to include other, |
|
4 side-wide actions on right sidemenu bar. |
|
5 {% endcomment %} |
2 |
6 |
3 <div id="navheader"> |
|
4 {% if user.is_authenticated %} |
|
5 {{ user.username }} Actions |
|
6 {% else %} |
|
7 Login Form |
|
8 {% endif %} |
|
9 </div> |
|
10 |
7 |
11 {% if user.is_authenticated %} |
8 {% include "_user_login.html" %} |
12 <ul id="nav"> |
|
13 <li> |
|
14 <a href="{% url browse_notifications %}" title="notifications"> |
|
15 {{ user|notf_dsp }} |
|
16 </a> |
|
17 </li> |
|
18 <br> |
|
19 <li><a href="{% url view_profile %}">View Profile</a></li> |
|
20 <li><a href="{% url auth_logout %}">Logout</a></li> |
|
21 </ul> |
|
22 {% else %} |
|
23 |
|
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> |
|
37 |
|
38 <div id="rightnav"> |
|
39 <div id="register"> |
|
40 <a href="{% url registration_register %}" title="register"> |
|
41 Register |
|
42 </a> |
|
43 |
|
44 <a href="{% url auth_password_reset %}">Forgot password?</a> |
|
45 </div> |
|
46 </div> |
|
47 |
|
48 {% endif %} |
|