templates/index.html
author nishanth
Thu, 25 Feb 2010 17:56:42 +0530
changeset 99 64c34c1f441f
parent 97 3699550991c6
child 125 d3cfceb8e120
permissions -rw-r--r--
assign_credits event now creates a proper request object .
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
    
12
a93eebabfeb1 created forms, views, templates, actions for home_page, browse_task.
nishanth
parents:
diff changeset
    15
    {% if can_create_task %}
a93eebabfeb1 created forms, views, templates, actions for home_page, browse_task.
nishanth
parents:
diff changeset
    16
        <a href="/task/create/">Create a task</a><br />
a93eebabfeb1 created forms, views, templates, actions for home_page, browse_task.
nishanth
parents:
diff changeset
    17
    {% endif %}
97
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    18
    
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    19
    {% if notifications.count %}
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    20
        <br> {{ notifications.count }} unread <a href='/user/notifications/'>
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    21
        {% ifnotequal notifications.count 1 %}
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    22
        notifications</a>!!
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    23
        {% else %}
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    24
        notification</a>!!
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    25
        {% endifnotequal %}
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    26
    {% endif %}
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    27
    
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    28
    {% if requests.count %}
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    29
        <br>{{ requests.count }} unreplied <a href='/user/requests/'>
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    30
        {% ifnotequal requests.count 1 %}
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    31
        requests</a>!
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    32
        {% else %}
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    33
        request</a>!
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    34
        {% endifnotequal %}
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    35
    {% endif %}
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    36
    
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    37
    {% if user.task_claimed_users.count %}
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    38
        <br>{{ user.task_claimed_users.count }} <a href='/user/claimed/'>claimed</a>
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    39
        {% ifnotequal user.task_claimed_users.count 1 %}
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    40
        tasks!
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    41
        {% else %}
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    42
        task!
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    43
        {% endifnotequal %}
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    44
    {% endif %}
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    45
    
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    46
    {% if user.task_assigned_users.count %}
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    47
        <br>You are currently <a href='/user/assigned/'>working</a> on {{ user.task_assigned_users.count }}
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    48
        {% ifnotequal user.task_assigned_users.count 1 %}
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    49
        tasks!
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    50
        {% else %}
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    51
        task!
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    52
        {% endifnotequal %}
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    53
    {% endif %}
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    54
    
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    55
    {% if user.task_mentors.count %}
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    56
        <br><a href="/user/mentor/">Mentoring</a> {{ user.task_mentors.count }}
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    57
        {% ifnotequal user.task_mentors.count 1 %}
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    58
        tasks!
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    59
        {% endifnotequal %}
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    60
        task!
3699550991c6 changed the homepage view as well as index.html.
anoop
parents: 70
diff changeset
    61
    {% endif %}
12
a93eebabfeb1 created forms, views, templates, actions for home_page, browse_task.
nishanth
parents:
diff changeset
    62
{% endblock %}