Re: Locked topic icon
Posted by
Pedro on
URL: https://support.nabble.com/Locked-topic-icon-tp7431914p7437943.html
Hi,
you'll have to edit your NAML code.
Go to "See how NAML generates this page"
"engine wheel" -> Search macros -> Macro by name - > topics_column
topics_column -> override this macro
starting from line 249, your code will be like this
<span class="weak-color">
<t>by <t.author.owner.name truncate="20"/></t>
</span>
</else>
Then, paste this code after line 251:
<span id="lock-icon" class="weak-color" style="padding:0 .5em;margin-right:.5em;[n.hidden_if.not.current_node.is_locked_topic/]">
<img src="/images/lock_sm.png" width="10" height="15" style="vertical-align:middle"/> <t>Locked</t>
</span>
You final code, starting form line 249 will be like this:
<span class="weak-color">
<t>by <t.author.owner.name truncate="20"/></t>
</span>
<span id="lock-icon" class="weak-color" style="padding:0 .5em;margin-right:.5em;[n.hidden_if.not.current_node.is_locked_topic/]">
<img src="/images/lock_sm.png" width="10" height="15" style="vertical-align:middle"/> <t>Locked</t>
</span>
</else>