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
|
|
|
|
2023-09-02 23:25:40 +02:00
|
|
|
{% if pagination.total %}
|
|
|
|
{% from "macros/pagination.html" import render_pagination %}
|
|
|
|
{{ render_pagination(pagination, url_set_query) }}
|
2022-01-03 02:41:50 +01:00
|
|
|
|
2023-09-02 23:25:40 +02:00
|
|
|
<ul class="comments mt-5 mb-0">
|
|
|
|
{% for r in pagination.items %}
|
|
|
|
<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.get_profile_pic_url() }}" loading="lazy">
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<div class="col pr-0">
|
|
|
|
<div class="card">
|
|
|
|
<div class="card-header">
|
2022-01-03 02:41:50 +01:00
|
|
|
|
2023-09-02 23:25:40 +02:00
|
|
|
<a class="author {{ r.author.rank.name }} me-3"
|
|
|
|
href="{{ url_for('users.profile', username=r.author.username) }}">
|
|
|
|
{{ r.author.display_name }}
|
|
|
|
</a>
|
2022-01-03 02:41:50 +01:00
|
|
|
|
2023-09-02 23:25:40 +02:00
|
|
|
{% if r.author.username != r.author.display_name %}
|
|
|
|
<span class="text-muted small me-2">
|
|
|
|
({{ r.author.username }})
|
|
|
|
</span>
|
|
|
|
{% endif %}
|
2022-01-03 02:41:50 +01:00
|
|
|
|
2023-09-02 23:25:40 +02:00
|
|
|
{% if r == r.thread.first_reply %}
|
|
|
|
<a class="badge bg-primary" href="{{ r.thread.get_view_url() }}">
|
|
|
|
{{ r.thread.title }}
|
|
|
|
</a>
|
|
|
|
{% else %}
|
|
|
|
<i class="fas fa-reply me-2"></i>
|
|
|
|
<a class="badge bg-dark" href="{{ r.thread.get_view_url() }}">
|
|
|
|
{{ _("Reply to <b>%(title)s</b>", title=r.thread.title) }}
|
|
|
|
</a>
|
|
|
|
{% endif %}
|
2022-01-03 02:41:50 +01:00
|
|
|
|
2023-09-02 23:25:40 +02:00
|
|
|
<a name="reply-{{ r.id }}" class="text-muted float-end"
|
2024-07-05 02:19:33 +02:00
|
|
|
href="{{ url_for('threads.view', id=r.thread.id) }}#reply-{{ r.id }}"
|
|
|
|
title="{{ r.created_at | full_datetime }}">
|
2023-09-02 23:25:40 +02:00
|
|
|
{{ r.created_at | datetime }}
|
|
|
|
</a>
|
|
|
|
</div>
|
2022-01-03 02:41:50 +01:00
|
|
|
|
2023-09-02 23:25:40 +02:00
|
|
|
<div class="card-body markdown">
|
|
|
|
{{ r.comment | markdown }}
|
|
|
|
</div>
|
2022-01-03 02:41:50 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2023-09-02 23:25:40 +02:00
|
|
|
</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
{{ render_pagination(pagination, url_set_query) }}
|
2023-09-30 00:10:08 +02:00
|
|
|
|
|
|
|
{% if only_public %}
|
|
|
|
<p class="mt-5 text-muted">
|
|
|
|
{{ _("Only showing replies to public threads") }}
|
|
|
|
</p>
|
|
|
|
{% endif %}
|
2023-09-02 23:25:40 +02:00
|
|
|
{% else %}
|
|
|
|
<p>
|
|
|
|
<i>
|
|
|
|
{{ _("No results") }}
|
|
|
|
</i>
|
|
|
|
</p>
|
|
|
|
{% endif %}
|
2022-01-03 02:41:50 +01:00
|
|
|
|
|
|
|
{% endblock %}
|