Skip to content
Snippets Groups Projects
Commit 03f297fb authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Improve rendering of plural names (issue #212) | Some design improves [TIMETABLE: Hints]

parent 1ffe1f33
No related branches found
No related tags found
1 merge request!86Merge school-apps
......@@ -39,9 +39,9 @@
{% endif %}
{{ hints_b|length }}
{% if hints %}
weitere(n)
weitere{{ hints_b|pluralize:"n," }}
{% endif %}
Hinweis(e).
Hinweis{{ hints_b|pluralize:"e" }}.
<i class="material-icons right collapsible-trigger"></i>
</div>
</div>
......@@ -50,12 +50,10 @@
{% if not hint.teachers %}
<div>
<strong>
{{ hint.classes.all|join:", " }},
{{ hint.classes_formatted }},
</strong>
{{ hint.from_date|date:"D, d.m." }},
{% if hint.from_date != hint.to_date %}
bis {{ hint.to_date|date:"D, d.m." }}
{% endif %}:
{{ hint.from_date|date:"D, d.m." }}{% if hint.from_date != hint.to_date %}, bis
{{ hint.to_date|date:"D, d.m." }}{% endif %}:
{{ hint.text|safe_markdown }}
</div>
{% endif %}
......
......@@ -4,7 +4,8 @@
<li>
<div class="collapsible-header " style="font-size: 16px;">
<div class="col s12">
<i class="material-icons left">announcement</i>Es gibt {{ hints|length }} Hinweis(e) für diesen Tag.
<i class="material-icons left">announcement</i>Es gibt {{ hints|length }}
Hinweis{{ hints|pluralize:"e" }} für diesen Tag.
<i class="material-icons right collapsible-trigger"></i>
</div>
</div>
......@@ -12,7 +13,7 @@
{% for hint in hints %}
<div>
<strong>
{{ hint.classes.all|join:", " }}{% if hint.teachers and hint.classes.all %},{% endif %}
{{ hint.classes_formatted }}{% if hint.teachers and hint.classes.all %},{% endif %}
</strong>
{% if hint.teachers %}
<span class="badge new green no-float no-margin">Lehrkräfte</span>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment