sort_controls

NAML documentation   Watch a video
   Usages of this macro
... in search.naml
167
168
169
170
171
172
173
174
175
176
177
178
<macro name="sort_controls" requires="search">
    <div style="float:right;margin:0 1em">
        <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.sorted_by_date
Binary
Namespace: SearchNamespace
>
            <then>
                <a href="[n.sort_by_relevance_path
Macro
/]"><t>Sort by relevance</t></a> | <t>Sorted by date</t>
            </then>
            <else>
                <t>Sorted by relevance</t> | <a href="[n.sort_by_date_path
Macro
/]"><t>Sort by date</t></a>
            </else>
        </n.if.sorted_by_date>
    </div>
</macro>