Selaa lähdekoodia

changes to book display

joel
Simon Bowie 1 vuosi sitten
vanhempi
commit
ef5a577ff3
2 muutettua tiedostoa jossa 11 lisäystä ja 23 poistoa
  1. +0
    -1
      web/app/templates/base.html
  2. +11
    -22
      web/app/templates/book.html

+ 0
- 1
web/app/templates/base.html Näytä tiedosto

@@ -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 Näytä tiedosto

@@ -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>

Loading…
Peruuta
Tallenna