{% extends 'global/master.twig' %} {% set profileHidden = profile.permission(constant('Sakura\\Perms\\Site::DEACTIVATED')) or (profile.permission(constant('Sakura\\Perms\\Site::RESTRICTED')) and (user.id != profile.id and not user.permission(constant('Sakura\\Perms\\Manage::USE_MANAGE'), constant('Sakura\\Perms::MANAGE')))) %} {% set noUserpage = profile.userPage|length < 1 %} {% set profileView = profileHidden ? 'hidden' : (noUserpage and profileView == 'index' ? 'comments' : profileView) %} {% block title %}{% if profileHidden %}User not found!{% else %}Profile of {{ profile.username }}{% endif %}{% endblock %} {% block css %} {% endblock %} {% block js %} {% endblock %} {% block content %}
{{ profile.username }}'s Avatar
{% if profileHidden %}Unknown user{% else %}{{ profile.username }}{% endif %}
{% if profileHidden %}The requested user does not exist!{% else %}{{ profile.userTitle }}{% endif %}
{% if not profileHidden %}
Joined {{ profile.elapsed.joined }}
{% if profile.dates.lastOnline < 1 %}User hasn't logged in yet.{% else %}Last Active {{ profile.elapsed.lastOnline }}{% endif %}
{% endif %}
{% if not profileHidden %} {% if (profile.checkPremium[0] or profile.permission(constant('Sakura\\Perms\\Manage::USE_MANAGE'), constant('Sakura\\Perms::MANAGE'))) %}
    {% if profile.checkPremium[0] %}
  • Tenshi
  • {% endif %} {% if profile.permission(constant('Sakura\\Perms\\Manage::USE_MANAGE'), constant('Sakura\\Perms::MANAGE')) %}
  • Staff
  • {% endif %} {% if false %}
  • Developer
  • {% endif %} {% if false %}
  • Alumnii
  • {% endif %}
{% endif %} {% if user.isActive %} {% endif %}
{% if user.isActive %} {% if profile.profileFields %} {% for name,field in profile.profileFields %} {% endfor %} {% else %}
This user has not set any links yet.
{% endif %} {% else %}
Log in to view the full profile.
{% endif %}
{% endif %}
Account Standing
{% if profileHidden %}
Unknown
{% elseif profile.permission(constant('Sakura\\Perms\\Site::RESTRICTED')) %}

Restricted

{% else %} {% if profile.getWarnings %}
Bad
{% else %}
Good
{% endif %} {% endif %} {% if profile.getWarnings %}
This user has {{ profile.getWarnings|length }} warning{% if profile.getWarnings|length != 1 %}s{% endif %}!
After 10 warnings a user may be permanently banned.
{% endif %}
{% if not profileHidden %}
{% if profileView != (noUserpage ? 'comments' : 'index') %} {% endif %} {% if profileView != 'friends' %} {% endif %} {% if profileView != 'groups' %} {% endif %} {% if profileView != 'comments' %} {% endif %} {% if profileView != 'threads' %} {% endif %} {% if profileView != 'posts' %} {% endif %}
{% endif %}
{% include 'profile/' ~ profileView ~ '.twig' %}
{% endblock %}