Merge pull request 'Language for Assemblies' (#31) from assemblies-lang into main

Reviewed-on: 0x2620/aab21#31
This commit is contained in:
sanj 2021-10-28 11:16:04 +00:00
commit 01c247fd42
7 changed files with 68 additions and 9 deletions

23
app/templates/texts.html Normal file → Executable file
View file

@ -3,10 +3,23 @@
{% block main %}
<div class="texts">
{% for text in texts %}
<div class="text">
<h1><a href="{{ text.get_absolute_url }}">{{ text.title | safe }}</a></h1>
<h2>{{ text.byline|striptags }}</h2>
<div class="assemblies">
<div class="col">
{% for text in en_texts %}
<div class="text en">
<h1><a href="{{ text.get_absolute_url }}">{{ text.title | safe }}</a></h1>
<h2>{{ text.byline|striptags }}</h2>
</div>
{% endfor %}
</div>
<div class="col">
{% for text in zh_texts %}
<div class="text zh">
<h1><a href="{{ text.get_absolute_url }}">{{ text.title | safe }}</a></h1>
<h2>{{ text.byline|striptags }}</h2>
</div>
{% endfor %}
</div>
</div>
{% endfor %}
</div>
{% endblock %}