Repos / pytaku / dd3e8baa9b
commit dd3e8baa9b941183371bd13e4677f57b5f438c04
Author: Bùi Thành Nhân <hi@imnhan.com>
Date:   Sat Aug 8 20:23:58 2020 +0700

    hide chapters table when there's no chapter

diff --git a/src/pytaku/templates/title.html b/src/pytaku/templates/title.html
index ce2f380..c18cae2 100644
--- a/src/pytaku/templates/title.html
+++ b/src/pytaku/templates/title.html
@@ -42,6 +42,7 @@ <h1>{{ name }}</h1>
 
 <img class="cover" src="https://mangadex.org/images/manga/{{ id }}.{{ cover_ext }}" alt="cover" />
 
+{% if chapters %}
 <table>
   <tr>
     {% if session['user'] %}<th>Done</th>{% endif %}
@@ -68,4 +69,8 @@ <h1>{{ name }}</h1>
   </tr>
   {% endfor %}
 </table>
+{% else %}
+<p>This one has no chapters.</p>
+{% endif %}
+
 {% endblock %}