2023-02-18 21:12:33 +00:00
|
|
|
<li class="message" id="message-{{ message.id }}" message-id="{{ message.id }}">
|
2023-11-02 01:54:09 +00:00
|
|
|
<a href="{{ url('user_page', message.author.username) }}">
|
2024-04-14 05:23:14 +00:00
|
|
|
<img loading="lazy" src="{{ gravatar(message.author, 135) }}" class="profile-pic user-img">
|
2023-01-27 23:11:10 +00:00
|
|
|
</a>
|
|
|
|
<div class="body-message">
|
|
|
|
<div class="user-time">
|
|
|
|
<span class="username {{ message.author.css_class }}">
|
2023-11-02 01:54:09 +00:00
|
|
|
<a href="{{ url('user_page', message.author.username) }}">
|
|
|
|
{{ message.author.username }}
|
2023-01-27 23:11:10 +00:00
|
|
|
</a>
|
|
|
|
</span>
|
|
|
|
<span class="time">
|
|
|
|
{{ relative_time(message.time, abs=_('{time}'), rel=_('{time}'), format=_('g:i a d/m/Y')) }}
|
|
|
|
</span>
|
2021-06-19 03:26:43 +00:00
|
|
|
</div>
|
2023-01-27 23:11:10 +00:00
|
|
|
<span class="content-message">
|
|
|
|
<div class="body-block" id="body-block-{{ message.id }}" title="{{ message.time|date('g:i a') }}">
|
2024-08-13 15:10:25 +00:00
|
|
|
{% if request.user.is_staff or request.profile == message.author %}
|
2023-03-16 04:08:13 +00:00
|
|
|
<a class="red chatbtn_remove_mess chat_remove" value="{{message.id}}" style="cursor: pointer;">
|
2023-01-27 23:11:10 +00:00
|
|
|
{{_('Delete')}}
|
|
|
|
</a>
|
2024-08-13 15:10:25 +00:00
|
|
|
{% endif %}
|
|
|
|
{% if request.user.is_staff and request.profile != message.author %}
|
2023-03-16 04:08:13 +00:00
|
|
|
<a class="red chatbtn_remove_mess chat_mute" value="{{message.id}}" style="cursor: pointer;">
|
|
|
|
{{_('Mute')}}
|
|
|
|
</a>
|
2023-01-27 23:11:10 +00:00
|
|
|
{% endif %}
|
2024-01-28 21:39:27 +00:00
|
|
|
<div class="message-text message-text-other" id="message-text-{{ message.id }}">
|
2023-02-13 00:32:31 +00:00
|
|
|
{{message.body|markdown(lazy_load=False)|reference|str|safe }}
|
2023-01-27 23:11:10 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<div class="clear"></div>
|
2021-06-19 03:26:43 +00:00
|
|
|
</li>
|