Fix #389 -- Add event ical download feature (#413)

* added event ical download feature

* handle event settings and timezone

* add test cases for ical download

* fix failed test case for timezone settings

* using vobject lib to generate ical

* customised UID & add vobject dependency
This commit is contained in:
jlwt90
2017-03-10 05:13:08 +09:00
committed by Raphael Michel
parent c63e69db5f
commit 55953d5b4e
6 changed files with 190 additions and 4 deletions

View File

@@ -68,9 +68,20 @@
{% endif %}
</div>
{% endif %}
{% if frontpage_text %}
{{ frontpage_text|rich_text }}
{% endif %}
<div>
{% if frontpage_text %}
<div class="pull-left">
{{ frontpage_text|rich_text }}
</div>
{% endif %}
<div class="pull-right">
<a href="{% eventurl event "presale:event.ical.download" %}" class="btn btn-link">
<i class="fa fa-calendar"></i> {% trans "Add to Calendar" %}
</a>
</div>
<div class="clearfix"></div>
</div>
{% eventsignal event "pretix.presale.signals.front_page_top" %}
{% if event.presale_is_running or event.settings.show_items_outside_presale_period %}
<form method="post" data-asynctask