templates/index.html
author nishanth
Sun, 28 Feb 2010 18:31:10 +0530
changeset 150 604808d27483
parent 145 0c97a02b9bdb
child 152 a65e1ef725dd
permissions -rw-r--r--
fixed a small bug in create_notification for the case NT.
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
    
143
796ff9e279a8 now if a user accepts to be a mentor, all his pending reqs will be made invalid.
nishanth
parents: 141
diff changeset
    15
    {% 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
    16
        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
    17
        {% ifnotequal user.unread_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
    
143
796ff9e279a8 now if a user accepts to be a mentor, all his pending reqs will be made invalid.
nishanth
parents: 141
diff changeset
    24
    {% if user.unread_requests.count %}
796ff9e279a8 now if a user accepts to be a mentor, all his pending reqs will be made invalid.
nishanth
parents: 141
diff changeset
    25
        You have {{ user.unread_requests.count }}  <a href='/user/requests/'>unreplied</a>
796ff9e279a8 now if a user accepts to be a mentor, all his pending reqs will be made invalid.
nishanth
parents: 141
diff changeset
    26
        {% ifnotequal user.unread_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 />
141
2489392ffb56 added the functionality to request a user to be AD MG DV.
nishanth
parents: 139
diff changeset
    68
    {% if can_create_task %}
139
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 />
141
2489392ffb56 added the functionality to request a user to be AD MG DV.
nishanth
parents: 139
diff changeset
    70
    {% endif %}
139
56203661002a provided links to make a raise the privileges of a user.
nishanth
parents: 125
diff changeset
    71
    {% ifequal user.get_profile.rights "MG" %}
145
0c97a02b9bdb now accepting to be a MG deleted pending DV and MG reqs.
nishanth
parents: 143
diff changeset
    72
        <a href="/user/make/dv/">Request another user to be a Developer</a><br />
139
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" %}
145
0c97a02b9bdb now accepting to be a MG deleted pending DV and MG reqs.
nishanth
parents: 143
diff changeset
    76
        <a href="/user/make/dv/">Request another user to be a Developer</a><br /><br />
139
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 %}