equal
deleted
inserted
replaced
|
1 {% extends 'base.html' %} |
|
2 {% block content %} |
|
3 {% if is_guest %} |
|
4 Welcome Guest<br> |
|
5 <a href="/accounts/register/">Register</a> |
|
6 <a href="/accounts/login/">Login</a><br /><br /> |
|
7 Recent Tasks:<br /> |
|
8 {% for task in task_list %} |
|
9 <a href="/task/view/tid={{ task.id }}">{{ task.title }}</a><br /> |
|
10 {% endfor %} |
|
11 {% else %} |
|
12 Welcome {{ user.username }} <br /> |
|
13 <a href="/accounts/logout/">logout</a><br /> |
|
14 <br /> |
|
15 <a href="/task/browse/">Tasks</a><br /> |
|
16 <a href="/user/browse/">Users</a><br /> |
|
17 <a href="/user/view/uid={{user.id}}">My Profile</a><br /> |
|
18 {% endif %} |
|
19 {% if can_create_task %} |
|
20 <a href="/task/create/">Create a task</a><br /> |
|
21 {% endif %} |
|
22 {% endblock %} |