aboutsummaryrefslogtreecommitdiffstats
path: root/notice/templates
diff options
context:
space:
mode:
authorWeitian LI <liweitianux@gmail.com>2014-04-29 09:06:52 +0800
committerWeitian LI <liweitianux@gmail.com>2014-04-29 09:06:52 +0800
commita05186c6cbbd2fc434694d126cfdbe70e96be72b (patch)
tree2a2612d715b71cb554167a754f276f4e1524cc8a /notice/templates
parent9177e7f60868a34a50da65d5dc7fe2aac17b2804 (diff)
downloaddjango-skaschool-a05186c6cbbd2fc434694d126cfdbe70e96be72b.tar.bz2
* implemented 'my_markdown' templatetag (requires python-markdown)
* updated 'list_notice.html' .notice-content with my_markdown tag * added help_text for notice/models.py/Notice contents field
Diffstat (limited to 'notice/templates')
-rw-r--r--notice/templates/notice/list_notice.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/notice/templates/notice/list_notice.html b/notice/templates/notice/list_notice.html
index 14355f0..e0f2011 100644
--- a/notice/templates/notice/list_notice.html
+++ b/notice/templates/notice/list_notice.html
@@ -3,6 +3,7 @@
{% load url from future %}
{% load i18n %}
{% load bootstrap3 %}
+{% load my_markdown %}
{# template to show notice list #}
@@ -24,7 +25,7 @@
<p>{{ notice.show_pubtime }}, {{ notice.category.category_name }}</p>
</div>
<div class="notice-content">
- {{ notice.contents }}
+ {{ notice.contents|my_markdown }}
</div>
{% if notice.attachments.all %}
<div class="notice-attachment">