templates/index.html
author nishanth
Sun, 28 Feb 2010 04:17:15 +0530
changeset 139 56203661002a
parent 125 d3cfceb8e120
child 141 2489392ffb56
permissions -rw-r--r--
provided links to make a raise the privileges of a user.
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 %}
70
a14ec2f09beb removed unwanted links.
nishanth
parents: 42
diff changeset
    12
        Logged in as {{ user.username }} <br />
12
a93eebabfeb1 created forms, views, templates, actions for home_page, browse_task.
nishanth
parents:
diff changeset
    13
    {% endif %}
97
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    14
    
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    15
    {% if notifications.count %}
139
56203661002a provided links to make a raise the privileges of a user.
nishanth
parents: 125
diff changeset
    16
        You have {{ notifications.count }} <a href='/user/notifications/'>unread</a>
97
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    17
        {% ifnotequal notifications.count 1 %}
139
56203661002a provided links to make a raise the privileges of a user.
nishanth
parents: 125
diff changeset
    18
        notifications
97
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    19
        {% else %}
139
56203661002a provided links to make a raise the privileges of a user.
nishanth
parents: 125
diff changeset
    20
        notification
56203661002a provided links to make a raise the privileges of a user.
nishanth
parents: 125
diff changeset
    21
        {% endifnotequal %}<br />
97
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    22
    {% endif %}
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    23
    
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    24
    {% if requests.count %}
139
56203661002a provided links to make a raise the privileges of a user.
nishanth
parents: 125
diff changeset
    25
        You have {{ requests.count }}  <a href='/user/requests/'>unreplied</a>
97
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    26
        {% ifnotequal requests.count 1 %}
139
56203661002a provided links to make a raise the privileges of a user.
nishanth
parents: 125
diff changeset
    27
        requests
97
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    28
        {% else %}
139
56203661002a provided links to make a raise the privileges of a user.
nishanth
parents: 125
diff changeset
    29
        request
56203661002a provided links to make a raise the privileges of a user.
nishanth
parents: 125
diff changeset
    30
        {% endifnotequal %}<br />
97
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    31
    {% endif %}
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    32
    
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    33
    {% if user.task_claimed_users.count %}
139
56203661002a provided links to make a raise the privileges of a user.
nishanth
parents: 125
diff changeset
    34
        {{ 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
    35
        {% 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
    36
        tasks
97
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    37
        {% else %}
139
56203661002a provided links to make a raise the privileges of a user.
nishanth
parents: 125
diff changeset
    38
        task
56203661002a provided links to make a raise the privileges of a user.
nishanth
parents: 125
diff changeset
    39
        {% endifnotequal %}<br />
97
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    40
    {% endif %}
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    41
    
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    42
    {% if user.task_assigned_users.count %}
139
56203661002a provided links to make a raise the privileges of a user.
nishanth
parents: 125
diff changeset
    43
        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
    44
        {% 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
    45
        tasks
97
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    46
        {% else %}
139
56203661002a provided links to make a raise the privileges of a user.
nishanth
parents: 125
diff changeset
    47
        task
56203661002a provided links to make a raise the privileges of a user.
nishanth
parents: 125
diff changeset
    48
        {% endifnotequal %}<br />
97
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    49
    {% endif %}
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    50
    
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    51
    {% if user.task_mentors.count %}
139
56203661002a provided links to make a raise the privileges of a user.
nishanth
parents: 125
diff changeset
    52
        <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
    53
        {% ifnotequal user.task_mentors.count 1 %}
139
56203661002a provided links to make a raise the privileges of a user.
nishanth
parents: 125
diff changeset
    54
            tasks
125
d3cfceb8e120 homepage now displays a list of unpublished tasks
nishanth
parents: 97
diff changeset
    55
        {% else %}
139
56203661002a provided links to make a raise the privileges of a user.
nishanth
parents: 125
diff changeset
    56
            task
56203661002a provided links to make a raise the privileges of a user.
nishanth
parents: 125
diff changeset
    57
        {% endifnotequal %}</a>
125
d3cfceb8e120 homepage now displays a list of unpublished tasks
nishanth
parents: 97
diff changeset
    58
        <br />
d3cfceb8e120 homepage now displays a list of unpublished tasks
nishanth
parents: 97
diff changeset
    59
    {% endif %}
d3cfceb8e120 homepage now displays a list of unpublished tasks
nishanth
parents: 97
diff changeset
    60
    
d3cfceb8e120 homepage now displays a list of unpublished tasks
nishanth
parents: 97
diff changeset
    61
    {% if unpublished_tasks %}
139
56203661002a provided links to make a raise the privileges of a user.
nishanth
parents: 125
diff changeset
    62
    <br />Unpublished tasks viewable by you:<br />
125
d3cfceb8e120 homepage now displays a list of unpublished tasks
nishanth
parents: 97
diff changeset
    63
        {% for a_task in unpublished_tasks %}
d3cfceb8e120 homepage now displays a list of unpublished tasks
nishanth
parents: 97
diff changeset
    64
            <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
    65
        {% endfor %}
97
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    66
    {% endif %}
139
56203661002a provided links to make a raise the privileges of a user.
nishanth
parents: 125
diff changeset
    67
    <br /><br />
56203661002a provided links to make a raise the privileges of a user.
nishanth
parents: 125
diff changeset
    68
    {% ifnotequal user.get_profile.rights "CT" %}
56203661002a provided links to make a raise the privileges of a user.
nishanth
parents: 125
diff changeset
    69
        <a href="/task/create/">Create a task</a><br />
56203661002a provided links to make a raise the privileges of a user.
nishanth
parents: 125
diff changeset
    70
    {% endifnotequal %}
56203661002a provided links to make a raise the privileges of a user.
nishanth
parents: 125
diff changeset
    71
    {% ifequal user.get_profile.rights "MG" %}
56203661002a provided links to make a raise the privileges of a user.
nishanth
parents: 125
diff changeset
    72
        <a href="/user/make/dv/">Request another to be a Developer</a>
56203661002a provided links to make a raise the privileges of a user.
nishanth
parents: 125
diff changeset
    73
        <a href="/user/make/mg/">Request another user to act as manager</a><br />
56203661002a provided links to make a raise the privileges of a user.
nishanth
parents: 125
diff changeset
    74
    {% endifequal %}
56203661002a provided links to make a raise the privileges of a user.
nishanth
parents: 125
diff changeset
    75
    {% ifequal user.get_profile.rights "AD" %}
56203661002a provided links to make a raise the privileges of a user.
nishanth
parents: 125
diff changeset
    76
        <a href="/user/make/dv/">Request another to be a Developer</a><br />
56203661002a provided links to make a raise the privileges of a user.
nishanth
parents: 125
diff changeset
    77
        <a href="/user/make/mg/">Request another user to act as a Manager</a><br />
56203661002a provided links to make a raise the privileges of a user.
nishanth
parents: 125
diff changeset
    78
        <a href="/user/make/ad">Request another user to act as an Admin</a><br />
56203661002a provided links to make a raise the privileges of a user.
nishanth
parents: 125
diff changeset
    79
    {% endifequal %}
12
a93eebabfeb1 created forms, views, templates, actions for home_page, browse_task.
nishanth
parents:
diff changeset
    80
{% endblock %}