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) }}">
|
|
|
|
{{message.author}}
|
|
|
|
</a>
|
|
|
|
</span>
|
|
|
|
<span class="time">
|
|
|
|
{{ message.time|date('TIME_FORMAT') }}
|
|
|
|
<span class="message_date">{{ message.time|date('d-m-Y') }}</span>
|
|
|
|
</span>
|
|
|
|
{% if request.user.is_staff %}
|
|
|
|
<a class="chatbtn_remove_mess" value="{{message.id}}" style="color:red; cursor: pointer;">
|
|
|
|
Delete
|
|
|
|
</a>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
<span class="content-message">
|
|
|
|
{{message.body | markdown('comment', MATH_ENGINE)|reference|str|safe }}
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<div class="clear"></div>
|
|
|
|
</li>
|