Use readable/translatable strings for db choices

This commit is contained in:
Mouse Reeve
2021-09-11 14:16:52 -07:00
parent 9d5bfc494f
commit 992e478e95
14 changed files with 970 additions and 250 deletions

View File

@ -29,7 +29,7 @@
</div>
<div class="is-flex">
<dt>{% trans "Status:" %}</dt>
<dd>{{ server.status }}</dd>
<dd>{{ server.get_status_display }}</dd>
</div>
</dl>
</div>

View File

@ -34,7 +34,7 @@
<td><a href="{% url 'settings-federated-server' server.id %}">{{ server.server_name }}</a></td>
<td>{{ server.created_date }}</td>
<td>{{ server.application_type }} ({{ server.application_version }})</td>
<td>{{ server.status }}</td>
<td>{{ server.get_status_display }}</td>
</tr>
{% endfor %}
</table>

View File

@ -27,7 +27,7 @@
<p class="notification is-warning">
{% trans "Inactive" %}
{% if user.deactivation_reason %}
({{ user.deactivation_reason }})
<span class="help">({% trans user.get_deactivation_reason_display %})</span>
{% endif %}
</p>
{% endif %}