{% 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 %} {% set youtube_is_channel_id = profile.user_youtube|slice(0, 2) == 'UC' and profile.user_youtube|length == 24 %} {% set profile_fields = { 'twitter': { 'title': 'Twitter', 'value': profile.user_twitter|escape, 'link': 'https://twitter.com/%s', 'format': '@%s', }, 'osu': { 'title': 'osu!', 'value': profile.user_osu|escape, 'link': 'https://osu.ppy.sh/users/%s', }, 'website': { 'title': 'Website', 'value': profile.user_website|escape, 'link': '%s', 'tooltip': '%s', }, 'youtube': { 'title': 'Youtube', 'value': profile.user_youtube|escape, 'link': 'https://youtube.com/' ~ (youtube_is_channel_id ? 'channel/' : '') ~ '%s', 'format': youtube_is_channel_id ? 'Channel' : '%s', }, 'steam': { 'title': 'Steam', 'value': profile.user_steam|escape, 'link': 'https://steamcommunity.com/id/%s', }, 'twitchtv': { 'title': 'Twitch.tv', 'value': profile.user_twitchtv|escape, 'link': 'https://twitch.tv/%s', }, 'lastfm': { 'title': 'Last.fm', 'value': profile.user_lastfm|escape, 'link': 'http://last.fm/user/%s', }, 'github': { 'title': 'Github', 'value': profile.user_github|escape, 'link': 'https://github.com/%s', }, 'skype': { 'title': 'Skype', 'value': profile.user_skype|escape, 'link': 'skype:%s?userinfo', }, 'discord': { 'title': 'Discord', 'value': profile.user_discord|escape, }, } %} {% block content %} {# navigation({ (profile.username): 'profile', 'Comments': 'comments', }, 'profile', true, '#%s') #}
Profile of {{ profile.username }}
{% if profile.user_title is not empty %}
{{ profile.user_title }}
{% endif %}
{{ profile.user_country }}
{{ profile.user_country|country_name }}
Joined
{% if profile.last_seen is not null %}
Last Seen
{% endif %}
Topics
{{ profile.forum_topic_count|number_format }}
Posts
{{ profile.forum_post_count|number_format }}
{% if profile.comments_count > 0 %}
Comments
{{ profile.comments_count|number_format }}
{% endif %} {% if profile.changelog_count > 0 %} {% endif %}
{% if app.hasActiveSession %} {% spaceless %}
{% endspaceless %} {% endif %}
{% endblock %}