Repos / pytaku / 02ad0c32bd
commit 02ad0c32bdc8caf338108d2b745c2f617d379d24
Author: Bùi Thành Nhân <hi@imnhan.com>
Date: Fri Aug 7 22:34:47 2020 +0700
more compact empty titles
diff --git a/src/pytaku/templates/follows.html b/src/pytaku/templates/follows.html
index e166017..a3ccba1 100644
--- a/src/pytaku/templates/follows.html
+++ b/src/pytaku/templates/follows.html
@@ -13,6 +13,12 @@
margin-bottom: var(--body-padding);
background-color: #efefef;
}
+.title.empty {
+ display: inline-flex;
+}
+.title.empty .chapters {
+ display: none;
+}
.cover {
border: 1px solid #777;
@@ -59,7 +65,7 @@
{% for title in titles %}
{% set title_url = url_for('title_view', site=title['site'], title_id=title['id']) %}
-<div class="title">
+<div class="title {% if title['chapters']|length == 0 %}empty{% endif %}">
<div>
<a href="{{ title_url }}">
<img class="cover"
diff --git a/src/pytaku/templates/title.html b/src/pytaku/templates/title.html
index 061a70a..c5ecc47 100644
--- a/src/pytaku/templates/title.html
+++ b/src/pytaku/templates/title.html
@@ -44,7 +44,7 @@ <h1>{{ name }}</h1>
<table>
<tr>
- <th>Finished?</th>
+ <th>Done</th>
<th>Name</th>
<th>Group</th>
</tr>