SciPost Code Repository

Skip to content
Snippets Groups Projects
Commit fd08de5d authored by Jorran de Wit's avatar Jorran de Wit
Browse files

Add tex/django template for Comment

parent 4213e06f
No related branches found
No related tags found
No related merge requests found
{% spaceless %}
Received {{comment.date_submitted|date:'d-m-Y'}}\ \\
{% if comment.file_attachment %}- \textit{This {% if comment.is_author_reply %}Author Reply{% else %}Comment{% endif %} has an Attachment, please download it online.}\ \\{% endif %}\ \\{{comment.comment_text}}
{% endspaceless %}
{% for subcomment in comment.nested_comments.vetted %}
\addcontentsline{toc}{subsection}{\protect\numberline{}{% if subcomment.is_author_reply %}Author Reply{% else %}Comment{% endif %} {{forloop.counter}} by {% if subcomment.anonymous %}anonymous{% else %}{{subcomment.author.user.first_name}} {{subcomment.author.user.last_name}}{% endif %} }
\subsection*{ {% if subcomment.is_author_reply %}Author Reply{% else %}Comment{% endif %} {{forloop.parentloop.counter}}.{{forloop.counter}} by {% if subcomment.anonymous %}anonymous{% else %}{{subcomment.author.user.first_name}} {{subcomment.author.user.last_name}}{% endif %} }
{% include 'comments/_comment_tex_template.html' with comment=subcomment %}
{% endfor %}
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