feat: Implement server-side comment preloading for improved performance and introduce new comment features including pinned comments, locked threads, and custom emojis.
This commit is contained in:
@@ -126,4 +126,18 @@
|
||||
</div>
|
||||
</div>
|
||||
<div id="comments-container" data-item-id="{{ item.id }}" @if(session)data-user="{{ session.user }}"
|
||||
@if(session.admin)data-is-admin="true" @endif @endif @if(item.is_comments_locked)data-is-locked="true" @endif></div>
|
||||
@if(session.admin)data-is-admin="true" @endif @endif @if(item.is_comments_locked)data-is-locked="true" @endif>
|
||||
<div class="comments-header">
|
||||
<h3>Comments @if(item.is_comments_locked)🔒@endif</h3>
|
||||
<div class="comments-controls">
|
||||
<span>Loading...</span>
|
||||
</div>
|
||||
</div>
|
||||
@if(session && session.user && !item.is_comments_locked)
|
||||
<div class="comment-input main-input">
|
||||
<textarea placeholder="Loading comment section..." disabled></textarea>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
<script id="initial-comments" type="application/json">{{ commentsJSON }}</script>
|
||||
<script id="initial-subscription" type="application/json">{{ isSubscribed }}</script>
|
||||
Reference in New Issue
Block a user