Added configurable text for organizer page (#494)

This commit is contained in:
scabux
2017-05-17 15:53:30 +02:00
committed by Raphael Michel
parent 396c558b25
commit b5a2123d1c
5 changed files with 26 additions and 0 deletions

View File

@@ -56,6 +56,7 @@ def contextprocessor(request):
if hasattr(request, 'organizer'):
ctx['organizer_logo'] = request.organizer.settings.get('organizer_logo_image', as_type=str, default='')[7:]
ctx['organizer_homepage_text'] = request.organizer.settings.get('organizer_homepage_text', as_type=LazyI18nString)
ctx['organizer'] = request.organizer
ctx['html_head'] = "".join(_html_head)

View File

@@ -1,8 +1,14 @@
{% extends "pretixpresale/organizers/base.html" %}
{% load i18n %}
{% load rich_text %}
{% load eventurl %}
{% block title %}{% trans "Event list" %}{% endblock %}
{% block content %}
<div>
{% if organizer_homepage_text %}
{{ organizer_homepage_text | rich_text }}
{% endif %}
</div>
{% if "old" in request.GET %}
<h3>Past events</h3>
<p>