SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit b44bd152 authored by Jean-Sébastien Caux's avatar Jean-Sébastien Caux
Browse files

Trying to get MathJax to work

parent 58ec9dbb
No related branches found
No related tags found
No related merge requests found
...@@ -16,9 +16,6 @@ ...@@ -16,9 +16,6 @@
}); });
</script> </script>
<script type="text/javascript" async src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML"></script>
<script type="text/javascript">MathJax.Hub.Config({"tex2jax": {"inlineMath": [["$", "$"], ["\\(", "\\)"]], "processEscapes": true}});</script>
{% endblock headsup %} {% endblock headsup %}
......
...@@ -270,7 +270,7 @@ nav a:active { ...@@ -270,7 +270,7 @@ nav a:active {
} }
nav p { nav p {
display: inline-block; display: inline-block;
margin: 0px; margin: 10px;
padding: 0px; padding: 0px;
} }
nav form { nav form {
......
...@@ -5,6 +5,11 @@ ...@@ -5,6 +5,11 @@
<link rel="stylesheet" type="text/css" href="{% static 'scipost/SciPost.css' %}" /> <link rel="stylesheet" type="text/css" href="{% static 'scipost/SciPost.css' %}" />
<script src="https://code.jquery.com/jquery-2.2.0.min.js"></script> <script src="https://code.jquery.com/jquery-2.2.0.min.js"></script>
<script type="text/x-mathjax-config">
MathJax.Hub.Config({tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]}});
</script>
<script type="text/javascript" async src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML"></script>
<title>SciPost{% block pagetitle %}{% endblock pagetitle %}</title> <title>SciPost{% block pagetitle %}{% endblock pagetitle %}</title>
......
...@@ -125,4 +125,15 @@ ...@@ -125,4 +125,15 @@
</section> </section>
{% endif %} {% endif %}
{% if own_comments %}
<section>
<h1>Your Comments</h1>
<ul>
{% for own_comment in own_comments %}
<li>{{ own_comment.comment_text }}</li>
{% endfor %}
</ul>
</section>
{% endif %}
{% endblock bodysup %} {% endblock bodysup %}
...@@ -282,7 +282,8 @@ def personal_page(request): ...@@ -282,7 +282,8 @@ def personal_page(request):
nr_comments_to_vet = Comment.objects.filter(status=0).count() nr_comments_to_vet = Comment.objects.filter(status=0).count()
nr_author_replies_to_vet = AuthorReply.objects.filter(status=0).count() nr_author_replies_to_vet = AuthorReply.objects.filter(status=0).count()
nr_reports_to_vet = Report.objects.filter(status=0).count() nr_reports_to_vet = Report.objects.filter(status=0).count()
context = {'contributor': contributor, 'nr_reg_to_vet': nr_reg_to_vet, 'nr_reg_awaiting_validation': nr_reg_awaiting_validation, 'nr_commentary_page_requests_to_vet': nr_commentary_page_requests_to_vet, 'nr_comments_to_vet': nr_comments_to_vet, 'nr_author_replies_to_vet': nr_author_replies_to_vet, 'nr_reports_to_vet': nr_reports_to_vet, 'nr_submissions_to_process': nr_submissions_to_process } own_comments = Comment.objects.filter(author=contributor)
context = {'contributor': contributor, 'nr_reg_to_vet': nr_reg_to_vet, 'nr_reg_awaiting_validation': nr_reg_awaiting_validation, 'nr_commentary_page_requests_to_vet': nr_commentary_page_requests_to_vet, 'nr_comments_to_vet': nr_comments_to_vet, 'nr_author_replies_to_vet': nr_author_replies_to_vet, 'nr_reports_to_vet': nr_reports_to_vet, 'nr_submissions_to_process': nr_submissions_to_process, 'own_comments': own_comments}
return render(request, 'scipost/personal_page.html', context) return render(request, 'scipost/personal_page.html', context)
else: else:
form = AuthenticationForm() form = AuthenticationForm()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment