templates/index.html
author Nishanth Amuluru <nishanth@fossee.in>
Wed, 05 Jan 2011 22:22:10 +0530
changeset 218 59107ce0a618
parent 189 8f5fb15ffd9b
permissions -rw-r--r--
Replaced the word mentor with reviewer
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
    
218
59107ce0a618 Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents: 189
diff changeset
    76
    {% if user.task_reviewers.count %}
59107ce0a618 Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents: 189
diff changeset
    77
        <a href="/user/reviewer/">Reviewering {{ user.task_reviewers.count }}
59107ce0a618 Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents: 189
diff changeset
    78
        {% ifnotequal user.task_reviewers.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 %}
188
e4e73a4dd720 removed linebreak before billeted list in homepage.
nishanth
parents: 187
diff changeset
    89
    Unpublished tasks viewable by you:<ul>
125
d3cfceb8e120 homepage now displays a list of unpublished tasks
nishanth
parents: 97
diff changeset
    90
        {% for a_task in unpublished_tasks %}
187
72d57f59a561 now subtasks and dependencies in view_task page and other task_lists in home page are displayed as bulleted lists.
nishanth
parents: 170
diff changeset
    91
            <li><a href="/task/view/tid={{a_task.id}}">{{a_task.title}}</a></li>
125
d3cfceb8e120 homepage now displays a list of unpublished tasks
nishanth
parents: 97
diff changeset
    92
        {% endfor %}
187
72d57f59a561 now subtasks and dependencies in view_task page and other task_lists in home page are displayed as bulleted lists.
nishanth
parents: 170
diff changeset
    93
        </ul>
189
8f5fb15ffd9b fixed a bug in publish task.
nishanth
parents: 188
diff changeset
    94
    <br />
97
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    95
    {% endif %}
168
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
    96
218
59107ce0a618 Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents: 189
diff changeset
    97
    {% if reviewered_tasks %}
59107ce0a618 Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents: 189
diff changeset
    98
    Tasks you are reviewering:<ul>
59107ce0a618 Replaced the word mentor with reviewer
Nishanth Amuluru <nishanth@fossee.in>
parents: 189
diff changeset
    99
        {% for a_task in reviewered_tasks %}
188
e4e73a4dd720 removed linebreak before billeted list in homepage.
nishanth
parents: 187
diff changeset
   100
            <li><a href="/task/view/tid={{a_task.id}}">{{a_task.title}}</a></li>
168
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
   101
        {% endfor %}
187
72d57f59a561 now subtasks and dependencies in view_task page and other task_lists in home page are displayed as bulleted lists.
nishanth
parents: 170
diff changeset
   102
        </ul>
189
8f5fb15ffd9b fixed a bug in publish task.
nishanth
parents: 188
diff changeset
   103
    <br />
141
2489392ffb56 added the functionality to request a user to be AD MG DV.
nishanth
parents: 139
diff changeset
   104
    {% endif %}
168
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 working_tasks %}
188
e4e73a4dd720 removed linebreak before billeted list in homepage.
nishanth
parents: 187
diff changeset
   107
    Tasks that have been assigned to you:<ul>
168
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
   108
        {% for a_task in working_tasks %}
187
72d57f59a561 now subtasks and dependencies in view_task page and other task_lists in home page are displayed as bulleted lists.
nishanth
parents: 170
diff changeset
   109
            <li><a href="/task/view/tid={{a_task.id}}">{{a_task.title}}</a></li>
168
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
   110
        {% endfor %}
187
72d57f59a561 now subtasks and dependencies in view_task page and other task_lists in home page are displayed as bulleted lists.
nishanth
parents: 170
diff changeset
   111
        </ul>
189
8f5fb15ffd9b fixed a bug in publish task.
nishanth
parents: 188
diff changeset
   112
    <br />
168
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
   113
    {% endif %}
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
   114
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
   115
    {% if claimed_tasks %}
188
e4e73a4dd720 removed linebreak before billeted list in homepage.
nishanth
parents: 187
diff changeset
   116
    Tasks claimed but still not assigned to you:<ul>
168
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
   117
        {% for a_task in claimed_tasks %}
187
72d57f59a561 now subtasks and dependencies in view_task page and other task_lists in home page are displayed as bulleted lists.
nishanth
parents: 170
diff changeset
   118
            <li><a href="/task/view/tid={{a_task.id}}">{{a_task.title}}</a></li>
168
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
   119
        {% endfor %}
187
72d57f59a561 now subtasks and dependencies in view_task page and other task_lists in home page are displayed as bulleted lists.
nishanth
parents: 170
diff changeset
   120
        </ul>
189
8f5fb15ffd9b fixed a bug in publish task.
nishanth
parents: 188
diff changeset
   121
    <br />
168
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
   122
    {% endif %}
42aba20cfe97 made the home page look clean.
nishanth
parents: 152
diff changeset
   123
12
a93eebabfeb1 created forms, views, templates, actions for home_page, browse_task.
nishanth
parents:
diff changeset
   124
{% endblock %}