{% extends 'user/master.twig' %} {% from 'macros.twig' import navigation %} {% set image = '/profile.php?u=' ~ profile.user_id ~ '&m=avatar' %} {% set canonical_url = '/profile.php?u=' ~ profile.user_id %} {% set title = 'Profile of ' ~ profile.username %} {% set manage_link = '/manage/users.php?v=view&u=' ~ profile.user_id %} {% if has_background %} {% set site_background_url = '/profile.php?m=background&u=' ~ profile.user_id %} {% endif %} {% set stats = [ { 'title': 'Joined', 'is_date': true, 'value': profile.created_at, }, { 'title': 'Last seen', 'is_date': true, 'value': profile.last_seen, }, { 'title': 'Topics', 'value': profile.forum_topic_count, }, { 'title': 'Posts', 'value': profile.forum_post_count, }, { 'title': 'Comments', 'value': profile.comments_count, }, { 'title': 'Changes', 'value': profile.changelog_count, }, ] %} {% block content %}
{% include 'user/_layout/header.twig' %}
The profile pages are still under much construction, more things will eventually populate the area where this container current exists.
{% if current_user is not defined %}
You must log in to view full profiles!
{% elseif profile_fields|default([])|length > 0 %}
Elsewhere
{% for name, data in profile_fields %}
{{ data.name }}
{% set profile_field_value = (data.format is defined ? data.format : '%s')|format(data.value) %} {% if data.link is defined %} {{ data.link|format(data.value)|html_link(profile_field_value, 'profile__accounts__link')|raw }} {% else %} {{ profile_field_value }} {% endif %}
{% endfor %}
{% endif %}
{% if profile.user_about_content|length > 0 %}
About {{ profile.username }}
{{ profile.user_about_content|escape|parse_text(profile.user_about_parser)|raw }}
{% endif %}
{% endblock %}