NDOJ/templates/chat/message.html

33 lines
1.4 KiB
HTML
Raw Normal View History

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) }}">
<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') }}">
{% if request.user.is_staff %}
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>
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 %}
<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>