2022-01-03 02:41:50 +01:00
|
|
|
{% extends "base.html" %}
|
|
|
|
|
|
|
|
|
|
|
|
{% block link %}
|
|
|
|
<a href="{{ url_for('users.profile', username=user.username) }}">{{ user.display_name }}</a>
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block title %}
|
2022-01-03 02:44:12 +01:00
|
|
|
{{ _("Comments by %(user)s", user=user.display_name) }}
|
2022-01-03 02:41:50 +01:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
2022-01-03 02:44:12 +01:00
|
|
|
<h1>{{ _("Comments by %(user)s", user=self.link()) }}</h1>
|
2022-01-03 02:41:50 +01:00
|
|
|
|
|
|
|
|
|
|
|
<ul class="comments mt-5 mb-0">
|
|
|
|
{% for r in replies %}
|
|
|
|
<li class="row my-2 mx-0">
|
|
|
|
<div class="col-md-1 p-1">
|
|
|
|
<a href="{{ url_for('users.profile', username=r.author.username) }}">
|
|
|
|
<img class="img-fluid user-photo img-thumbnail img-thumbnail-1" src="{{ r.author.getProfilePicURL() }}">
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<div class="col pr-0">
|
|
|
|
<div class="card">
|
|
|
|
<div class="card-header">
|
|
|
|
|
|
|
|
<a class="author {{ r.author.rank.name }} mr-3"
|
|
|
|
href="{{ url_for('users.profile', username=r.author.username) }}">
|
|
|
|
{{ r.author.display_name }}
|
|
|
|
</a>
|
|
|
|
|
|
|
|
{% if r.author.username != r.author.display_name %}
|
|
|
|
<span class="text-muted small mr-2">
|
|
|
|
({{ r.author.username }})
|
|
|
|
</span>
|
|
|
|
{% endif %}
|
|
|
|
|
2022-11-18 22:15:46 +01:00
|
|
|
{% if r == r.thread.first_reply %}
|
2022-01-03 02:41:50 +01:00
|
|
|
<a class="badge badge-primary" href="{{ r.thread.getViewURL() }}">
|
|
|
|
{{ r.thread.title }}
|
|
|
|
</a>
|
|
|
|
{% else %}
|
|
|
|
<i class="fas fa-reply mr-2"></i>
|
|
|
|
<a class="badge badge-dark" href="{{ r.thread.getViewURL() }}">
|
2022-01-08 00:27:00 +01:00
|
|
|
{{ _("Reply to <b>%(title)s</b>", title=r.thread.title) }}
|
2022-01-03 02:41:50 +01:00
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
<a name="reply-{{ r.id }}" class="text-muted float-right"
|
|
|
|
href="{{ url_for('threads.view', id=r.thread.id) }}#reply-{{ r.id }}">
|
|
|
|
{{ r.created_at | datetime }}
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="card-body markdown">
|
|
|
|
{{ r.comment | markdown }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
{% endblock %}
|