2021-02-10 18:48:51 +00:00
|
|
|
{% import "utils.html" as utils %}
|
|
|
|
|
2021-02-12 17:16:59 +00:00
|
|
|
{% if kind == "more" && parent_kind == "t1" %}
|
|
|
|
<a class="deeper_replies" href="{{ post_link }}{{ parent_id }}">→ More replies</a>
|
2021-11-24 06:23:29 +00:00
|
|
|
{% else if kind == "t1" %}
|
2021-02-10 18:48:51 +00:00
|
|
|
<div id="{{ id }}" class="comment">
|
|
|
|
<div class="comment_left">
|
2021-03-20 22:42:47 +00:00
|
|
|
<p class="comment_score" title="{{ score.1 }}">{{ score.0 }}</p>
|
2021-02-10 18:48:51 +00:00
|
|
|
<div class="line"></div>
|
|
|
|
</div>
|
2021-11-26 04:02:04 +00:00
|
|
|
<details class="comment_right" {% if !collapsed || highlighted %}open{% endif %}>
|
2021-02-10 18:48:51 +00:00
|
|
|
<summary class="comment_data">
|
2021-12-19 11:20:37 +00:00
|
|
|
{% if author.name != "[deleted]" %}
|
|
|
|
<a class="comment_author {{ author.distinguished }} {% if author.name == post_author %}op{% endif %}" href="/user/{{ author.name }}">u/{{ author.name }}</a>
|
|
|
|
{% else %}
|
2021-12-20 01:12:33 +00:00
|
|
|
<span class="comment_author">u/[deleted]</span>
|
2021-12-19 11:20:37 +00:00
|
|
|
{% endif %}
|
2021-02-10 18:48:51 +00:00
|
|
|
{% if author.flair.flair_parts.len() > 0 %}
|
|
|
|
<small class="author_flair">{% call utils::render_flair(author.flair.flair_parts) %}</small>
|
|
|
|
{% endif %}
|
2021-02-26 05:53:27 +00:00
|
|
|
<a href="{{ post_link }}{{ id }}/?context=3" class="created" title="{{ created }}">{{ rel_time }}</a>
|
2021-02-14 22:53:09 +00:00
|
|
|
{% if edited.0 != "".to_string() %}<span class="edited" title="{{ edited.1 }}">edited {{ edited.0 }}</span>{% endif %}
|
2021-11-25 02:08:27 +00:00
|
|
|
{% if !awards.is_empty() %}
|
|
|
|
<span class="dot">•</span>
|
|
|
|
{% for award in awards.clone() %}
|
|
|
|
<span class="award" title="{{ award.name }}">
|
|
|
|
<img alt="{{ award.name }}" src="{{ award.icon_url }}" width="16" height="16"/>
|
|
|
|
</span>
|
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
2021-02-10 18:48:51 +00:00
|
|
|
</summary>
|
2021-11-26 04:02:04 +00:00
|
|
|
{% if is_filtered %}
|
|
|
|
<div class="comment_body_filtered {% if highlighted %}highlighted{% endif %}">(Filtered content)</div>
|
|
|
|
{% else %}
|
2021-02-12 17:16:59 +00:00
|
|
|
<div class="comment_body {% if highlighted %}highlighted{% endif %}">{{ body }}</div>
|
2021-11-26 04:02:04 +00:00
|
|
|
{% endif %}
|
2021-02-10 18:48:51 +00:00
|
|
|
<blockquote class="replies">{% for c in replies -%}{{ c.render().unwrap() }}{%- endfor %}
|
|
|
|
</blockquote>
|
|
|
|
</details>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|