From 88c4fa2c87138d9f4707ad7193662953f9de725f Mon Sep 17 00:00:00 2001 From: Weitian LI Date: Tue, 24 Jun 2014 23:09:43 +0800 Subject: Added schedule.html template for app 'schedule'. * added 'schedule.views.ScheduleView' * added 'schedule.html' template, with 'schedule.css' and 'schedule.js' * added 'schedule.urls', updated django_skaschool.urls * added tools/templatetags/dict_utils.py * converted schedule models to south-based * removed original 'page/templates/page/program.html', related urls * updated navbar.html --- schedule/templates/schedule/schedule.html | 93 +++++++++++++++++++++++++++++++ 1 file changed, 93 insertions(+) create mode 100644 schedule/templates/schedule/schedule.html (limited to 'schedule/templates') diff --git a/schedule/templates/schedule/schedule.html b/schedule/templates/schedule/schedule.html new file mode 100644 index 0000000..ee9b9c4 --- /dev/null +++ b/schedule/templates/schedule/schedule.html @@ -0,0 +1,93 @@ +{% extends 'base.html' %} +{% load staticfiles %} +{% load url from future %} +{% load bootstrap3 %} +{% load dict_utils %} +{% load my_markdown %} + +{# program template #} + +{% block pagetitle %}日程{% endblock %} + +{% block css_extra %} + +{% endblock %} + +{% block content %} +
+

2014 SKA 暑期学校日程安排

+
+
+ 会场地址:学术活动中心(上海交通大学闵行校区) +
+ {% if event_empty %} +
+ 日程安排尚未确定,请等待我们的后续通知…… +
+ {% endif %} + + {% for day in day_all %} +
+
+ {{ day }} +
+
+ {% with event_day=event_dict|dictkey:day %} + {% for event in event_day %} +
+
+

{{ event.time_start|time:'H:i' }} – {{ event.time_end|time:'H:i' }}

+
+
+

+ {{ event.title }}
+ {{ event.person }} +

+ {% if event.contents %} +
+
+ + 显示详情 +
+
+ {{ event.contents|my_markdown }} +
+
+ {% endif %} + {% if event.attachments.all %} +
+
+ + 显示附件 +
+
+ {% for attachment in event.attachments.all %} +

{{ attachment.title }} – {{ attachment.description }}

+ {% endfor %} {# attachment #} +
+
+ {% endif %} {# attachments #} +
+
+ {% endfor %} {# event #} + {% endwith %} {# event_day #} +
+
+ {% endfor %} {# day #} + +
+

注:
+ 1. 我们会根据实际情况及时更新日程安排。
+ 2. 上课讲义及其他相关资料会及时上传和更新。 +

+
+

Last updated: {{ updated_at }}

+
+
+{% endblock %} + +{% block js_extra %} + +{% endblock %} + +{# vim: set ts=8 sw=2 tw=0 fenc=utf-8 ft=htmldjango.html: #} -- cgit v1.2.2