This repository has been archived by the owner on May 19, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
83 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
{# | ||
forum/postlist.html | ||
~~~~~~~~~~~~~~~~~~~ | ||
|
||
Show a list of all posts for a given user. | ||
|
||
:copyright: (c) 2013-2016 by the Inyoka Team, see AUTHORS for more details. | ||
:license: BSD, see LICENSE for more details. | ||
#} | ||
{% extends 'forum/base.html' %} | ||
|
||
{% block title %} | ||
{{ username }} – {{ super() }} | ||
{% endblock %} | ||
|
||
{% block breadcrumb %} | ||
{{ super() }} | ||
|
||
{% if forum %} | ||
{{ macros.breadcrumb_item(forum.name, href('forum', 'author', username|e, 'forum', forum.slug)) }} | ||
{% elif topic %} | ||
{{ macros.breadcrumb_item(topic.title, href('forum', 'author', username|e, 'topic', topic.slug)) }} | ||
{% endif %} | ||
{{ macros.breadcrumb_item(_('Posts by') + ' ' + username, href('forum', 'author', username|e)) }} | ||
{% endblock %} | ||
|
||
|
||
{% block content %} | ||
{% set rendered_pagination = macros.render_pagination(pagination) %} | ||
{{ rendered_pagination }} | ||
|
||
<div class="forum-topic-list"> | ||
<div class="forum-topic-list-heading"> | ||
<h1> | ||
{{ title }} | ||
</h1> | ||
</div> | ||
</div> | ||
|
||
<ul> | ||
{% for post in posts if (not post.hidden or not post.topic.hidden or can_moderate(post.topic)) %} | ||
<li class="forum-topic-list-item"> | ||
<div class="row"> | ||
<div class="forum-topic-list-post"> | ||
{% if can_moderate(post.topic) and post.hidden %}{% trans %}[Hidden]{% endtrans %}{% endif %} | ||
<a href="{{ post|url }}"> | ||
{% trans date=post.pub_date|datetime %} | ||
Post on {{ date }} | ||
{% endtrans %} | ||
</a> | ||
</div> | ||
|
||
<div class="forum-topic-list-topic"> | ||
<p class="topic_title"> | ||
<a href="{{ post.topic|url }}">{{ post.topic.title|e }}</a> | ||
</p> | ||
<p class="description note"> | ||
{% trans author=username|e, | ||
userlink=href('portal', 'user', username|e), | ||
link=href('forum', 'author', username|e, 'topic', post.topic.slug) %} | ||
<a href="{{ link }}">All posts by {{ author }} in this topic</a> | ||
{% endtrans %} | ||
</p> | ||
</div> | ||
|
||
<div class="forum-topic-list-forum"> | ||
<p class="topic_title"> | ||
<a href="{{ post.topic.forum|url }}">{{ post.topic.forum.name|e }}</a> | ||
</p> | ||
<p class="description note"> | ||
{% trans author=username|e, | ||
userlink=href('portal', 'user', username|e), | ||
link=href('forum', 'author', username|e, 'forum', post.topic.forum.slug) %} | ||
<a href="{{ link }}">Posts by {{ author }} in this forum</a> | ||
{% endtrans %} | ||
</p> | ||
</div> | ||
</div> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
{{ rendered_pagination }} | ||
{% endblock %} |