equal
deleted
inserted
replaced
1 {% extends "base.html" %} |
1 {% extends "base.html" %} |
2 |
2 |
|
3 |
|
4 {% load browse_helpers %} |
|
5 |
|
6 |
3 {% block content %} |
7 {% block content %} |
4 {% if open_textbooks %} |
8 {% if aero_textbooks %} |
5 Textbooks that are open for contribution |
9 {% as_list_textbooks aero_textbooks "Aerospace Engineering" %} |
6 <ul> |
10 {% endif %} |
7 {% for textbook in open_textbooks %} |
11 |
8 <li> |
12 {% if chemical_textbooks %} |
9 <a href="{% url view_textbook textbook.id %}"> |
13 {% as_list_textbooks chemical_textbooks "Chemical Engineering" %} |
10 {{ textbook.title }} |
14 {% endif %} |
11 </a> |
15 |
12 </li> |
16 {% if computerscience_textbooks %} |
13 {% endfor %} |
17 {% as_list_textbooks computerscience_textbooks "Computer Science and Engineering" %} |
14 </ul> |
18 {% endif %} |
15 <br /> |
19 |
|
20 {% if electrical_textbooks %} |
|
21 {% as_list_textbooks electrical_textbooks "Electrical Engineering" %} |
|
22 {% endif %} |
|
23 |
|
24 {% if engineeringphysics_textbooks %} |
|
25 {% as_list_textbooks engineeringphysics_textbooks "Engineering Physics Engineering" %} |
|
26 {% endif %} |
|
27 |
|
28 {% if mechanical_textbooks %} |
|
29 {% as_list_textbooks mechanical_textbooks "Mechanical Engineering" %} |
|
30 {% endif %} |
|
31 |
|
32 {% if metallurgical_textbooks %} |
|
33 {% as_list_textbooks metallurgical_textbooks "Metallurgical Engineering and Materials Science" %} |
16 {% endif %} |
34 {% endif %} |
17 |
35 |
18 |
36 |
19 |
37 |
20 |
38 |