From 650b6c5f48bccd2f79e2489ecd9df9157bac421a Mon Sep 17 00:00:00 2001 From: Weitian LI Date: Mon, 28 Apr 2014 13:34:41 +0800 Subject: * added app 'archive' to provides downloads o models: Archive, ArchiveCategory o views: ArchiveView based on TemplateView o template: archive.html o sidebar: sidebar.js, sidebar.css --- archive/templates/archive/archive.html | 67 ++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 archive/templates/archive/archive.html (limited to 'archive/templates') diff --git a/archive/templates/archive/archive.html b/archive/templates/archive/archive.html new file mode 100644 index 0000000..96a93c4 --- /dev/null +++ b/archive/templates/archive/archive.html @@ -0,0 +1,67 @@ +{% extends 'base.html' %} +{% load staticfiles %} +{% load url from future %} +{% load i18n %} +{% load bootstrap3 %} + +{# template to show notice list #} + +{% block title %} +资料下载 | 2014 SKA Summer School +{% endblock %} + +{% block css_extra %} + +{% endblock %} + +{% block content %} +
+

资料下载

+
+
+ +
+ {% if archive_empty %} +
+ 暂无资料提供下载…… +
+ {% else %} +
+
+ {# archive contents #} + {% for category in archive_categories %} +

{{ category.name }}

+ + {% with archives=category.archive_set.all %} + {% for archive in archives %} + + + + + {% empty %} + + + + {% endfor %} + {% endwith %} +
{{ archive.title }}{{ archive.description }}
暂无该类资料可供下载
+ {% endfor %} +
+ +
+ {% endif %} +
+{% endblock %} + +{% block js_extra %} + +{% endblock %} + +{# vim: set ts=8 sw=2 tw=0 fenc=utf-8 ft=htmldjango.html: #} -- cgit v1.2.2