Implemented Add $thread.discussion_open to thread's class

Mike Tougeron

Well-known member
Currently the <li> tag for a thread is
HTML:
<li id="thread-{$thread.thread_id}" class="discussionListItem {$thread.discussion_state}{xen:if {$thread.sticky}, ' sticky'}{xen:if {$thread.isNew}, ' unread'}{xen:if {$thread.prefix_id}, ' prefix{$thread.prefix_id}'}{xen:if {$thread.isIgnored}, ' ignored'}" data-author="{$thread.username}">
It would be nice to add a class name for whether or not the thread is open or closed. e.g.:

HTML:
<li id="thread-{$thread.thread_id}" class="discussionListItem {$thread.discussion_state} {xen:if '!{$thread.discussion_open}', ' locked'}{xen:if {$thread.sticky}, ' sticky'}{xen:if {$thread.isNew}, ' unread'}{xen:if {$thread.prefix_id}, ' prefix{$thread.prefix_id}'}{xen:if {$thread.isIgnored}, ' ignored'}" data-author="{$thread.username}">
 
Upvote 2
This suggestion has been implemented. Votes are no longer accepted.
Top Bottom