]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/views/meta.py
Merged FAQ and About into the same template, and added a special folder markdownext...
[osqa.git] / forum / views / meta.py
index 04cfe753b933594e58c3ab932f1bafa23a700454..05bd2f4b8dbffdfc4f4014041c2c6cdee5a85a1c 100644 (file)
@@ -19,15 +19,8 @@ import re
 def favicon(request):
     return HttpResponseRedirect(str(settings.APP_FAVICON))
 
-def about(request):
-    return render_to_response('about.html', {'text': settings.ABOUT_PAGE_TEXT.value }, context_instance=RequestContext(request))
-
-def faq(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 static(request, title, content):
+    return render_to_response('static.html', {'content' : content, 'title': title}, context_instance=RequestContext(request))
 
 def opensearch(request):   
     return render_to_response('opensearch.html', {'settings' : settings}, context_instance=RequestContext(request))