Better integration of wiki pages on clubs

This commit is contained in:
klmp200 committed 2017-10-06 11:09:31 +02:00
1 parent 2c1cf2d7af
commit baa7be69e4
13 files changed
+203 -52

No files matched your search

+4 -4
View File
@@ -6,10 +6,10 @@
{% if club.logo %}
<div class="club_logo"><img src="{{ club.logo.url }}" alt="{{ club.unix_name }}"></div>
{% endif %}
{% if club.page and club.page.revisions.exists() %}
{{ club.page.revisions.last().content|markdown }}
{% else %}
<h3>{% trans %}Club{% endtrans %}</h3>
{% if page_revision %}
{{ page_revision|markdown }}
{% else %}
<h3>{% trans %}Club{% endtrans %}</h3>
{% endif %}
</div>
{% endblock %}