summaryrefslogtreecommitdiff
path: root/pytask/templates/task/browse_textbooks.html
blob: 0f229563858cf23c41392ecbbdf83d21cfa3db66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
{% extends "base.html" %}


{% load browse_helpers %}


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

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

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

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

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

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

  {% if metallurgical_textbooks %}
    {% as_list_tasks 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 %}