2016-01-04 20:14:09 +00:00
|
|
|
{% extends 'global/master.twig' %}
|
2015-09-05 16:11:04 +00:00
|
|
|
|
2015-11-15 14:29:26 +00:00
|
|
|
{% set title = 'Forums' %}
|
|
|
|
|
|
|
|
{% block title %}{{ title }}{% endblock %}
|
2015-09-07 20:53:47 +00:00
|
|
|
|
2015-09-05 16:11:04 +00:00
|
|
|
{% block content %}
|
2015-05-06 13:42:02 +00:00
|
|
|
<div class="content homepage forum">
|
|
|
|
<div class="content-right content-column">
|
2016-03-24 18:28:32 +00:00
|
|
|
<div id="forumIndexPopularThreads">
|
|
|
|
<div class="head">Popular threads</div>
|
|
|
|
<table class="panelTable" style="border-spacing: 0;">
|
|
|
|
<tr>
|
|
|
|
<th>Title</th>
|
|
|
|
<th>Last reply</th>
|
|
|
|
</tr>
|
|
|
|
{% for _t in activeThreads %}
|
|
|
|
<tr {% if _t.unread(user.id) %}style="font-weight: bold;"{% endif %}>
|
|
|
|
<td style="text-align: left; border-bottom: 1px solid #9475b2;">
|
|
|
|
<a href="{{ route('forums.thread', _t.id) }}" class="default">{{ _t.title }}</a>
|
|
|
|
</td>
|
2016-03-31 20:03:25 +00:00
|
|
|
<td class="rightAlign" style="border-bottom: 1px solid #9475b2;"><time datetime="{{ _t.lastPost.time|date('r') }}">{{ _t.lastPost.time|date(config('date_format')) }}</time></td>
|
2016-03-24 18:28:32 +00:00
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
<div id="forumIndexNewPosts">
|
|
|
|
<div class="head">Latest posts</div>
|
|
|
|
<table class="panelTable" style="border-spacing: 0;">
|
|
|
|
<tr>
|
|
|
|
<th>Title & user</th>
|
|
|
|
<th>Posted</th>
|
|
|
|
</tr>
|
|
|
|
{% for _p in latestPosts %}
|
|
|
|
<tr {% if _p.unread(user.id) %}style="font-weight: bold;"{% endif %}>
|
|
|
|
<td style="text-align: left; border-bottom: 1px solid #9475b2;">
|
|
|
|
<a href="{{ route('forums.post', _p.id) }}" class="default">{{ _p.subject }}</a>
|
|
|
|
by
|
|
|
|
<a href="{{ route('user.profile', _p.poster.id) }}" class="default"><span style="color: {{ _p.poster.colour }};">{{ _p.poster.username }}</span></a>
|
|
|
|
</td>
|
2016-03-31 20:03:25 +00:00
|
|
|
<td class="rightAlign" style="border-bottom: 1px solid #9475b2;"><time datetime="{{ _p.time|date('r') }}">{{ _p.time|date(config('date_format')) }}</time></td>
|
2016-03-24 18:28:32 +00:00
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
<div id="forumMostActivePoster">
|
|
|
|
<div class="head">Today's most active poster</div>
|
2016-03-26 18:05:16 +00:00
|
|
|
{% if activePoster.id %}
|
2016-03-26 18:03:35 +00:00
|
|
|
<a class="clean" href="{{ route('user.profile', activePoster.id) }}">
|
|
|
|
<div class="user-container" style="background-image: url({{ route('user.header', activePoster.id) }});">
|
|
|
|
<div class="default-avatar-setting user-container-avatar" style="background-image: url({{ route('file.avatar', activePoster.id) }}); box-shadow: 0 0 5px #{% if activePoster.isOnline %}484{% else %}844{% endif %};"></div>
|
|
|
|
<div class="user-container-info">
|
2016-03-31 20:03:25 +00:00
|
|
|
<h1 style="color: {{ activePoster.colour }}; text-shadow: 0 0 7px {% if activePoster.colour != 'inherit' %}{{ activePoster.colour }}{% else %}#222{% endif %}; padding: 0 0 2px;" {% if activePoster.getUsernameHistory %} title="Known as {{ activePoster.getUsernameHistory[0].username_old }} before {{ activePoster.getUsernameHistory[0].change_time|date(config('date_format')) }}." {% endif %}>{{ activePoster.username }}</h1>
|
|
|
|
{% if activePoster.isPremium %}<img src="{{ config('content_path') }}/images/tenshi.png" alt="Tenshi" style="vertical-align: middle;" /> {% endif %}<img src="{{ config('content_path') }}/images/flags/{{ activePoster.country|lower }}.png" alt="{{ activePoster.country }}" style="vertical-align: middle;" title="{{ activePoster.country(true) }}" /> <span style="font-size: .8em;">{{ activePoster.title }}</span>
|
2016-03-26 18:03:35 +00:00
|
|
|
</div>
|
2016-03-24 18:28:32 +00:00
|
|
|
</div>
|
2016-03-26 18:03:35 +00:00
|
|
|
</a>
|
|
|
|
{% else %}
|
|
|
|
<h1 class="stylised" style="margin: 1em 0; text-align: center;">No one yet!</h1>
|
|
|
|
{% endif %}
|
2016-03-24 18:28:32 +00:00
|
|
|
</div>
|
2015-05-06 13:42:02 +00:00
|
|
|
</div>
|
|
|
|
<div class="content-left content-column">
|
2016-03-28 14:47:43 +00:00
|
|
|
{% include 'forum/elements/forumBase.twig' %}
|
2015-05-06 13:42:02 +00:00
|
|
|
</div>
|
|
|
|
<div class="clear"></div>
|
|
|
|
</div>
|
2015-11-15 14:29:26 +00:00
|
|
|
{% endblock %}
|