{% extends "layout.html" %} {% block title %}Comments made by {{ user.username }} :: {{ config.SITE_NAME }}{% endblock %} {% block meta_image %}{{ user.gravatar_url() }}{% endblock %} {% block metatags %} {% endblock %} {% block body %} {% from "_formhelpers.html" import render_menu_with_button %} {% from "_formhelpers.html" import render_field %}

{{ user.username }}'{{ '' if user.username[-1] == 's' else 's' }} comments

{% if comments_query.items %}

Total of {{ comments_query.total }} comments

{% for comment in comments_query.items %}
{{ comment.created_time.strftime('%Y-%m-%d %H:%M UTC') }} {% if comment.edited_time %} (edited) {% endif %} on torrent #{{comment.torrent_id}} {{ comment.torrent.display_name }} {#
{% if g.user.id == comment.user_id and not comment.editing_limit_exceeded %} {% endif %} {% if g.user.is_moderator or g.user.id == comment.user_id %}
{% endif %}
#}
{# Escape newlines into html entities because CF strips blank newlines #}
{{- comment.text | escape | replace('\r\n', '\n') | replace('\n', ' '|safe) -}}
{% endfor %}
{% else %}

No comments

{% endif %}
{% from "bootstrap/pagination.html" import render_pagination %} {{ render_pagination(comments_query) }}
{% endblock %}