diff options
author | CruiseDevice | 2020-04-21 14:11:31 +0530 |
---|---|---|
committer | CruiseDevice | 2020-04-21 14:11:31 +0530 |
commit | 9b0c622ee111f36510480e5d3109be87ed347cef (patch) | |
tree | 6627769a89350be0555ca5607a75250d07cd8035 /yaksh/templates | |
parent | d60c6b528e893266da10f7e83b5f2e7ef4d4b6dc (diff) | |
download | online_test-9b0c622ee111f36510480e5d3109be87ed347cef.tar.gz online_test-9b0c622ee111f36510480e5d3109be87ed347cef.tar.bz2 online_test-9b0c622ee111f36510480e5d3109be87ed347cef.zip |
Add MathJax support in discussion forum
Diffstat (limited to 'yaksh/templates')
-rw-r--r-- | yaksh/templates/yaksh/course_forum.html | 6 | ||||
-rw-r--r-- | yaksh/templates/yaksh/post_comments.html | 10 |
2 files changed, 12 insertions, 4 deletions
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 %} </div> </div> -{% endblock content %}
\ No newline at end of file +{% endblock content %} +{% block script %} + <script type="text/javascript" src="{% static 'yaksh/js/mathjax/MathJax.js' %}?config=TeX-MML-AM_CHTML"></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 @@ </div> <div class="card-body"> - <p>{{post.description}}</p> + <div>{{post.description}}</div> {% if post.image %} <a href="{{post.image.url}}" target="_blank"> <img src="{{post.image.url}}" class="post_image" alt=""> @@ -40,7 +41,7 @@ <img src="{{comment.image.url}}" class='comment_image'> </a> {% endif %} - <p>{{comment.description}}</p> + <div>{{comment.description}}</div> <small class="pull-right"> by: <strong>{{comment.creator.username}} </strong>. {{comment.created_at|naturaltime}} {% if user.profile.is_moderator %}<a href="{% url "yaksh:hide_comment" post.course.id comment.uid %}">Delete</a>{% endif %} @@ -62,4 +63,7 @@ </form> </div> </div> -{% endblock content %}
\ No newline at end of file +{% endblock content %} +{% block script %} + <script type="text/javascript" src="{% static 'yaksh/js/mathjax/MathJax.js' %}?config=TeX-MML-AM_CHTML"></script> +{% endblock script %}
\ No newline at end of file |