user_nodes.naml

<override_macro name="user_nodes" requires="servlet">
    <n.user_page.>
        <n.html>
            <head>
                <n.user_nodes_meta/>
                <n.title.>
                    <t>Posts of <t.author.page_user.name/></t>
                    <n.hide_if_equals. value1="[n.user_nodes_page_number/]" value2="1">
                        | <t>Page <t.number.user_nodes_page_number/></t>
                    </n.hide_if_equals.>
                </n.title.>
                <style type="text/css">
                    table.nodes {
                    width:100%;
                    border-collapse:collapse;
                    }
                    table.nodes td {
                    padding:.3em;
                    }
                    table.nodes td.header {
                    padding: .2em;
                    font-weight:bold;
                    }
                    div.table-title {
                    font-weight:bold;
                    font-size:120%;
                    margin: 1em .1em 1em;
                    }
                </style>
                <style type="text/css">  
                    table.subscriptions {  
                    border-collapse:collapse;  
                    margin-top:1em;  
                    clear:both;  
                    width:100%  
                    }
                    table.subscriptions th {  
                    padding: .3em .6em;  
                    text-align:left;  
                    border-bottom-style:solid;  
                    border-bottom-width:2px;  
                    }  
                    table.subscriptions td {  
                    padding: .1em .6em;
                    }  
                </style> 
                </head>
            <body>
                <n.page_user.profile_header/>
                
                <n.user_nodes_search_box/>
                

                
                <!-- If this is the profile of the visitor -->
                <n.if.visitor.equals.page_user>
                    <then>
                        
                        <n.horizontal_tab_control.>
                            <n.add_horizontal_tab url="" text="[t]Your Posts in [t.location.root_node.subject/][/t]" selected="true" details=""/>

                            <n.add_horizontal_tab url="[n.display_user_subscriptions_path/]" text="[t]Your Subscriptions[/t]" selected="false" details=""/>
                            
                        </n.horizontal_tab_control.>
                        
                    </then>
                    <else>
                        <n.if.visitor.is_site_admin>
                            <then>
                                <n.display_subscriptions/>
                            </then>
                        </n.if.visitor.is_site_admin>
                
                        <div class="second-font table-title">
                            <t>Posts in <t.location.root_node.subject/></t>
                        </div>
                    </else>
                </n.if.visitor.equals.page_user>
                
                <n.user_nodes_table.>
                    <n.date_column width="7em"/>
                    <n.subject_column/>
                    <n.count_column/>
                    <n.location_column/>
                </n.user_nodes_table.>
            </body>
        </n.html>
    </n.user_page.>
</override_macro>