-{% else %} - {% autopaginate object_list %} +{% else %} + {% autopaginate object_list %}
diff --git a/apps/common/templates/calculate_form_title.html b/apps/common/templates/calculate_form_title.html index 2994f1d338..adaec981d3 100644 --- a/apps/common/templates/calculate_form_title.html +++ b/apps/common/templates/calculate_form_title.html @@ -1,10 +1,6 @@ {% load i18n %} {% if title %} - {% if striptags %} - {{ title|capfirst|striptags }} - {% else %} - {{ title|capfirst|safe }} - {% endif %} + {{ title|capfirst }} {% else %} {% if read_only %} {% if object_name %} @@ -15,9 +11,9 @@ {% else %} {% if object %} {% if object_name %} - {% blocktrans %}Edit {{ object_name }}:{% endblocktrans %} {% if not striptags %}{% endif %}{{ object|capfirst }}{% if not striptags %}{% endif %} + {% blocktrans with object as object and object_name as object_name %}Edit {{ object_name }}: {{ object }}{% endblocktrans %} {% else %} - {% trans "Edit" %}: {% if not striptags %}{% endif %}{{ object|capfirst }}{% if not striptags %}{% endif %} + {% blocktrans with object as object %}Edit: {{ object }}{% endblocktrans %} {% endif %} {% else %} {% if object_name %} @@ -25,6 +21,6 @@ {% else %} {% trans "Create" %} {% endif %} - {% endif %} + {% endif %} {% endif %} {% endif %} diff --git a/apps/common/templates/generic_detail.html b/apps/common/templates/generic_detail.html index c5cc9789e8..e7f0dac78a 100644 --- a/apps/common/templates/generic_detail.html +++ b/apps/common/templates/generic_detail.html @@ -2,15 +2,15 @@ {% load i18n %} {% load subtemplates_tags %} -{% block title %} :: {% with "true" as read_only %}{% with "true" as striptags %}{% include "calculate_form_title.html" %}{% endwith %}{% endwith %}{% endblock %} +{% block title %} :: {% with "true" as read_only %}{% include "calculate_form_title.html" %}{% endwith %}{% endblock %} {% block sidebar %} {% for subtemplate in sidebar_subtemplates %}
-{% else %} - {% autopaginate object_list %} +{% else %} + {% autopaginate object_list %}