pytask/templates/task/browse_textbooks.html
author Madhusudan.C.S <madhusudancs@gmail.com>
Thu, 20 Jan 2011 07:17:14 +0530
changeset 495 773e886d9b80
parent 435 1217d808d70f
child 497 6386458d749b
permissions -rw-r--r--
Textbooks list page should list all the tasks tagged with textbooks.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
431
fcc87a3f0311 Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 417
diff changeset
     1
{% extends "base.html" %}
fcc87a3f0311 Huh, please don't tell me I will have to refactor so much code again.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 417
diff changeset
     2
372
563fe356947d created browse textbooks page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
     3
{% block content %}
495
773e886d9b80 Textbooks list page should list all the tasks tagged with textbooks.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 435
diff changeset
     4
  {% if open_textbooks %}
773e886d9b80 Textbooks list page should list all the tasks tagged with textbooks.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 435
diff changeset
     5
    Textbooks that are open for contribution
773e886d9b80 Textbooks list page should list all the tasks tagged with textbooks.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 435
diff changeset
     6
    <ul>
773e886d9b80 Textbooks list page should list all the tasks tagged with textbooks.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 435
diff changeset
     7
      {% for textbook in open_textbooks %}
773e886d9b80 Textbooks list page should list all the tasks tagged with textbooks.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 435
diff changeset
     8
        <li>
773e886d9b80 Textbooks list page should list all the tasks tagged with textbooks.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 435
diff changeset
     9
          <a href="{% url view_textbook textbook.id %}">
773e886d9b80 Textbooks list page should list all the tasks tagged with textbooks.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 435
diff changeset
    10
            {{ textbook.title }}
773e886d9b80 Textbooks list page should list all the tasks tagged with textbooks.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 435
diff changeset
    11
          </a>
773e886d9b80 Textbooks list page should list all the tasks tagged with textbooks.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 435
diff changeset
    12
        </li>
773e886d9b80 Textbooks list page should list all the tasks tagged with textbooks.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 435
diff changeset
    13
      {% endfor %}
773e886d9b80 Textbooks list page should list all the tasks tagged with textbooks.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 435
diff changeset
    14
    </ul>
773e886d9b80 Textbooks list page should list all the tasks tagged with textbooks.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 435
diff changeset
    15
    <br />
773e886d9b80 Textbooks list page should list all the tasks tagged with textbooks.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 435
diff changeset
    16
  {% endif %}
773e886d9b80 Textbooks list page should list all the tasks tagged with textbooks.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 435
diff changeset
    17
773e886d9b80 Textbooks list page should list all the tasks tagged with textbooks.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 435
diff changeset
    18
773e886d9b80 Textbooks list page should list all the tasks tagged with textbooks.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 435
diff changeset
    19
773e886d9b80 Textbooks list page should list all the tasks tagged with textbooks.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 435
diff changeset
    20
773e886d9b80 Textbooks list page should list all the tasks tagged with textbooks.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 435
diff changeset
    21
773e886d9b80 Textbooks list page should list all the tasks tagged with textbooks.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 435
diff changeset
    22
  <!-- TO BE REFORMATTED LATER. JUST PUSHING IT DOWN. -->
773e886d9b80 Textbooks list page should list all the tasks tagged with textbooks.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 435
diff changeset
    23
  {% comment %}
773e886d9b80 Textbooks list page should list all the tasks tagged with textbooks.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 435
diff changeset
    24
435
1217d808d70f Use the new forms tags and fix the styling.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 431
diff changeset
    25
  {% if comp_textbooks %}
1217d808d70f Use the new forms tags and fix the styling.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 431
diff changeset
    26
    Textbooks that were completed recently
1217d808d70f Use the new forms tags and fix the styling.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 431
diff changeset
    27
    <ul>
1217d808d70f Use the new forms tags and fix the styling.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 431
diff changeset
    28
      {% for textbook in comp_textbooks %}
1217d808d70f Use the new forms tags and fix the styling.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 431
diff changeset
    29
        <li>
1217d808d70f Use the new forms tags and fix the styling.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 431
diff changeset
    30
          <a href="{% url view_textbook textbook.id %}">
