From a05186c6cbbd2fc434694d126cfdbe70e96be72b Mon Sep 17 00:00:00 2001 From: Weitian LI Date: Tue, 29 Apr 2014 09:06:52 +0800 Subject: * 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 --- notice/templates/notice/list_notice.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'notice/templates') 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 @@

{{ notice.show_pubtime }}, {{ notice.category.category_name }}

- {{ notice.contents }} + {{ notice.contents|my_markdown }}
{% if notice.attachments.all %}
-- cgit v1.2.2