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
4
AUTHORS
4
AUTHORS
@@ -1,12 +1,13 @@
|
|||||||
Here is an inevitably incomplete list of much-appreciated contributors --
|
Here is an inevitably incomplete list of much-appreciated contributors --
|
||||||
people who have submitted patches, reported bugs, added translations, helped
|
people who have submitted patches, reported bugs, added translations, helped
|
||||||
answer newbie questions, improved the documentation, and generally made pretix
|
answer newbie questions, improved the documentation, and generally made pretix
|
||||||
an awesome project. Thank you all!
|
an awesome project. Thank you all!
|
||||||
|
|
||||||
Alexander Brock <Brock.Alexander@web.de>
|
Alexander Brock <Brock.Alexander@web.de>
|
||||||
Ben Oswald
|
Ben Oswald
|
||||||
Christian Franke <nobody@nowhere.ws>
|
Christian Franke <nobody@nowhere.ws>
|
||||||
informancer <informancer@web.de>
|
informancer <informancer@web.de>
|
||||||
|
Flavia Bastos
|
||||||
Jason Estibeiro <jasonestibeiro@live.com>
|
Jason Estibeiro <jasonestibeiro@live.com>
|
||||||
Jan Weiß
|
Jan Weiß
|
||||||
Jonas Große Sundrup <cherti@letopolis.de>
|
Jonas Große Sundrup <cherti@letopolis.de>
|
||||||
@@ -16,4 +17,3 @@ an awesome project. Thank you all!
|
|||||||
Team MRMCD
|
Team MRMCD
|
||||||
Tobias Kunze <rixx@cutebit.de>
|
Tobias Kunze <rixx@cutebit.de>
|
||||||
Oliver Knapp <github@oliverknapp.de>
|
Oliver Knapp <github@oliverknapp.de>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,9 @@
|
|||||||
{% extends "pretixpresale/event/base.html" %}
|
{% extends "pretixpresale/event/base.html" %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
{% load l10n %}
|
||||||
{% load eventurl %}
|
{% load eventurl %}
|
||||||
{% load thumbnail %}
|
{% load thumbnail %}
|
||||||
|
{% load markup_tags %}
|
||||||
{% block title %}{% trans "Presale" %}{% endblock %}
|
{% block title %}{% trans "Presale" %}{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
@@ -62,7 +64,7 @@
|
|||||||
{% if tup.0 %}
|
{% if tup.0 %}
|
||||||
<h3>{{ tup.0.name }}</h3>
|
<h3>{{ tup.0.name }}</h3>
|
||||||
{% if tup.0.description %}
|
{% if tup.0.description %}
|
||||||
<p>{{ tup.0.description }}</p>
|
<p>{{ tup.0.description|localize|apply_markup:"markdown" }}</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% for item in tup.1 %}
|
{% for item in tup.1 %}
|
||||||
@@ -81,7 +83,8 @@
|
|||||||
<a href="#" data-toggle="variations">
|
<a href="#" data-toggle="variations">
|
||||||
<strong>{{ item.name }}</strong>
|
<strong>{{ item.name }}</strong>
|
||||||
</a>
|
</a>
|
||||||
{% if item.description %}<p>{{ item.description }}</p>{% endif %}
|
{% if item.description %}<p>{{ item.description|localize|apply_markup:"markdown" }}</p>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-2 col-xs-6 price">
|
<div class="col-md-2 col-xs-6 price">
|
||||||
{% if item.min_price != item.max_price or item.free_price %}
|
{% if item.min_price != item.max_price or item.free_price %}
|
||||||
@@ -154,7 +157,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
<strong>{{ item.name }}</strong>
|
<strong>{{ item.name }}</strong>
|
||||||
{% if item.description %}
|
{% 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 %}
|
{% if event.settings.show_quota_left %}
|
||||||
{% include "pretixpresale/event/fragment_quota_left.html" with avail=item.cached_availability %}
|
{% include "pretixpresale/event/fragment_quota_left.html" with avail=item.cached_availability %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
@@ -1,8 +1,10 @@
|
|||||||
{% extends "pretixpresale/event/base.html" %}
|
{% extends "pretixpresale/event/base.html" %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
{% load l10n %}
|
||||||
{% load eventurl %}
|
{% load eventurl %}
|
||||||
{% load eventsignal %}
|
{% load eventsignal %}
|
||||||
{% load thumbnail %}
|
{% load thumbnail %}
|
||||||
|
{% load markup_tags %}
|
||||||
{% block title %}{% trans "Voucher redemption" %}{% endblock %}
|
{% block title %}{% trans "Voucher redemption" %}{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
@@ -34,7 +36,7 @@
|
|||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<strong>{{ item.name }}</strong>
|
<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>
|
||||||
<div class="col-md-2 col-xs-6 price">
|
<div class="col-md-2 col-xs-6 price">
|
||||||
{% if item.min_price != item.max_price or item.free_price %}
|
{% if item.min_price != item.max_price or item.free_price %}
|
||||||
@@ -103,7 +105,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
<strong>{{ item.name }}</strong>
|
<strong>{{ item.name }}</strong>
|
||||||
{% if item.description %}
|
{% if item.description %}
|
||||||
<p class="description">{{ item.description }}</p>{% endif %}
|
<p class="description">{{ item.description|localize|apply_markup:"markdown" }}</p>{% endif %}
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-2 col-xs-6 price">
|
<div class="col-md-2 col-xs-6 price">
|
||||||
{% if item.free_price %}
|
{% if item.free_price %}
|
||||||
|
|||||||
@@ -172,7 +172,8 @@ INSTALLED_APPS = [
|
|||||||
'pretix.plugins.reports',
|
'pretix.plugins.reports',
|
||||||
'pretix.plugins.checkinlists',
|
'pretix.plugins.checkinlists',
|
||||||
'pretix.plugins.pretixdroid',
|
'pretix.plugins.pretixdroid',
|
||||||
'easy_thumbnails'
|
'easy_thumbnails',
|
||||||
|
'django_markup',
|
||||||
]
|
]
|
||||||
|
|
||||||
for entry_point in iter_entry_points(group='pretix.plugin', name=None):
|
for entry_point in iter_entry_points(group='pretix.plugin', name=None):
|
||||||
|
|||||||
@@ -19,3 +19,5 @@ lxml
|
|||||||
static3==0.6.1
|
static3==0.6.1
|
||||||
dj-static
|
dj-static
|
||||||
csscompressor
|
csscompressor
|
||||||
|
django-markup
|
||||||
|
markdown
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ setup(
|
|||||||
'easy-thumbnails>=2.2,<3'
|
'easy-thumbnails>=2.2,<3'
|
||||||
'PyPDF2', 'BeautifulSoup4', 'html5lib',
|
'PyPDF2', 'BeautifulSoup4', 'html5lib',
|
||||||
'slimit', 'lxml', 'static3==0.6.1', 'dj-static', 'chardet',
|
'slimit', 'lxml', 'static3==0.6.1', 'dj-static', 'chardet',
|
||||||
'csscompressor', 'defusedxml', 'mt-940'
|
'csscompressor', 'defusedxml', 'mt-940', 'django-markup', 'markdown'
|
||||||
],
|
],
|
||||||
extras_require={
|
extras_require={
|
||||||
'dev': ['django-debug-toolbar>=1.3.0,<2.0'],
|
'dev': ['django-debug-toolbar>=1.3.0,<2.0'],
|
||||||
|
|||||||
Reference in New Issue
Block a user