add start / end times for child events

This commit is contained in:
Sanjay B 2013-04-15 15:57:09 +05:30
parent a8e7944dc5
commit 0c48ecaded

View File

@ -55,6 +55,17 @@ $(function() {
{% for event in child_events %}
<div>
<a href="{{ event.get_absolute_url }}">{{ event.title }}</a>
<div><strong>Start date:</strong> {{ event.start_date|date:"jS M, Y" }}</div>
{% if event.start_time %}
<div><strong>Start time:</strong> {{ event.start_time|time:"P" }}</div>
{% endif %}
{% if event.end_date %}
<div><strong>End date:</strong> {{ event.end_date|date:"jS M, Y" }}</div>
{% endif %}
{% if event.end_time %}
<div><strong>End time:</strong> {{ event.end_time|time:"P" }}</div>
{% endif %}
</div>
{% endfor %}