diff --git a/plinth/templates/service.html b/plinth/templates/service.html index 314955095..45a146689 100644 --- a/plinth/templates/service.html +++ b/plinth/templates/service.html @@ -36,15 +36,21 @@ {% block status %} {% if show_status_block %} -
- {% if service.is_running %} - - Service {{ service.name }} {% trans "is running" %} - {% else %} - - Service {{ service.name }} {% trans "is not running" %} - {% endif %} + {% with service_name=service.name %} + {% if service.is_running %} + + {% blocktrans trimmed %} + Service {{ service_name }} is running. + {% endblocktrans %} + {% else %} + + {% blocktrans trimmed %} + Service {{ service_name }} is not running. + {% endblocktrans %} + {% endif %} + {% endwith %}
{% endif %} {% endblock %} @@ -56,7 +62,7 @@ {% endblock %} {% block configuration %} -