From 92507b3dcd7671f6e61d9aade1b4e862a6b4ccb3 Mon Sep 17 00:00:00 2001 From: Weitian LI Date: Thu, 24 Apr 2014 00:50:44 +0800 Subject: * added blank templates of needed pages * added urls in pages.urls * updated links in navbar.html --- page/templates/page/about.html | 20 ++++++++++++++++++++ page/templates/page/accommodation.html | 20 ++++++++++++++++++++ page/templates/page/committee.html | 20 ++++++++++++++++++++ page/templates/page/contact.html | 20 ++++++++++++++++++++ page/templates/page/program.html | 20 ++++++++++++++++++++ page/templates/page/sponsor.html | 20 ++++++++++++++++++++ page/templates/page/traffic.html | 20 ++++++++++++++++++++ page/urls.py | 31 ++++++++++++++++++++++++++++++- templates/navbar.html | 15 ++++++++------- 9 files changed, 178 insertions(+), 8 deletions(-) create mode 100644 page/templates/page/about.html create mode 100644 page/templates/page/accommodation.html create mode 100644 page/templates/page/committee.html create mode 100644 page/templates/page/contact.html create mode 100644 page/templates/page/program.html create mode 100644 page/templates/page/sponsor.html create mode 100644 page/templates/page/traffic.html diff --git a/page/templates/page/about.html b/page/templates/page/about.html new file mode 100644 index 0000000..2f6369e --- /dev/null +++ b/page/templates/page/about.html @@ -0,0 +1,20 @@ +{% extends 'base.html' %} +{% load staticfiles %} +{% load url from future %} +{% load bootstrap3 %} + +{# about template #} + +{% block title %} +关于 | 2014 SKA Summer School +{% endblock %} + +{% block content %} +
+

关于

+
+ TODO +
+{% endblock %} + +{# vim: set ts=8 sw=2 tw=0 fenc=utf-8 ft=htmldjango.html: #} diff --git a/page/templates/page/accommodation.html b/page/templates/page/accommodation.html new file mode 100644 index 0000000..8d8f61e --- /dev/null +++ b/page/templates/page/accommodation.html @@ -0,0 +1,20 @@ +{% extends 'base.html' %} +{% load staticfiles %} +{% load url from future %} +{% load bootstrap3 %} + +{# accommodation template #} + +{% block title %} +住宿 | 2014 SKA Summer School +{% endblock %} + +{% block content %} +
+

住宿情况

+
+ TODO +
+{% endblock %} + +{# vim: set ts=8 sw=2 tw=0 fenc=utf-8 ft=htmldjango.html: #} diff --git a/page/templates/page/committee.html b/page/templates/page/committee.html new file mode 100644 index 0000000..733735c --- /dev/null +++ b/page/templates/page/committee.html @@ -0,0 +1,20 @@ +{% extends 'base.html' %} +{% load staticfiles %} +{% load url from future %} +{% load bootstrap3 %} + +{# committee template #} + +{% block title %} +组委会 | 2014 SKA Summer School +{% endblock %} + +{% block content %} +
+

组委会

+
+ TODO ... style similar to 'notice' page +
+{% endblock %} + +{# vim: set ts=8 sw=2 tw=0 fenc=utf-8 ft=htmldjango.html: #} diff --git a/page/templates/page/contact.html b/page/templates/page/contact.html new file mode 100644 index 0000000..ca347d5 --- /dev/null +++ b/page/templates/page/contact.html @@ -0,0 +1,20 @@ +{% extends 'base.html' %} +{% load staticfiles %} +{% load url from future %} +{% load bootstrap3 %} + +{# contact template #} + +{% block title %} +联系我们 | 2014 SKA Summer School +{% endblock %} + +{% block content %} +
+

联系我们

+
+ TODO +
+{% endblock %} + +{# vim: set ts=8 sw=2 tw=0 fenc=utf-8 ft=htmldjango.html: #} diff --git a/page/templates/page/program.html b/page/templates/page/program.html new file mode 100644 index 0000000..3ac31a9 --- /dev/null +++ b/page/templates/page/program.html @@ -0,0 +1,20 @@ +{% extends 'base.html' %} +{% load staticfiles %} +{% load url from future %} +{% load bootstrap3 %} + +{# program template #} + +{% block title %} +日程 | 2014 SKA Summer School +{% endblock %} + +{% block content %} +
+

2014 SKA 暑期学校日程安排

+
+ TODO +
+{% endblock %} + +{# vim: set ts=8 sw=2 tw=0 fenc=utf-8 ft=htmldjango.html: #} diff --git a/page/templates/page/sponsor.html b/page/templates/page/sponsor.html new file mode 100644 index 0000000..aabad56 --- /dev/null +++ b/page/templates/page/sponsor.html @@ -0,0 +1,20 @@ +{% extends 'base.html' %} +{% load staticfiles %} +{% load url from future %} +{% load bootstrap3 %} + +{# sponsor template #} + +{% block title %} +赞助方 | 2014 SKA Summer School +{% endblock %} + +{% block content %} +
+

赞助方

+
+ TODO +
+{% endblock %} + +{# vim: set ts=8 sw=2 tw=0 fenc=utf-8 ft=htmldjango.html: #} diff --git a/page/templates/page/traffic.html b/page/templates/page/traffic.html new file mode 100644 index 0000000..372b1c1 --- /dev/null +++ b/page/templates/page/traffic.html @@ -0,0 +1,20 @@ +{% extends 'base.html' %} +{% load staticfiles %} +{% load url from future %} +{% load bootstrap3 %} + +{# traffic template #} + +{% block title %} +交通 | 2014 SKA Summer School +{% endblock %} + +{% block content %} +
+

交通情况

+
+ TODO +
+{% endblock %} + +{# vim: set ts=8 sw=2 tw=0 fenc=utf-8 ft=htmldjango.html: #} diff --git a/page/urls.py b/page/urls.py index d8825e5..79ae696 100644 --- a/page/urls.py +++ b/page/urls.py @@ -11,7 +11,36 @@ urlpatterns = patterns('', # index page url(r'^$', RedirectView.as_view(url=reverse_lazy('index'))), # introduction page - url(r'^introduction/$', TemplateView.as_view(template_name='page/introduction.html'), + url(r'^introduction/$', + TemplateView.as_view(template_name='page/introduction.html'), name='introduction'), + # program page + url(r'^program/$', + TemplateView.as_view(template_name='page/program.html'), + name='program'), + # committee page + url(r'^committee/$', + TemplateView.as_view(template_name='page/committee.html'), + name='committee'), + # sponsor page + url(r'^sponsor/$', + TemplateView.as_view(template_name='page/sponsor.html'), + name='sponsor'), + # traffic page + url(r'^traffic/$', + TemplateView.as_view(template_name='page/traffic.html'), + name='traffic'), + # accommodation page + url(r'^accommodation/$', + TemplateView.as_view(template_name='page/accommodation.html'), + name='accommodation'), + # contact page + url(r'^contact/$', + TemplateView.as_view(template_name='page/contact.html'), + name='contact'), + # about page + url(r'^about/$', + TemplateView.as_view(template_name='page/about.html'), + name='about'), ) diff --git a/templates/navbar.html b/templates/navbar.html index 98423f9..d8cce99 100644 --- a/templates/navbar.html +++ b/templates/navbar.html @@ -18,18 +18,19 @@ -- cgit v1.2.2