]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/views/meta.py
It is now possable for users to add tags like "REP_TO_VOTE_UP" to the faq page and...
[osqa.git] / forum / views / meta.py
index 63ff65723c24c2fb05c24f2bd6ab0a3f5773d035..be41bd29530ea2702c7aedd3683d7edbcd220620 100644 (file)
@@ -12,6 +12,8 @@ from forum.models import Badge, Award, User
 from forum.badges import ALL_BADGES
 from forum import settings
 from forum.utils.mail import send_email
+from forum.settings.settingsmarkdown import *
+
 import re
 
 def favicon(request):
@@ -21,7 +23,10 @@ def about(request):
     return render_to_response('about.html', {'text': settings.ABOUT_PAGE_TEXT.value }, context_instance=RequestContext(request))
 
 def faq(request):
-    return render_to_response('faq.html', {'text': settings.FAQ_PAGE_TEXT.value }, context_instance=RequestContext(request))
+    md = markdown.Markdown([SettingsExtension({})])
+    text = md.convert(settings.FAQ_PAGE_TEXT.value)
+
+    return render_to_response('faq.html', {'text' : text}, context_instance=RequestContext(request))
 
 def feedback(request):
     if request.method == "POST":