diff options
author | Weitian LI <liweitianux@gmail.com> | 2014-06-03 11:28:12 +0800 |
---|---|---|
committer | Weitian LI <liweitianux@gmail.com> | 2014-06-03 11:28:12 +0800 |
commit | dbdec551f234c6dfdb992184b715e9af8462433c (patch) | |
tree | ad9aef4f55bf143cc549e2e347c000df96e75462 /templates | |
parent | 2288c7f4dca08aa4519b80ace852be8c0526d992 (diff) | |
download | django-skaschool-dbdec551f234c6dfdb992184b715e9af8462433c.tar.bz2 |
Show latest import notice at index page.
* added 'page.views.IndexView' for 'django_skaschool.urls
* updated 'index.html' to display notice at bottom
* added '.smallcaps' in 'index.css' for English title
Diffstat (limited to 'templates')
-rw-r--r-- | templates/index.html | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/templates/index.html b/templates/index.html index 661dbae..16244d4 100644 --- a/templates/index.html +++ b/templates/index.html @@ -11,10 +11,12 @@ {% endblock %} {% block content %} + + {# title and main info #} <div class="container"> <h1>第二届 中国SKA暑期学校</h1> <h1>暨 中国-新西兰联合SKA暑期学校</h1> - <h2>China-New Zealand Joint SKA Summer School</h2> + <h2 class="smallcaps">China-New Zealand Joint SKA Summer School</h2> <br> <p class="lead"> @@ -33,7 +35,20 @@ {% endblock %} {# content #} {% block footer %} + {# display latest important notice #} + {% if important_notice %} + <div class="container"> + <div class="alert alert-info alert-dismissable"> + <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button> + <strong><a href="{% url 'list_notice' %}" class="alert-link">[通知]</a></strong> + {# notice contents #} + {{ important_notice.contents }} + </div> + </div> + {% endif %} + <footer class="container" role="contentinfo"> + {# links #} <ul class="masthead-links sponsors"> <li>Sponsors:</li> <li><a href="http://www.most.gov.cn/" target="_blank">科学技术部</a></li> |