From 3430bd23925e519f6e7854f18f2ef3d32b3cf4df Mon Sep 17 00:00:00 2001 From: Kiril Kovachev Date: Wed, 16 Oct 2024 16:08:01 +0100 Subject: [PATCH] Wrap kanji entry in a Japanese-language div to ensure correct formatting --- kanken_online/templates/kanji.html | 54 ++++++++++++++++-------------- 1 file changed, 28 insertions(+), 26 deletions(-) diff --git a/kanken_online/templates/kanji.html b/kanken_online/templates/kanji.html index c3a18a7..be19344 100644 --- a/kanken_online/templates/kanji.html +++ b/kanken_online/templates/kanji.html @@ -11,34 +11,36 @@ {% endblock %} {% block content %} -
-
-
- {{ kanji.character }} +
+
+
+
+ {{ kanji.character }} +
+
+ {{ kanji.is_joyo }} + {{ kanji.level }}級 + {{ kanji.strokes }} ({{ kanji.radical }} + {{ kanji.added_strokes }}) +
-
- {{ kanji.is_joyo }} - {{ kanji.level }}級 - {{ kanji.strokes }} ({{ kanji.radical }} + {{ kanji.added_strokes }}) +
+

{{ kanji.meanings }}

-
-

{{ kanji.meanings }}

+
+
+
    + {% if kanji.goon %}
    • {% for reading in kanji.goon %}
    • {{reading|safe}}
    • {% endfor %}
  • {% endif %} + {% if kanji.kanon %}
    • {% for reading in kanji.kanon %}
    • {{reading|safe}}
    • {% endfor %}
  • {% endif %} + {% if kanji.kanyoon %}
    • {% for reading in kanji.kanyoon %}
    • {{reading|safe}}
    • {% endfor %}
  • {% endif %} + {% if kanji.toon %}
    • {% for reading in kanji.toon %}
    • {{reading|safe}}
    • {% endfor %}
  • {% endif %} + {% if kanji.soon %}
    • {% for reading in kanji.soon %}
    • {{reading|safe}}
    • {% endfor %}
  • {% endif %} + {% if kanji.kun %}
    • {% for reading in kanji.kun %}
    • {{reading|safe}}
    • {% endfor %}
  • {% endif %} +
+
+
+

{{ kanji.glyph_origin }}

+
+ {% endblock %}
-
-
-
    - {% if kanji.goon %}
    • {% for reading in kanji.goon %}
    • {{reading|safe}}
    • {% endfor %}
  • {% endif %} - {% if kanji.kanon %}
    • {% for reading in kanji.kanon %}
    • {{reading|safe}}
    • {% endfor %}
  • {% endif %} - {% if kanji.kanyoon %}
    • {% for reading in kanji.kanyoon %}
    • {{reading|safe}}
    • {% endfor %}
  • {% endif %} - {% if kanji.toon %}
    • {% for reading in kanji.toon %}
    • {{reading|safe}}
    • {% endfor %}
  • {% endif %} - {% if kanji.soon %}
    • {% for reading in kanji.soon %}
    • {{reading|safe}}
    • {% endfor %}
  • {% endif %} - {% if kanji.kun %}
    • {% for reading in kanji.kun %}
    • {{reading|safe}}
    • {% endfor %}
  • {% endif %} -
-
-
-

{{ kanji.glyph_origin }}

-
-
-{% endblock %} \ No newline at end of file