Przeglądaj źródła

changes to book display

joel
Simon Bowie 1 rok temu
rodzic
commit
ef5a577ff3
2 zmienionych plików z 11 dodań i 23 usunięć
  1. +0
    -1
      web/app/templates/base.html
  2. +11
    -22
      web/app/templates/book.html

+ 0
- 1
web/app/templates/base.html Wyświetl plik

@@ -10,7 +10,6 @@
# Bootstrap 5.1.3: https://getbootstrap.com/
# Flask-Moment: https://flask-moment.readthedocs.io/en/latest/
# Boostrap select: https://stackoverflow.com/questions/67942546/bootstrap-5-select-dropdown-with-the-multiple-attribute-collapsed

-->

<!DOCTYPE html>

+ 11
- 22
web/app/templates/book.html Wyświetl plik

@@ -100,23 +100,12 @@
{% if book['desc'] %}
<tr>
<th>
Summary:
Publisher's description:
</th>
<td>
{{ book['desc'] }}
</td>
</tr>
{% else %}
{% if resource['description'] %}
<tr>
<th>
Summary:
</th>
<td>
{{ resource['description'] }}
</td>
</tr>
{% endif %}
{% endif %}
{% else %}
<!-- fields for books from database -->
@@ -150,16 +139,16 @@
</td>
</tr>
{% endif %}
{% if resource['description'] %}
<tr>
<th>
Summary:
</th>
<td>
{{ resource['description'] }}
</td>
</tr>
{% endif %}
{% endif %}
{% if resource['description'] %}
<tr>
<th>
Experimental aspects:
</th>
<td>
{{ resource['description'] }}
</td>
</tr>
{% endif %}
</tbody>
</table>

Ładowanie…
Anuluj
Zapisz