Put app strings into a YAML file for easy editing by product owner

This commit is contained in:
George Drummond
2018-12-13 15:02:52 -05:00
parent 8eecb62034
commit f806425d91
35 changed files with 845 additions and 246 deletions

View File

@@ -3,7 +3,7 @@
{% block content %}
{% if event.event_details %}
<br>
<b>Details:</b>
<b>{{ "audit_log.events.default.details" | translate }}</b>
<dl>
{% for key, value in event.event_details.items() %}
{% if value is not none %}
@@ -15,11 +15,13 @@
{% endif %}
{% if event.changed_state %}
<br>
<b>Changes:</b>
<b>{{ "audit_log.events.default.changes" | translate }}</b>
<dl>
{% for key, value in event.changed_state.items() %}
<dt>{{ key }}</dt>
<dd>{{ value[0] }} to {{ value[1] }}</dd>
<dd>
{{ "audit_log.events.default.change" | translate({ "from": value[0], "to": value[1] }) }}
</dd>
{% endfor %}
</dl>
{% endif %}