Skip to content

Commit 2ac2556

Browse files
committed
In form reviews and organizer backend fix links to show actual link
1 parent f172468 commit 2ac2556

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/pretix/control/templates/pretixcontrol/items/questions.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{% extends "pretixcontrol/items/base.html" %}
22
{% load i18n %}
3+
{% load rich_text %}
34
{% block title %}{% trans "Questions" %}{% endblock %}
45
{% block inside %}
56
<nav id="event-nav" class="header-nav">
@@ -49,7 +50,7 @@ <h1>{% trans "Questions" %}</h1>
4950
<a href="{% url "control:event.items.questions.show" organizer=request.event.organizer.slug event=request.event.slug question=q.id %}">
5051
{% endif %}
5152
{% endif %}
52-
{{ q.question }}
53+
{{ q.question|rich_text_snippet }}
5354
{% if q.pk %}
5455
</a>
5556
{% endif %}

src/pretix/presale/templates/pretixpresale/event/fragment_cart.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
{% endif %}
9696
{% for q in line.questions %}
9797
{% if q.type != "DES" %}
98-
<dt>{{ q.question }}</dt>
98+
<dt>{{ q.question|rich_text_snippet }}</dt>
9999
<dd>
100100
{% if q.answer %}
101101
{% if q.answer.file %}
@@ -115,7 +115,7 @@
115115
{% endif %}
116116
{% endfor %}
117117
{% for q in line.additional_answers %}
118-
<dt>{{ q.question }}</dt>
118+
<dt>{{ q.question|rich_text_snippet }}</dt>
119119
<dd>{% if q.answer %}{{ q.answer|linebreaksbr }}{% else %}<em>{% trans "not answered" %}</em>{% endif %}</dd>
120120
{% endfor %}
121121
</dl>

0 commit comments

Comments
 (0)