diff options
Diffstat (limited to 'yaksh')
-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 |