{% if comment.text is not none and comment.text | length > 0 or comment.rating != -9999 %} {% if comment.is_hidden != True %}
{{ comment.users.username }} {% set user_status = ["not defined", " (studiert)", " (erstellt RATs)", " (hält Vorlesungen)", " (Admin)"] %} {{user_status[comment.users.user_rights|int] }} {% if comment.rating == -9999 %} (Fehlermeldung) {% endif %} Datum: {{ comment.creation_date }}
{% if user.user_rights > 2 %}
{% endif %}

{{ comment.text }}

{% elif user.user_rights == 4 %}
{{ comment.users.username }} {% set user_status = ["not defined", " (studiert)", " (erstellt RATs)", " (hält Vorlesungen)", " (Admin)"] %} {{user_status[comment.users.user_rights|int] }} {% if comment.rating == -9999 %} (Fehlermeldung) {% endif %} Datum: {{ comment.creation_date }}
{% if user.user_rights > 2 %}
{% endif %}

{{ comment.text }}

{% endif %} {% endif %}