Fix HTML mark up in window title. GitLab issue #397.

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2017-07-12 00:55:09 -04:00
parent bbb5c393a6
commit b9994dbf40
8 changed files with 17 additions and 8 deletions

View File

@@ -1,3 +1,7 @@
2.5.3 (2017-07-XX)
==================
- Fix HTML mark up in window title. GitLab issue #397.
2.5.2 (2017-07-08)
==================
- Improve new document creation signal handling.

View File

@@ -5,7 +5,10 @@
{% smart_setting 'APPEARANCE_MAXIMUM_TITLE_LENGTH' as maximum_title_length %}
{# Avoid horizontal scroll on small displays #}
{% if not html_title %}
<span style="word-break: break-all;">
{% endif %}
{% if title %}
{{ title|truncatechars:maximum_title_length }}
{% else %}
@@ -19,4 +22,7 @@
{% endif %}
{% endif %}
{% endif %}
{% if not html_title %}
</span>
{% endif %}

View File

@@ -2,7 +2,7 @@
{% load common_tags %}
{% block title %}{% include 'appearance/calculate_form_title.html' %}{% endblock %}
{% block title %}{% include 'appearance/calculate_form_title.html' with html_title=True %}{% endblock %}
{% block content %}
<h3>{% include 'appearance/calculate_form_title.html' %}</h3>

View File

@@ -4,7 +4,7 @@
{% load navigation_tags %}
{% block title %}{% include 'appearance/calculate_form_title.html' %}{% endblock %}
{% block title %}{% include 'appearance/calculate_form_title.html' with html_title=True %}{% endblock %}
{% block content %}
{% if title %}

View File

@@ -2,7 +2,7 @@
{% load common_tags %}
{% block title %}{% include 'appearance/calculate_form_title.html' %}{% endblock %}
{% block title %}{% include 'appearance/calculate_form_title.html' with html_title=True %}{% endblock %}
{% block content %}
{% if main_title %}

View File

@@ -1,6 +1,5 @@
{% load i18n %}
{% load static %}
<h4>
{% include 'appearance/calculate_form_title.html' %}
</h4>

View File

@@ -2,7 +2,7 @@
{% load i18n %}
{% block title %}{% include 'appearance/calculate_form_title.html' %}{% endblock %}
{% block title %}{% include 'appearance/calculate_form_title.html' with html_title=True %}{% endblock %}
{% block content %}
<h3>{% include 'appearance/calculate_form_title.html' %}</h3>

View File

@@ -4,7 +4,7 @@
{% load navigation_tags %}
{% block title %}{% include 'appearance/calculate_form_title.html' %}{% endblock %}
{% block title %}{% include 'appearance/calculate_form_title.html' with html_title=True %}{% endblock %}
{% block content %}
{% if title %}