|
{% if user %}
|
|
<form class="comment-form" method="POST" action="/comments/create">
|
|
<input type="hidden" name="target_uid" value="{{ _comment_target_uid }}">
|
|
<input type="hidden" name="target_type" value="{{ _comment_target_type }}">
|
|
<a href="/profile/{{ user['username'] }}">
|
|
<img src="{{ avatar_url('multiavatar', user['username'], 32) }}" class="avatar-img avatar-sm" alt="{{ user['username'] }}" loading="lazy">
|
|
</a>
|
|
<textarea name="content" placeholder="Your opinion goes here..." required maxlength="1000" class="emoji-picker-target" data-mention></textarea>
|
|
<div class="comment-form-actions">
|
|
<div class="attachment-upload-container" data-attachment-upload
|
|
data-max-size="{{ max_upload_size_mb() }}"
|
|
data-max-files="{{ max_attachments_per_resource() }}"
|
|
data-allowed-types="{{ allowed_file_types() }}"></div>
|
|
<button type="submit" class="comment-form-submit"><span class="icon">📤</span> Post</button>
|
|
</div>
|
|
</form>
|
|
{% endif %}
|