forked from CGM_Public/pretix_original
Fix #51 -- Allow rich text in product and category descriptions
* Allow rich text in product descriptions #51 * Allow rich text in category descriptions, update requirements to support fix. #51 * Change line break (aesthetic only) #51 * Add markdown to requirements. Update authors file
This commit is contained in:
committed by
Raphael Michel
parent
bd01d6b74a
commit
04ab016d91
@@ -1,7 +1,9 @@
|
||||
{% extends "pretixpresale/event/base.html" %}
|
||||
{% load i18n %}
|
||||
{% load l10n %}
|
||||
{% load eventurl %}
|
||||
{% load thumbnail %}
|
||||
{% load markup_tags %}
|
||||
{% block title %}{% trans "Presale" %}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
@@ -62,7 +64,7 @@
|
||||
{% if tup.0 %}
|
||||
<h3>{{ tup.0.name }}</h3>
|
||||
{% if tup.0.description %}
|
||||
<p>{{ tup.0.description }}</p>
|
||||
<p>{{ tup.0.description|localize|apply_markup:"markdown" }}</p>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% for item in tup.1 %}
|
||||
@@ -81,7 +83,8 @@
|
||||
<a href="#" data-toggle="variations">
|
||||
<strong>{{ item.name }}</strong>
|
||||
</a>
|
||||
{% if item.description %}<p>{{ item.description }}</p>{% endif %}
|
||||
{% if item.description %}<p>{{ item.description|localize|apply_markup:"markdown" }}</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="col-md-2 col-xs-6 price">
|
||||
{% if item.min_price != item.max_price or item.free_price %}
|
||||
@@ -154,7 +157,7 @@
|
||||
{% endif %}
|
||||
<strong>{{ item.name }}</strong>
|
||||
{% if item.description %}
|
||||
<p class="description">{{ item.description }}</p>{% endif %}
|
||||
<p class="description">{{ item.description|localize|apply_markup:"markdown" }}</p>{% endif %}
|
||||
{% if event.settings.show_quota_left %}
|
||||
{% include "pretixpresale/event/fragment_quota_left.html" with avail=item.cached_availability %}
|
||||
{% endif %}
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
{% extends "pretixpresale/event/base.html" %}
|
||||
{% load i18n %}
|
||||
{% load l10n %}
|
||||
{% load eventurl %}
|
||||
{% load eventsignal %}
|
||||
{% load thumbnail %}
|
||||
{% load markup_tags %}
|
||||
{% block title %}{% trans "Voucher redemption" %}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
@@ -34,7 +36,7 @@
|
||||
</a>
|
||||
{% endif %}
|
||||
<strong>{{ item.name }}</strong>
|
||||
{% if item.description %}<p>{{ item.description }}</p>{% endif %}
|
||||
{% if item.description %}<p>{{ item.description|localize|apply_markup:"markdown" }}</p>{% endif %}
|
||||
</div>
|
||||
<div class="col-md-2 col-xs-6 price">
|
||||
{% if item.min_price != item.max_price or item.free_price %}
|
||||
@@ -103,7 +105,7 @@
|
||||
{% endif %}
|
||||
<strong>{{ item.name }}</strong>
|
||||
{% if item.description %}
|
||||
<p class="description">{{ item.description }}</p>{% endif %}
|
||||
<p class="description">{{ item.description|localize|apply_markup:"markdown" }}</p>{% endif %}
|
||||
</div>
|
||||
<div class="col-md-2 col-xs-6 price">
|
||||
{% if item.free_price %}
|
||||
|
||||
@@ -172,7 +172,8 @@ INSTALLED_APPS = [
|
||||
'pretix.plugins.reports',
|
||||
'pretix.plugins.checkinlists',
|
||||
'pretix.plugins.pretixdroid',
|
||||
'easy_thumbnails'
|
||||
'easy_thumbnails',
|
||||
'django_markup',
|
||||
]
|
||||
|
||||
for entry_point in iter_entry_points(group='pretix.plugin', name=None):
|
||||
|
||||
@@ -19,3 +19,5 @@ lxml
|
||||
static3==0.6.1
|
||||
dj-static
|
||||
csscompressor
|
||||
django-markup
|
||||
markdown
|
||||
|
||||
@@ -61,7 +61,7 @@ setup(
|
||||
'easy-thumbnails>=2.2,<3'
|
||||
'PyPDF2', 'BeautifulSoup4', 'html5lib',
|
||||
'slimit', 'lxml', 'static3==0.6.1', 'dj-static', 'chardet',
|
||||
'csscompressor', 'defusedxml', 'mt-940'
|
||||
'csscompressor', 'defusedxml', 'mt-940', 'django-markup', 'markdown'
|
||||
],
|
||||
extras_require={
|
||||
'dev': ['django-debug-toolbar>=1.3.0,<2.0'],
|
||||
|
||||
Reference in New Issue
Block a user