SciPost Code Repository

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

Move partials templates for `comments` app

parent 11c5c8e2
No related branches found
No related tags found
No related merge requests found
......@@ -2,7 +2,7 @@
<ul class="{{ css_class|default:'' }}">
{% for comment in comments %}
<li><a href="{{ comment.get_absolute_url }}"{% if target_blank %} target="_blank"{% endif %}>{% if comment.is_author_reply %}Author Reply{% else %}Comment{% endif %} by {{ comment.get_author_str }} on {{ comment.date_submitted|date:'DATE_FORMAT' }}</a></li>
{% include 'partials/comments/comments_list.html' with comments=comment.nested_comments.vetted css_class='m-0 pl-4' %}
{% include 'comments/_comments_list.html' with comments=comment.nested_comments.vetted css_class='m-0 pl-4' %}
{% endfor %}
</ul>
{% endif %}
......@@ -17,12 +17,12 @@
<ul class="my-2 pl-4">
{% for report in sibling.reports.accepted %}
<li><a href="{{ report.get_absolute_url }}"{% if target_blank %} target="_blank"{% endif %}>Report {{ report.report_nr }} submitted on {{ report.date_submitted }} by {% if report.anonymous %}<em>Anonymous</em>{% else %}{{ report.author.profile.get_title_display }} {{ report.author.user.last_name }}{% endif %}</a></li>
{% include 'partials/comments/comments_list.html' with comments=report.comments.vetted css_class='my-1 pl-4' target_blank=target_blank %}
{% include 'comments/_comments_list.html' with comments=report.comments.vetted css_class='my-1 pl-4' target_blank=target_blank %}
{% endfor %}
</ul>
</div>
{% include 'partials/comments/comments_list.html' with comments=sibling.comments.vetted css_class='my-2 pl-4' target_blank=target_blank %}
{% include 'comments/_comments_list.html' with comments=sibling.comments.vetted css_class='my-2 pl-4' target_blank=target_blank %}
{% empty %}
<em>There are no publicly visible links available yet.</em>
{% endfor %}
......
......@@ -70,7 +70,7 @@
{% include 'theses/_search_card.html' with thesislink=result.object %}
{% elif result.content_type == 'comments.comment' %}
<div class="py-2">
{% include 'partials/comments/search_card.html' with comment=result.object %}
{% include 'comments/_search_card.html' with comment=result.object %}
</div>
{% elif result.content_type == 'journals.publication' %}
<div class="card card-publication">
......
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