Tickets Add lock symbol

swiftyste

Active Member
Would be awesome & much easier to sort through tickets that are locked instead of keep looking into each ticket.

Something like this

Annotation 2020-06-04 040916.png
 
Upvote 1

swiftyste

Active Member
Managed to add this as well as deleted & moderated

by adding this line of code

PHP:
<xf:if is="$ticket.discussion_state === 'deleted'">
                        <li>
                            <i class="structItem-status structItem-status--deleted" aria-hidden="true" title="deleted"></i>
                            <span class="u-srOnly">deleted</span>
                        </li>
                    </xf:if>
                    <xf:if is="$ticket.discussion_state === 'moderated'">
                    <li>
                            <i class="structItem-status structItem-status--moderated" aria-hidden="true" title="moderated"></i>
                            <span class="u-srOnly">Awaiting approval</span>
                        </li>
                    </xf:if>
                    
                    <xf:if is="$ticket.ticket_locked">
                        <li>
                            <i class="structItem-status structItem-status--locked" aria-hidden="true" title="Locked"></i>
                            <span class="u-srOnly">Locked</span>
                        </li>
                    </xf:if>

To the following area - nf_tickets_ticket_list_macros

and add the line of code above in-between the following:

PHP:
<div class="structItem-cell structItem-cell--main" data-xf-init="touch-proxy">
                <ul class="structItem-statuses">
                    <li><span class="{{ $ticket.Status.css_class }}">{{ $ticket.Status.title }}</span></li>
                    <xf:if is="property('reactionSummaryOnLists') == 'status' && $ticket.first_message_reactions">
                        <li><xf:reactions summary="true" reactions="{$ticket.first_message_reactions}" /></li>
                    </xf:if>
                        
*Insert line of code shown above here*
                        
<xf:if is="{$showWatched} AND {$xf.visitor.user_id}">
                        <xf:if is="{$ticket.Watch.{$xf.visitor.user_id}}">
                            <li>

Screenshot 2020-11-16 001056.png
Screenshot 2020-11-16 001232.png
Screenshot 2020-11-16 001755.png
 
Top