{% if forum.permission(constant('Sakura\\Perms\\Forum::VIEW'), user.id) %}
{{ forum.description }} {% if forum.forums|length %}
Subforums: {% for forum in forum.forums %} {% if forum.unread(user.id) %}[!]{% endif %} {{ forum.name }} {% endfor %}
{% endif %}
{% if forum.type != 2 %}
{{ forum.threadCount }}
{{ forum.postCount }}
{% if forum.lastPost.id %} {{ forum.lastPost.subject|slice(0, 30) }}{% if forum.lastPost.subject|length > 30 %}...{% endif %}
{{ forum.lastPost.timeElapsed }} by {% if forum.lastPost.poster.id %}{{ forum.lastPost.poster.username }}{% else %}[deleted user]{% endif %} {% else %} There are no posts in this forum.
  {% endif %}
{% endif %}
{% endif %}