standard_table.naml

 <override_macro name="standard_table" dot_parameter="columns">
    <div style="clear:both"></div>
    <table class="main medium-border-color">
        <n.table_header.>
            <tr class="header-row shaded-bg-color">
                <n.columns/>
            </tr>
        </n.table_header.>
        <n.page_node.children_list.
            start="[n.app_index_record/]"
            length="[n.app_rows_per_page/]"
            filter="[n.app_topic_filter/]"
            sort="[n.if.app_is_by_priority][then]priority[/then][else]pinned-and-last-node-date[/else][/n.if.app_is_by_priority]"
        >
            <n.loop.>
                <n.comment.>
                    Here, the current node inside the loop is checked if it can be viewed by the visitor. 
                    If not, we check if there is a next node at the loop and jump to that. I there is no next node, the loop stops
                </n.comment.>                
                
                <n.if.not.current_node.can_be_viewed_by_visitor>
                    <then><n.if.next_node><else><n.break/></else></n.if.next_node></then>
                </n.if.not.current_node.can_be_viewed_by_visitor>                                
                        
                <tr class="[n.even_row_background/] main-row">
                    <n.columns/>
                </tr>

                <n.if.next_node>
                    <then>                        
                        <n.if.not.current_node.can_be_viewed_by_visitor>
                            <then><n.if.next_node><else><n.break/></else></n.if.next_node></then>
                        </n.if.not.current_node.can_be_viewed_by_visitor>        
                        
                        <tr class="[n.odd_row_background/] main-row">
                            <n.columns/>
                        </tr>
                    </then>
                </n.if.next_node>

            </n.loop.>
        </n.page_node.children_list.>
        <n.if.not.page_node.has_children>
            <then>
                <tr>
                    <td></td>
                    <td colspan="10" style="padding:.8em 0">
                        <t>Empty</t>
                    </td>
                </tr>
            </then>
        </n.if.not.page_node.has_children>
    </table>
    <div style="clear:both"></div>
</override_macro>