service: Fix i18n of strings in service template

Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
Sunil Mohan Adapa 2017-04-05 12:17:04 +05:30
parent 8059e6d12c
commit fd3df85ace
No known key found for this signature in database
GPG Key ID: 43EA1CFF0AA7C5F2

View File

@ -36,15 +36,21 @@
{% block status %}
{% if show_status_block %}
<h3>Status</h3>
<h3>{% trans "Status" %}</h3>
<p class="running-status-parent">
{% if service.is_running %}
<span class="running-status active"></span>
Service <i>{{ service.name }}</i> {% trans "is running" %}
{% else %}
<span class="running-status inactive"></span>
Service <i>{{ service.name }}</i> {% trans "is not running" %}
{% endif %}
{% with service_name=service.name %}
{% if service.is_running %}
<span class="running-status active"></span>
{% blocktrans trimmed %}
Service <em>{{ service_name }}</em> is running.
{% endblocktrans %}
{% else %}
<span class="running-status inactive"></span>
{% blocktrans trimmed %}
Service <em>{{ service_name }}</em> is not running.
{% endblocktrans %}
{% endif %}
{% endwith %}
</p>
{% endif %}
{% endblock %}
@ -56,7 +62,7 @@
{% endblock %}
{% block configuration %}
<h3>Configuration</h3>
<h3>{% trans "Configuration" %}</h3>
<form class="form" method="post">
{% csrf_token %}