pytask/templates/task/browse_textbooks.html
author Madhusudan.C.S <madhusudancs@gmail.com>
Thu, 20 Jan 2011 07:56:21 +0530
changeset 497 6386458d749b
parent 495 773e886d9b80
child 546 6393b77c3c68
permissions -rw-r--r--
List each department textbooks separately for now, think of a clever way later.

{% extends "base.html" %}


{% load browse_helpers %}


{% block content %}
  {% if aero_textbooks %}
    {% as_list_textbooks aero_textbooks "Aerospace Engineering" %}
  {% endif %}

  {% if chemical_textbooks %}
    {% as_list_textbooks chemical_textbooks "Chemical Engineering" %}
  {% endif %}

  {% if computerscience_textbooks %}
    {% as_list_textbooks computerscience_textbooks "Computer Science and Engineering" %}
  {% endif %}

  {% if electrical_textbooks %}
    {% as_list_textbooks electrical_textbooks "Electrical Engineering" %}
  {% endif %}

  {% if engineeringphysics_textbooks %}
    {% as_list_textbooks engineeringphysics_textbooks "Engineering Physics Engineering" %}
  {% endif %}

  {% if mechanical_textbooks %}
    {% as_list_textbooks mechanical_textbooks "Mechanical Engineering" %}
  {% endif %}

  {% if metallurgical_textbooks %}
    {% as_list_textbooks metallurgical_textbooks "Metallurgical Engineering and Materials Science" %}
  {% endif %}





  <!-- TO BE REFORMATTED LATER. JUST PUSHING IT DOWN. -->
  {% comment %}

  {% if comp_textbooks %}
    Textbooks that were completed recently
    <ul>
      {% for textbook in comp_textbooks %}
        <li>
          <a href="{% url view_textbook textbook.id %}">
            {{ textbook.name }}
          </a>
        </li>
      {% endfor %}
    </ul>
    <br />
  {% endif %}

  {% if open_textbooks %}
    Textbooks that are open for contribution
    <ul>
      {% for textbook in open_textbooks %}
        <li>
          <a href="{% url view_textbook textbook.id %}">
            {{ textbook.title }}
          </a>
        </li>
      {% endfor %}
    </ul>
    <br />
  {% endif %}

  {% if unpub_textbooks %}
    Textbooks that need approval
    <ul>
      {% for textbook in unpub_textbooks %}
        <li>
          <a href="{% url view_textbook textbook.id %}">
            {{ textbook.name }}
          </a>
        </li>
      {% endfor %}
    </ul>
  <br />
  {% endif %}
  {% endcomment %}

{% endblock %}