Skip to content
This repository was archived by the owner on May 19, 2021. It is now read-only.

Commit 4e98d45

Browse files
committed
Remove unnessary checks for inactive users
Since it is planed to delete the messages in the feature after some time, it will a uncommon usecase to display messages from deleted users. Also the amount of checks is quite ugly inside the template.
1 parent 4f6bab3 commit 4e98d45

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

  • inyoka_theme_default/templates/portal/privmsg

inyoka_theme_default/templates/portal/privmsg/index.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -127,18 +127,18 @@
127127
</a>
128128
</td>
129129
<td data-title="{% trans %}From{% endtrans %}">
130-
<a{% if not entry.message.author.is_active %} class="user_inactive"{% endif %} href="{{ entry.message.author|url }}">
131-
{{ entry.message.author|e }}
130+
<a href="{{ entry.message.author|url }}">
131+
{{ entry.message.author|e }}
132132
</a>
133133
</td>
134134
<td data-title="{% trans %}To{% endtrans %}">
135135
{% if entry.message.recipients|length == 0 %}
136-
<a{% if not entry.message.author.is_active %} class="user_inactive"{% endif %} href="{{ entry.message.author|url }}">
137-
{{ entry.message.author|e }}
136+
<a href="{{ entry.message.author|url }}">
137+
{{ entry.message.author|e }}
138138
</a>
139139
{% else %}
140-
<a{% if not entry.message.recipients[0].is_active %} class="user_inactive"{% endif %} href="{{ entry.message.recipients[0]|url }}">
141-
{{ entry.message.recipients[0]|e }}
140+
<a href="{{ entry.message.recipients[0]|url }}">
141+
{{ entry.message.recipients[0]|e }}
142142
</a>
143143
{% endif %}
144144
{% if entry.message.recipients|length > 1 %}, …{% endif %}

0 commit comments

Comments
 (0)