{% endif %}
{{ __(sUserPossessive, {
"display_name": ctx.user.displayName|e("html"),
}) }}
{% if ctx.posts|length > 0 %}
{% for post in ctx.posts %}
{% set hasAttachments = ctx.attachments[post.id] is defined and ctx.attachments[post.id]|length > 0 %}
{% if hasAttachments %}
{% endif %}
{{ renderPostSummary(post.content) }}
{{ __("posted on %post_date% in %topic%", {
"post_date": '' ~ post.postDate.format("c")|e("html") ~ '',
"topic": ' '
~ (ctx.topics[post.topicId].isLocked ? (' ') : '')
~ (ctx.topics[post.topicId] ? ctx.topics[post.topicId].title : null)|default(__("unknown"))|e("html") ~ '',
}) }}
|
{% endfor %}
{% else %}
{% include "components/alert_info.twig" with { message: __("This user has not posted anything yet") } %}
{% endif %}
{% if canEdit %}
|
{{ __("Edit profile") }}
{% set formId = "update_profile" %}
{% set formError = getAndClearFormError(formId) %}
{% if formError %}
{% include "components/alert_error.twig" with { message: formError } %}
{% endif %}
{% if isOwnProfile %}
{{ __("Change password") }}
{% set formId = "update_password" %}
{% set formError = getAndClearFormError(formId) %}
{% if formError %}
{% include "components/alert_error.twig" with { message: formError } %}
{% endif %}
{% endif %}
|