diff --git a/comments/templates/comments/_comment_tex_template.html b/comments/templates/comments/_comment_tex_template.html new file mode 100644 index 0000000000000000000000000000000000000000..b6540e82c6d45520961cb04feacc921b65b4e5d0 --- /dev/null +++ b/comments/templates/comments/_comment_tex_template.html @@ -0,0 +1,11 @@ +{% 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 %}