2015-06-28 14:43:46 +00:00
|
|
|
{% include 'global/header.tpl' %}
|
|
|
|
<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">
|
|
|
|
{% for post in posts %}
|
|
|
|
<tr class="post" id="p{{ post.post_id }}">
|
|
|
|
<td class="userpanel">
|
|
|
|
{% if post.user.rank_main > 1 %}<a href="/u/{{ post.user.id }}" class="default username" style="color: {% if post.user.name_colour %}{{ post.user.name_colour }}{% else %}{{ post.rank.colour }}{% endif %};" title="Go to {{ post.user.username }}'s profile">{{ post.user.username }}</a>
|
|
|
|
<img src="/a/{{ post.user.id }}" alt="{{ post.user.username }}" class="avatar" style="box-shadow: 0 3px 7px #{% if post.is_online %}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">
|
|
|
|
<div class="usertitle">{% if not post.user.usertitle %}{{ post.rank.title }}{% else %}{{ post.user.usertitle }}{% endif %}</div>
|
2015-08-20 23:17:27 +00:00
|
|
|
<img src="{{ sakura.contentPath }}/images/tenshi.png" alt="Tenshi"{% if not post.is_premium %} style="opacity: 0;"{% endif %} /> <img src="{{ sakura.contentPath }}/images/flags/{% if post.user.country|lower == 'eu' %}europeanunion{% else %}{{ post.user.country|lower }}{% endif %}.png" alt="{{ post.country }}" />
|
2015-08-19 19:44:01 +00:00
|
|
|
{% if session.checkLogin %}
|
2015-06-28 14:43:46 +00:00
|
|
|
<div class="actions">
|
|
|
|
{% if user.data.id == post.user.id %}
|
2015-07-05 00:03:15 +00:00
|
|
|
<a class="fa fa-pencil-square-o" title="Edit this post" href="/forum/post/{{ post.post_id }}/edit"></a>
|
2015-07-08 13:09:57 +00:00
|
|
|
<a class="fa fa-trash" title="Delete this post" href="/forum/post/{{ post.post_id }}/delete"></a>
|
2015-08-10 15:52:15 +00:00
|
|
|
{% elseif post.user.rank_main > 1 %}
|
2015-06-28 14:43:46 +00:00
|
|
|
{% if post.is_friend != 0 %}<a class="fa fa-{% if post.is_friend == 2 %}heart{% else %}star{% endif %}" title="You are friends"></a>{% endif %}
|
2015-08-10 15:52:15 +00:00
|
|
|
<a class="fa fa-user-{% if post.is_friend == 0 %}plus{% else %}times{% endif %} forum-friend-toggle" title="{% if post.is_friend == 0 %}Add {{ post.user.username }} as a friend{% else %}Remove friend{% endif %}" href="/friends?{% if post.is_friend == 0 %}add{% else %}remove{% endif %}={{ post.user.id }}&session={{ php.sessionid }}&time={{ php.time }}&redirect=/forum/post/{{ post.post_id }}&direct=true"></a>
|
2015-08-09 20:27:03 +00:00
|
|
|
<a class="fa fa-flag" title="Report {{ post.user.username }}" href="/u/{{ post.user.id }}/report"></a>
|
2015-06-28 14:43:46 +00:00
|
|
|
{% endif %}
|
|
|
|
<a class="fa fa-reply" title="Quote this post" href="/forum/post/{{ post.post_id }}/quote"></a>
|
|
|
|
</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-08-20 23:17:27 +00:00
|
|
|
<a href="/forum/post/{{ post.post_id }}#p{{ post.post_id }}" class="clean" title="{{ post.post_time|date(sakura.dateFormat) }}">{{ post.time_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-06-29 12:40:00 +00:00
|
|
|
{% if post.enable_sig and post.signature %}
|
2015-06-28 14:43:46 +00:00
|
|
|
<div class="clear"></div>
|
|
|
|
<div class="signature">
|
2015-06-29 12:40:00 +00:00
|
|
|
{{ post.signature|raw }}
|
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>
|
|
|
|
{% include 'global/footer.tpl' %}
|