templates/index.html
author nishanth
Tue, 02 Mar 2010 03:55:38 +0530
changeset 168 42aba20cfe97
parent 152 a65e1ef725dd
child 170 d69a562f969d
permissions -rw-r--r--
made the home page look clean.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
12
a93eebabfeb1 created forms, views, templates, actions for home_page, browse_task.
nishanth
parents:
diff changeset
     1
{% extends 'base.html' %}
a93eebabfeb1 created forms, views, templates, actions for home_page, browse_task.
nishanth
parents:
diff changeset
     2
{% block content %}
a93eebabfeb1 created forms, views, templates, actions for home_page, browse_task.
nishanth
parents:
diff changeset
     3
    {% if is_guest %}
a93eebabfeb1 created forms, views, templates, actions for home_page, browse_task.
nishanth
parents:
diff changeset
     4
        Welcome Guest<br>
a93eebabfeb1 created forms, views, templates, actions for home_page, browse_task.
nishanth
parents:
diff changeset
     5
        <a href="/accounts/register/">Register</a>
a93eebabfeb1 created forms, views, templates, actions for home_page, browse_task.
nishanth
parents:
diff changeset
     6
        <a href="/accounts/login/">Login</a><br /><br />
a93eebabfeb1 created forms, views, templates, actions for home_page, browse_task.
nishanth
parents:
diff changeset
     7
        Recent Tasks:<br />
a93eebabfeb1 created forms, views, templates, actions for home_page, browse_task.
nishanth
parents:
diff changeset
     8
        {% for task in task_list %}
a93eebabfeb1 created forms, views, templates, actions for home_page, browse_task.
nishanth
parents:
diff changeset
     9
            <a href="/task/view/tid={{ task.id }}">{{ task.title }}</a><br />
a93eebabfeb1 created forms, views, templates, actions for home_page, browse_task.
nishanth
parents:
diff changeset
    10
        {% endfor %}
a93eebabfeb1 created forms, views, templates, actions for home_page, browse_task.
nishanth
parents:
diff changeset
    11
    {% else %}
168
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
    12
        Logged in as {{ user.username }} <br /><br />
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
    13
    {% endif %}
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
    14
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
    15
    {% if can_create_task %}
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
    16
        <a href="/task/create/">Create a task</a><br />
12
a93eebabfeb1 created forms, views, templates, actions for home_page, browse_task.
nishanth
parents:
diff changeset
    17
    {% endif %}
168
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
    18
    <br />
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
    19
    {% ifequal user.get_profile.rights "MG" %}
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
    20
        <a href="/user/make/dv/">Request another user to be a Developer</a><br />
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
    21
        <a href="/user/make/mg/">Request another user to act as manager</a><br />
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
    22
    {% endifequal %}
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
    23
    {% ifequal user.get_profile.rights "AD" %}
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
    24
        <a href="/user/make/dv/">Request another user to be a Developer</a><br />
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
    25
        <a href="/user/make/mg/">Request another user to act as a Manager</a><br />
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
    26
        <a href="/user/make/ad">Request another user to act as an Admin</a><br />
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
    27
    {% endifequal %}
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
    28
    <br />
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
    29
143
796ff9e279a8 now if a user accepts to be a mentor, all his pending reqs will be made invalid.
nishanth
parents: 141
diff changeset
    30
    {% if user.unread_notifications.count %}
796ff9e279a8 now if a user accepts to be a mentor, all his pending reqs will be made invalid.
nishanth
parents: 141
diff changeset
    31
        You have {{ user.unread_notifications.count }} <a href='/user/notifications/'>unread</a>
796ff9e279a8 now if a user accepts to be a mentor, all his pending reqs will be made invalid.
nishanth
parents: 141
diff changeset
    32
        {% ifnotequal user.unread_notifications.count 1 %}
139
56203661002a provided links to make a raise the privileges of a user.
nishanth
parents: 125
diff changeset
    33
        notifications
97
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    34
        {% else %}
139
56203661002a provided links to make a raise the privileges of a user.
nishanth
parents: 125
diff changeset
    35
        notification
168
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
    36
        {% endifnotequal %}
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
    37
    <br />
97
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    38
    {% endif %}
168
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
    39
143
796ff9e279a8 now if a user accepts to be a mentor, all his pending reqs will be made invalid.
nishanth
parents: 141
diff changeset
    40
    {% if user.unread_requests.count %}
168
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
    41
        You have {{ user.unread_requests.count }}  <a href='/user/requests/'>unread</a>
143
796ff9e279a8 now if a user accepts to be a mentor, all his pending reqs will be made invalid.
nishanth
parents: 141
diff changeset
    42
        {% ifnotequal user.unread_requests.count 1 %}
139
56203661002a provided links to make a raise the privileges of a user.
nishanth
parents: 125
diff changeset
    43
        requests
97
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    44
        {% else %}
139
56203661002a provided links to make a raise the privileges of a user.
nishanth
parents: 125
diff changeset
    45
        request
168
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
    46
        {% endifnotequal %}
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
    47
    <br />
97
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    48
    {% endif %}
168
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
    49
    <br />
97
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    50
    
168
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
    51
<!--
97
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    52
    {% if user.task_claimed_users.count %}
