Fixed errors on profiles.

This commit is contained in:
flash 2023-08-28 14:45:32 +00:00
parent 34bd71600a
commit ca23822e40

View file

@ -79,7 +79,7 @@
{% set show_profile_fields = not profile_is_guest and (profile_is_editing ? perms.edit_profile : profile_fields_display_values|default([]) is not empty) %}
{% set show_background_settings = profile_is_editing and perms.edit_background %}
{% set show_birthdate = profile_is_editing and perms.edit_birthdate %}
{% set show_active_forum_info = not profile_is_deleted and not profile_is_editing and (profile_active_category_info is not empty or profile_active_topic_info.topic_id|default(0) > 0) %}
{% set show_active_forum_info = not profile_is_guest and not profile_is_deleted and not profile_is_editing or (profile_active_category_info is defined and profile_active_category_info is not empty or profile_active_topic_info.topic_id|default(0) > 0) %}
{% set show_warnings = profile_warnings is defined and profile_warnings|length > 0 %}
{% set show_sidebar = (not profile_is_banned or profile_can_edit) and (profile_is_guest or show_profile_fields or show_background_settings or show_birthdate or show_active_forum_info or show_warnings) %}
@ -142,7 +142,7 @@
{{ container_title('Forum Activity') }}
<div class="profile__forum-activity__content">
{% if profile_active_category_info is not empty %}
{% if profile_active_category_info is defined and profile_active_category_info is not empty %}
<div class="profile__forum-activity__category">
<div class="profile__forum-activity__leader">
Most active category
@ -170,7 +170,7 @@
</div>
</div>
{% endif %}
{% if profile_active_topic_info is not empty %}
{% if profile_active_topic_info is defined and profile_active_topic_info is not empty %}
<div class="profile__forum-activity__topic">
<div class="profile__forum-activity__leader">
Most active topic