2015-09-05 16:11:04 +00:00
|
|
|
{% extends 'global/master.tpl' %}
|
|
|
|
|
2015-09-07 20:53:47 +00:00
|
|
|
{% block title %}{{ topic.topic_title }}{% endblock %}
|
|
|
|
|
2015-09-05 16:11:04 +00:00
|
|
|
{% block content %}
|
2015-06-28 14:43:46 +00:00
|
|
|
<div class="content homepage forum viewtopic">
|
|
|
|
<div class="content-column">
|
|
|
|
<div class="head">{{ forum.forum.forum_name }} / {{ topic.topic_title }}</div>
|
2015-07-05 15:03:58 +00:00
|
|
|
{% include 'forum/forumBtns.tpl' %}
|
2015-06-28 14:43:46 +00:00
|
|
|
<table class="posts">
|
2015-11-01 16:32:47 +00:00
|
|
|
{% for post in posts[currentPage] %}
|
2015-06-28 14:43:46 +00:00
|
|
|
<tr class="post" id="p{{ post.post_id }}">
|
|
|
|
<td class="userpanel">
|
2015-10-10 21:17:50 +00:00
|
|
|
{% if not post.user.checkPermission('SITE', 'DEACTIVATED') or post.user.checkPermission('SITE', 'RESTRICTED') %}<a href="{{ urls.format('USER_PROFILE', [post.user.data.user_id]) }}" class="default username" style="color: {{ post.user.colour }}; text-shadow: 0 0 5px {% if post.user.colour != 'inherit' %}{{ post.user.colour }}{% else %}#222{% endif %};" title="Go to {{ post.user.data.username }}'s profile">{{ post.user.data.username }}</a>
|
2015-10-18 19:06:30 +00:00
|
|
|
<img src="{{ urls.format('IMAGE_AVATAR', [post.user.data.user_id]) }}" alt="{{ post.user.data.username }}" class="avatar" style="box-shadow: 0 3px 7px #{% if post.user.checkOnline %}484{% else %}844{% endif %};" />
|
2015-08-10 15:52:15 +00:00
|
|
|
{% else %}
|
|
|
|
<a class="username">[deleted user]</a>
|
|
|
|
{% endif %}
|
2015-06-28 14:43:46 +00:00
|
|
|
<div class="userdata">
|
2015-10-18 20:01:30 +00:00
|
|
|
<div class="usertitle">{% if not post.user.userTitle %}{{ post.rank.title }}{% else %}{{ post.user.userTitle }}{% endif %}</div>
|
2015-09-16 20:34:36 +00:00
|
|
|
<img src="{{ sakura.contentPath }}/images/tenshi.png" alt="Tenshi"{% if not post.user.checkPremium[0] %} style="opacity: 0;"{% endif %} /> <img src="{{ sakura.contentPath }}/images/flags/{{ post.user.country.short|lower }}.png" alt="{{ post.user.country.long }}" />
|
2015-08-19 19:44:01 +00:00
|
|
|
{% if session.checkLogin %}
|
2015-06-28 14:43:46 +00:00
|
|
|
<div class="actions">
|
2015-10-10 21:17:50 +00:00
|
|
|
{% if user.data.user_id == post.user.data.user_id %}
|
2015-09-16 20:34:36 +00:00
|
|
|
<a class="fa fa-pencil-square-o" title="Edit this post" href="{{ urls.format('FORUM_EDIT_POST', [post.post_id]) }}"></a>
|
|
|
|
<a class="fa fa-trash" title="Delete this post" href="{{ urls.format('FORUM_DELETE_POST', [post.post_id]) }}"></a>
|
|
|
|
{% elseif not post.user.checkPermission('SITE', 'DEACTIVATED') or post.user.checkPermission('SITE', 'RESTRICTED') %}
|
2015-10-10 21:17:50 +00:00
|
|
|
{% if post.user.checkFriends(user.data.user_id) != 0 %}
|
|
|
|
<a class="fa fa-{% if post.user.checkFriends(user.data.user_id) == 2 %}heart{% else %}star{% endif %}" title="You are friends"></a>
|
2015-09-16 20:34:36 +00:00
|
|
|
{% endif %}
|
2015-10-10 21:17:50 +00:00
|
|
|
<a class="fa fa-user-{% if post.user.checkFriends(user.data.user_id) == 0 %}plus{% else %}times{% endif %} forum-friend-toggle" title="{% if post.user.checkFriends(user.data.user_id) == 0 %}Add {{ post.user.data.username }} as a friend{% else %}Remove friend{% endif %}" href="{% if post.user.checkFriends(user.data.user_id) == 0 %}{{ urls.format('FRIEND_ADD', [post.user.data.user_id, php.sessionid, php.time, sakura.currentPage]) }}{% else %}{{ urls.format('FRIEND_REMOVE', [post.user.data.user_id, php.sessionid, php.time, sakura.currentPage]) }}{% endif %}"></a>
|
|
|
|
<a class="fa fa-flag" title="Report {{ post.user.data.username }}" href="{{ urls.format('USER_REPORT', [post.user.data.user_id]) }}"></a>
|
2015-06-28 14:43:46 +00:00
|
|
|
{% endif %}
|
2015-09-04 23:49:53 +00:00
|
|
|
<a class="fa fa-reply" title="Quote this post" href="{{ urls.format('FORUM_QUOTE_POST', [post.post_id]) }}"></a>
|
2015-06-28 14:43:46 +00:00
|
|
|
</div>
|
2015-08-10 15:52:15 +00:00
|
|
|
{% endif %}
|
2015-06-28 14:43:46 +00:00
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<td class="post-content">
|
|
|
|
<div class="details">
|
|
|
|
<div class="subject">
|
|
|
|
<a href="#p{{ post.post_id }}" class="clean">{{ post.post_subject }}</a>
|
|
|
|
</div>
|
|
|
|
<div class="date">
|
2015-09-16 20:34:36 +00:00
|
|
|
<a href="{{ urls.format('FORUM_POST', [post.post_id]) }}#p{{ post.post_id }}" class="clean" title="{{ post.post_time|date(sakura.dateFormat) }}">{{ post.elapsed }}</a>
|
2015-06-28 14:43:46 +00:00
|
|
|
</div>
|
|
|
|
<div class="clear"></div>
|
|
|
|
</div>
|
|
|
|
<div class="post-text markdown">
|
|
|
|
{{ post.parsed_post|raw }}
|
|
|
|
</div>
|
2015-10-24 08:55:45 +00:00
|
|
|
{% if post.user.signature and post.post_signature %}
|
2015-06-28 14:43:46 +00:00
|
|
|
<div class="clear"></div>
|
|
|
|
<div class="signature">
|
2015-10-24 09:14:10 +00:00
|
|
|
{{ post.user.signature|raw|nl2br }}
|
2015-06-28 14:43:46 +00:00
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
2015-07-05 15:03:58 +00:00
|
|
|
{% include 'forum/forumBtns.tpl' %}
|
2015-06-28 14:43:46 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2015-09-05 16:11:04 +00:00
|
|
|
{% endblock %}
|