139
56203661002a provided links to make a raise the privileges of a user.
nishanth
parents: 125
diff changeset
    53
        {{ user.task_claimed_users.count }} <a href='/user/claimed/'>claimed</a>
97
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    54
        {% ifnotequal user.task_claimed_users.count 1 %}
139
56203661002a provided links to make a raise the privileges of a user.
nishanth
parents: 125
diff changeset
    55
        tasks
97
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    56
        {% else %}
139
56203661002a provided links to make a raise the privileges of a user.
nishanth
parents: 125
diff changeset
    57
        task
56203661002a provided links to make a raise the privileges of a user.
nishanth
parents: 125
diff changeset
    58
        {% endifnotequal %}<br />
97
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    59
    {% endif %}
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    60
    
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    61
    {% if user.task_assigned_users.count %}
139
56203661002a provided links to make a raise the privileges of a user.
nishanth
parents: 125
diff changeset
    62
        You are currently <a href='/user/assigned/'>working</a> on {{ user.task_assigned_users.count }}
97
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    63
        {% ifnotequal user.task_assigned_users.count 1 %}
139
56203661002a provided links to make a raise the privileges of a user.
nishanth
parents: 125
diff changeset
    64
        tasks
97
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    65
        {% else %}
139
56203661002a provided links to make a raise the privileges of a user.
nishanth
parents: 125
diff changeset
    66
        task
56203661002a provided links to make a raise the privileges of a user.
nishanth
parents: 125
diff changeset
    67
        {% endifnotequal %}<br />
97
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    68
    {% endif %}
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    69
    
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    70
    {% if user.task_mentors.count %}
139
56203661002a provided links to make a raise the privileges of a user.
nishanth
parents: 125
diff changeset
    71
        <a href="/user/mentor/">Mentoring {{ user.task_mentors.count }}
97
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    72
        {% ifnotequal user.task_mentors.count 1 %}
139
56203661002a provided links to make a raise the privileges of a user.
nishanth
parents: 125
diff changeset
    73
            tasks
125
d3cfceb8e120 homepage now displays a list of unpublished tasks
nishanth
parents: 97
diff changeset
    74
        {% else %}
139
56203661002a provided links to make a raise the privileges of a user.
nishanth
parents: 125
diff changeset
    75
            task
56203661002a provided links to make a raise the privileges of a user.
nishanth
parents: 125
diff changeset
    76
        {% endifnotequal %}</a>
125
d3cfceb8e120 homepage now displays a list of unpublished tasks
nishanth
parents: 97
diff changeset
    77
        <br />
d3cfceb8e120 homepage now displays a list of unpublished tasks
nishanth
parents: 97
diff changeset
    78
    {% endif %}
d3cfceb8e120 homepage now displays a list of unpublished tasks
nishanth
parents: 97
diff changeset
    79
    
168
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
    80
    -->
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
    81
    
125
d3cfceb8e120 homepage now displays a list of unpublished tasks
nishanth
parents: 97
diff changeset
    82
    {% if unpublished_tasks %}
168
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
    83
    Unpublished tasks viewable by you:<br />
125
d3cfceb8e120 homepage now displays a list of unpublished tasks
nishanth
parents: 97
diff changeset
    84
        {% for a_task in unpublished_tasks %}
d3cfceb8e120 homepage now displays a list of unpublished tasks
nishanth
parents: 97
diff changeset
    85
            <a href="/task/view/tid={{a_task.id}}">{{a_task.title}}</a>&nbsp;&nbsp;&nbsp;
d3cfceb8e120 homepage now displays a list of unpublished tasks
nishanth
parents: 97
diff changeset
    86
        {% endfor %}
168
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
    87
    <br /><br />
97
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    88
    {% endif %}
168
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
    89
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
    90
    {% if mentored_tasks %}
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
    91
    Tasks you are mentoring:<br />
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
    92
        {% for a_task in mentored_tasks %}
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
    93
            <a href="/task/view/tid={{a_task.id}}">{{a_task.title}}</a>&nbsp;&nbsp;&nbsp;
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
    94
        {% endfor %}
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
    95
    <br /><br >
141
2489392ffb56 added the functionality to request a user to be AD MG DV.
nishanth
parents: 139
diff changeset
    96
    {% endif %}
168
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
    97
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
    98
    {% if working_tasks %}
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
    99
    Tasks that have been assigned to you:<br />
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
   100
        {% for a_task in working_tasks %}
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
   101
            <a href="/task/view/tid={{a_task.id}}">{{a_task.title}}</a>&nbsp;&nbsp;&nbsp;
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
   102
        {% endfor %}
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
   103
    <br /><br />
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
   104
    {% endif %}
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
   105
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
   106
    {% if claimed_tasks %}
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
   107
    Tasks claimed but still not assigned to you:<br />
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
   108
        {% for a_task in claimed_tasks %}
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
   109
            <a href="/task/view/tid={{a_task.id}}">{{a_task.title}}</a>&nbsp;&nbsp;&nbsp;
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
   110
        {% endfor %}
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
   111
    <br /><br />
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
   112
    {% endif %}
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
   113
12
a93eebabfeb1 created forms, views, templates, actions for home_page, browse_task.
nishanth
parents:
diff changeset
   114
{% endblock %}