2021-07-02 06:38:48 +00:00
|
|
|
<li class="message" id="message-{{ message.id }}">
|
|
|
|
<a href="{{ url('user_page', message.author.user.username) }}">
|
|
|
|
<img src="{{ gravatar(message.author, 135) }}" class="profile-pic">
|
|
|
|
</a>
|
2021-06-19 03:26:43 +00:00
|
|
|
<div class="body-message">
|
|
|
|
<div class="user-time">
|
|
|
|
<span class="username {{ message.author.css_class }}">
|
|
|
|
<a href="{{ url('user_page', message.author.user.username) }}">
|
2021-11-21 04:23:03 +00:00
|
|
|
{{ message.author }}
|
2021-06-19 03:26:43 +00:00
|
|
|
</a>
|
|
|
|
</span>
|
|
|
|
<span class="time">
|
2021-07-24 06:36:34 +00:00
|
|
|
{{ relative_time(message.time, abs=_('{time}'), rel=_('{time}'), format=_('g:i a d/m/Y')) }}
|
2021-06-19 03:26:43 +00:00
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<span class="content-message">
|
2021-11-21 04:23:03 +00:00
|
|
|
<div class="body-block" id="body-block-{{ message.id }}" title="{{ message.time|date('g:i a') }}">
|
2021-07-24 06:36:34 +00:00
|
|
|
{% if request.user.is_staff %}
|
|
|
|
<a class="chatbtn_remove_mess" value="{{message.id}}" style="color:red; cursor: pointer;">
|
|
|
|
{{_('Delete')}}
|
|
|
|
</a>
|
|
|
|
{% endif %}
|
2022-02-02 09:03:57 +00:00
|
|
|
<div class="message-text message-text-other">
|
2022-11-07 22:11:35 +00:00
|
|
|
{{message.body|markdown(lazy_load=True)|reference|str|safe }}
|
2022-02-02 09:03:57 +00:00
|
|
|
</div>
|
2021-07-24 06:36:34 +00:00
|
|
|
</div>
|
2021-06-19 03:26:43 +00:00
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<div class="clear"></div>
|
|
|
|
</li>
|