templates/index.html
author nishanth
Tue, 02 Mar 2010 14:46:05 +0530
changeset 174 d034cd77cfa6
parent 170 d69a562f969d
child 187 72d57f59a561
permissions -rw-r--r--
added footer to base.html.
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 />
170
d69a562f969d homepage for logged in users has been made to look better.
nishanth
parents: 168
diff changeset
    17
    <br />
12
a93eebabfeb1 created forms, views, templates, actions for home_page, browse_task.
nishanth
parents:
diff changeset
    18
    {% endif %}
168
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 />
170
d69a562f969d homepage for logged in users has been made to look better.
nishanth
parents: 168
diff changeset
    22
    <br />
168
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
    23
    {% endifequal %}
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
    24
    {% ifequal user.get_profile.rights "AD" %}
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
    25
        <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
    26
        <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
    27
        <a href="/user/make/ad">Request another user to act as an Admin</a><br />
170
d69a562f969d homepage for logged in users has been made to look better.
nishanth
parents: 168
diff changeset
    28
    <br />
168
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
    29
    {% endifequal %}
170
d69a562f969d homepage for logged in users has been made to look better.
nishanth
parents: 168
diff changeset
    30
    
168
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
    31
143
796ff9e279a8 now if a user accepts to be a mentor, all his pending reqs will be made invalid.
nishanth
parents: 141
diff changeset
    32
    {% 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
    33
        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
    34
        {% ifnotequal user.unread_notifications.count 1 %}
139
56203661002a provided links to make a raise the privileges of a user.
nishanth
parents: 125
diff changeset
    35
        notifications
97
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    36
        {% else %}
139
56203661002a provided links to make a raise the privileges of a user.
nishanth
parents: 125
diff changeset
    37
        notification
168
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
    38
        {% endifnotequal %}
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
    39
    <br />
97
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    40
    {% endif %}
168
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
    41
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
    {% if user.unread_requests.count %}
168
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
    43
        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
    44
        {% ifnotequal user.unread_requests.count 1 %}
139
56203661002a provided links to make a raise the privileges of a user.
nishanth
parents: 125
diff changeset
    45
        requests
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
        request
168
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
    48
        {% endifnotequal %}
170
d69a562f969d homepage for logged in users has been made to look better.
nishanth
parents: 168
diff changeset
    49
    <br /><br />
d69a562f969d homepage for logged in users has been made to look better.
nishanth
parents: 168
diff changeset
    50
    {% else %}
d69a562f969d homepage for logged in users has been made to look better.
nishanth
parents: 168
diff changeset
    51
        {% if user.unread_notifications.count %}
d69a562f969d homepage for logged in users has been made to look better.
nishanth
parents: 168
diff changeset
    52
            <br />
d69a562f969d homepage for logged in users has been made to look better.
nishanth
parents: 168
diff changeset
    53
        {% endif %}
97
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    54
    {% endif %}
170
d69a562f969d homepage for logged in users has been made to look better.
nishanth
parents: 168
diff changeset
    55
    
97
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    56
    
168
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
    57
<!--
97
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    58
    {% if user.task_claimed_users.count %}
139
56203661002a provided links to make a raise the privileges of a user.
nishanth
parents: 125
diff changeset
    59
        {{ 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
    60
        {% 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
    61
        tasks
97
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    62
        {% else %}
139
56203661002a provided links to make a raise the privileges of a user.
nishanth
parents: 125
diff changeset
    63
        task
56203661002a provided links to make a raise the privileges of a user.
nishanth
parents: 125
diff changeset
    64
        {% endifnotequal %}<br />
97
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    65
    {% endif %}
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    66
    
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    67
    {% if user.task_assigned_users.count %}
139
56203661002a provided links to make a raise the privileges of a user.
nishanth
parents: 125
diff changeset
    68
        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
    69
        {% 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
    70
        tasks
97
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    71
        {% else %}
139
56203661002a provided links to make a raise the privileges of a user.
nishanth
parents: 125
diff changeset
    72
        task
56203661002a provided links to make a raise the privileges of a user.
nishanth
parents: 125
diff changeset
    73
        {% endifnotequal %}<br />
97
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    74
    {% endif %}
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    75
    
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    76
    {% if user.task_mentors.count %}
139
56203661002a provided links to make a raise the privileges of a user.
nishanth
parents: 125
diff changeset
    77
        <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
    78
        {% ifnotequal user.task_mentors.count 1 %}
139
56203661002a provided links to make a raise the privileges of a user.
nishanth
parents: 125
diff changeset
    79
            tasks
125
d3cfceb8e120 homepage now displays a list of unpublished tasks
nishanth
parents: 97
diff changeset
    80
        {% else %}
139
56203661002a provided links to make a raise the privileges of a user.
nishanth
parents: 125
diff changeset
    81
            task
56203661002a provided links to make a raise the privileges of a user.
nishanth
parents: 125
diff changeset
    82
        {% endifnotequal %}</a>
125
d3cfceb8e120 homepage now displays a list of unpublished tasks
nishanth
parents: 97
diff changeset
    83
        <br />
d3cfceb8e120 homepage now displays a list of unpublished tasks
nishanth
parents: 97
diff changeset
    84
    {% endif %}
d3cfceb8e120 homepage now displays a list of unpublished tasks
nishanth
parents: 97
diff changeset
    85
    
168
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
    86
    -->
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
    87
    
125
d3cfceb8e120 homepage now displays a list of unpublished tasks
nishanth
parents: 97
diff changeset
    88
    {% if unpublished_tasks %}
168
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
    89
    Unpublished tasks viewable by you:<br />
125
d3cfceb8e120 homepage now displays a list of unpublished tasks
nishanth
parents: 97
diff changeset
    90
        {% for a_task in unpublished_tasks %}
d3cfceb8e120 homepage now displays a list of unpublished tasks
nishanth
parents: 97
diff changeset
    91
            <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
    92
        {% endfor %}
168
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
    93
    <br /><br />
97
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    94
    {% endif %}
168
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
    95
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
    96
    {% if mentored_tasks %}
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
    97
    Tasks you are mentoring:<br />
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
    98
        {% for a_task in mentored_tasks %}
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
    99
            <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
   100
        {% endfor %}
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
   101
    <br /><br >
141
2489392ffb56 added the functionality to request a user to be AD MG DV.
nishanth
parents: 139
diff changeset
   102
    {% endif %}
168
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
   103
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
   104
    {% if working_tasks %}
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
   105
    Tasks that have been assigned to you:<br />
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
   106
        {% for a_task in working_tasks %}
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
   107
            <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
   108
        {% endfor %}
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
   109
    <br /><br />
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
   110
    {% endif %}
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
   111
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
   112
    {% if claimed_tasks %}
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
   113
    Tasks claimed but still not assigned to you:<br />
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
   114
        {% for a_task in claimed_tasks %}
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
   115
            <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
   116
        {% endfor %}
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
   117
    <br /><br />
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
   118
    {% endif %}
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
   119
12
a93eebabfeb1 created forms, views, templates, actions for home_page, browse_task.
nishanth
parents:
diff changeset
   120
{% endblock %}