1217d808d70f Use the new forms tags and fix the styling.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 431
diff changeset
    31
            {{ textbook.name }}
1217d808d70f Use the new forms tags and fix the styling.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 431
diff changeset
    32
          </a>
1217d808d70f Use the new forms tags and fix the styling.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 431
diff changeset
    33
        </li>
1217d808d70f Use the new forms tags and fix the styling.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 431
diff changeset
    34
      {% endfor %}
372
563fe356947d created browse textbooks page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    35
    </ul>
563fe356947d created browse textbooks page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    36
    <br />
435
1217d808d70f Use the new forms tags and fix the styling.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 431
diff changeset
    37
  {% endif %}
372
563fe356947d created browse textbooks page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    38
435
1217d808d70f Use the new forms tags and fix the styling.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 431
diff changeset
    39
  {% if open_textbooks %}
1217d808d70f Use the new forms tags and fix the styling.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 431
diff changeset
    40
    Textbooks that are open for contribution
1217d808d70f Use the new forms tags and fix the styling.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 431
diff changeset
    41
    <ul>
1217d808d70f Use the new forms tags and fix the styling.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 431
diff changeset
    42
      {% for textbook in open_textbooks %}
1217d808d70f Use the new forms tags and fix the styling.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 431
diff changeset
    43
        <li>
1217d808d70f Use the new forms tags and fix the styling.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 431
diff changeset
    44
          <a href="{% url view_textbook textbook.id %}">
495
773e886d9b80 Textbooks list page should list all the tasks tagged with textbooks.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 435
diff changeset
    45
            {{ textbook.title }}
435
1217d808d70f Use the new forms tags and fix the styling.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 431
diff changeset
    46
          </a>
1217d808d70f Use the new forms tags and fix the styling.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 431
diff changeset
    47
        </li>
1217d808d70f Use the new forms tags and fix the styling.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 431
diff changeset
    48
      {% endfor %}
372
563fe356947d created browse textbooks page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    49
    </ul>
563fe356947d created browse textbooks page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    50
    <br />
435
1217d808d70f Use the new forms tags and fix the styling.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 431
diff changeset
    51
  {% endif %}
372
563fe356947d created browse textbooks page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    52
435
1217d808d70f Use the new forms tags and fix the styling.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 431
diff changeset
    53
  {% if unpub_textbooks %}
1217d808d70f Use the new forms tags and fix the styling.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 431
diff changeset
    54
    Textbooks that need approval
1217d808d70f Use the new forms tags and fix the styling.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 431
diff changeset
    55
    <ul>
1217d808d70f Use the new forms tags and fix the styling.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 431
diff changeset
    56
      {% for textbook in unpub_textbooks %}
1217d808d70f Use the new forms tags and fix the styling.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 431
diff changeset
    57
        <li>
1217d808d70f Use the new forms tags and fix the styling.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 431
diff changeset
    58
          <a href="{% url view_textbook textbook.id %}">
1217d808d70f Use the new forms tags and fix the styling.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 431
diff changeset
    59
            {{ textbook.name }}
1217d808d70f Use the new forms tags and fix the styling.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 431
diff changeset
    60
          </a>
1217d808d70f Use the new forms tags and fix the styling.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 431
diff changeset
    61
        </li>
1217d808d70f Use the new forms tags and fix the styling.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 431
diff changeset
    62
      {% endfor %}
372
563fe356947d created browse textbooks page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    63
    </ul>
435
1217d808d70f Use the new forms tags and fix the styling.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 431
diff changeset
    64
  <br />
1217d808d70f Use the new forms tags and fix the styling.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 431
diff changeset
    65
  {% endif %}
495
773e886d9b80 Textbooks list page should list all the tasks tagged with textbooks.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 435
diff changeset
    66
  {% endcomment %}
435
1217d808d70f Use the new forms tags and fix the styling.
Madhusudan.C.S <madhusudancs@gmail.com>
parents: 431
diff changeset
    67
372
563fe356947d created browse textbooks page
Nishanth Amuluru <nishanth@fossee.in>
parents:
diff changeset
    68
{% endblock %}