{% import "utils.html" as utils %}

{% if kind == "more" && parent_kind == "t1" %}
<a class="deeper_replies" href="{{ post_link }}{{ parent_id }}">&rarr; More replies</a>
{% else if kind == "t1"  %}
<div id="{{ id }}" class="comment">
	<div class="comment_left">
		<p class="comment_score">{{ score }}</p>
		<div class="line"></div>
	</div>
	<details class="comment_right" open>
		<summary class="comment_data">
			<a class="comment_author {{ author.distinguished }} {% if author.name == post_author %}op{% endif %}" href="/u/{{ author.name }}">u/{{ author.name }}</a>
			{% if author.flair.flair_parts.len() > 0 %}
				<small class="author_flair">{% call utils::render_flair(author.flair.flair_parts) %}</small>
			{% endif %}
			<span class="created" title="{{ created }}">{{ rel_time }}</span>
			{% if edited.0 != "".to_string() %}<span class="edited" title="{{ edited.1 }}">edited {{ edited.0 }}</span>{% endif %}
		</summary>
		<div class="comment_body {% if highlighted %}highlighted{% endif %}">{{ body }}</div>
		<blockquote class="replies">{% for c in replies -%}{{ c.render().unwrap() }}{%- endfor %}
		</blockquote>
	</details>
</div>
{% endif %}