From 9b0c622ee111f36510480e5d3109be87ed347cef Mon Sep 17 00:00:00 2001 From: CruiseDevice Date: Tue, 21 Apr 2020 14:11:31 +0530 Subject: Add MathJax support in discussion forum --- yaksh/templates/yaksh/course_forum.html | 6 +++++- yaksh/templates/yaksh/post_comments.html | 10 +++++++--- 2 files changed, 12 insertions(+), 4 deletions(-) (limited to 'yaksh') diff --git a/yaksh/templates/yaksh/course_forum.html b/yaksh/templates/yaksh/course_forum.html index 63e577b..12f5241 100644 --- a/yaksh/templates/yaksh/course_forum.html +++ b/yaksh/templates/yaksh/course_forum.html @@ -1,5 +1,6 @@ {% extends "user.html" %} {% load humanize %} +{% load static %} {% block title %} {{course.name}}: Discussion Forum {% endblock title %} @@ -65,4 +66,7 @@ {% endif %} -{% endblock content %} \ No newline at end of file +{% endblock content %} +{% block script %} + +{% endblock script %} \ No newline at end of file diff --git a/yaksh/templates/yaksh/post_comments.html b/yaksh/templates/yaksh/post_comments.html index 6fd5dd5..ee54c74 100644 --- a/yaksh/templates/yaksh/post_comments.html +++ b/yaksh/templates/yaksh/post_comments.html @@ -1,4 +1,5 @@ {% extends "user.html" %} +{% load static %} {% load humanize %} {% block title %} {{post.title}} @@ -21,7 +22,7 @@
-

{{post.description}}

+
{{post.description}}
{% if post.image %} @@ -40,7 +41,7 @@ {% endif %} -

{{comment.description}}

+
{{comment.description}}
by: {{comment.creator.username}} . {{comment.created_at|naturaltime}} {% if user.profile.is_moderator %}Delete{% endif %} @@ -62,4 +63,7 @@
-{% endblock content %} \ No newline at end of file +{% endblock content %} +{% block script %} + +{% endblock script %} \ No newline at end of file -- cgit