smart_post_link

NAML documentation   Watch a video
   Usages of this macro
... in topic.naml
1626
1627
1628
1629
1630
1631
1632
1633
1634
<macro name="smart_post_link" requires="node" dot_parameter="href" parameters="text, title, class">
    <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.is_post
Binary
Namespace: NodeNamespace
>
        <then>
            <a href="[n.node_href
Macro
Requires: node
Parameters: href
.href/]" title="[n.title/]" class="[n.hide_null
Binary
Namespace: BasicNamespace
Parameters: value
.class/] post-link[n.topic_node
Binary
Namespace: NodeNamespace
Parameters: do
.id
Binary
Namespace: NodeNamespace
/]" node-id="[n.id
Binary
Namespace: NodeNamespace
/]"><n.node_text
Macro
Requires: node
Parameters: text
.text/></a>
            <n.call_later
Binary
Namespace: NabbleNamespace
Parameters: param, value
 value="[n.topic_node
Binary
Namespace: NodeNamespace
Parameters: do
.id
Binary
Namespace: NodeNamespace
/]" param="markUnreadTopics"/>
        </then>
        <else.node_link
Macro
Requires: node
Parameters: text, href, title, class
 text="[n.text/]"/>
    </n.if.is_post>
</macro>