From e6be4107f54122055840d24d1a2ee0088af262f8 Mon Sep 17 00:00:00 2001 From: Kiril Kovachev Date: Wed, 16 Oct 2024 15:21:16 +0100 Subject: [PATCH] Do not show kanji reading types where no readings of that type exist --- kanken_online/templates/kanji.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/kanken_online/templates/kanji.html b/kanken_online/templates/kanji.html index e07f35a..de90383 100644 --- a/kanken_online/templates/kanji.html +++ b/kanken_online/templates/kanji.html @@ -29,12 +29,12 @@
    -
    • {% for reading in kanji.goon %}
    • {{reading}}
    • {% endfor %}
  • -
    • {% for reading in kanji.kanon %}
    • {{reading}}
    • {% endfor %}
  • -
    • {% for reading in kanji.kanyoon %}
    • {{reading}}
    • {% endfor %}
  • -
    • {% for reading in kanji.toon %}
    • {{reading}}
    • {% endfor %}
  • -
    • {% for reading in kanji.soon %}
    • {{reading}}
    • {% endfor %}
  • -
    • {% for reading in kanji.kun %}
    • {{reading}}
    • {% endfor %}
  • + {% if kanji.goon %}
    • {% for reading in kanji.goon %}
    • {{reading}}
    • {% endfor %}
  • {% endif %} + {% if kanji.kanon %}
    • {% for reading in kanji.kanon %}
    • {{reading}}
    • {% endfor %}
  • {% endif %} + {% if kanji.kanyoon %}
    • {% for reading in kanji.kanyoon %}
    • {{reading}}
    • {% endfor %}
  • {% endif %} + {% if kanji.toon %}
    • {% for reading in kanji.toon %}
    • {{reading}}
    • {% endfor %}
  • {% endif %} + {% if kanji.soon %}
    • {% for reading in kanji.soon %}
    • {{reading}}
    • {% endfor %}
  • {% endif %} + {% if kanji.kun %}
    • {% for reading in kanji.kun %}
    • {{reading}}
    • {% endfor %}
  • {% endif %}