Working dictionary links
This commit is contained in:
parent
bd58b7aecd
commit
25906df967
2 changed files with 43 additions and 27 deletions
|
@ -12,9 +12,15 @@
|
|||
{% for subline in line %}
|
||||
<p>
|
||||
{% for word in subline %}
|
||||
{% if word.dictionary %}
|
||||
<a href="{{ word.dictionary }}" target="_blank"{% if word.pos %} class="{{ word.pos }}"{% endif %}>
|
||||
{% endif %}
|
||||
{% for segment in word.text %}
|
||||
<ruby>{{ segment.kanji }}<rp>(</rp><rt>{{ segment.furigana | safe }}</rt><rp>)</rp></ruby>
|
||||
{% endfor %}
|
||||
{% if word.dictionary %}
|
||||
</a>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</p>
|
||||
{% endfor %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue