Mercurial Hosting > nabble
view src/nabble/view/naml/view_standard.naml @ 0:7ecd1a4ef557
add content
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 21 Mar 2019 19:15:52 -0600 |
parents | |
children |
line wrap: on
line source
<macro name="call_view_standard"> <n.view_standard /> </macro> <subroutine name="view_standard" requires="basic,nabble,servlet"> <n.apply_app_namespace.view_standard_page /> </subroutine> <macro name="view_standard_page"> <n.set_app_rows_per_page rows_per_page="[n.forum_topics_per_page/]"/> <n.app_html> <head> <n.app_title /> <n.standard_table_stylesheet/> </head> <body> <n.new_topic_action_link/> <n.topics_action_link only_if_has_subapps="true"/> <n.people_action_link/> <n.options_action_menu/> <n.app_child_pagination margin=".8em .3em .5em 0"/> <n.standard_table.standard_table_columns /> <n.app_child_pagination margin=".8em .3em .5em 0"/> <n.forum_footer/> </body> </n.app_html> </macro> <macro name="forum_topics_per_page"> 35 </macro> <macro name="standard_table_columns" requires="app_namespace"> <n.pin_column/> <n.topics_column title="[n.standard_topics_column_title/]" count="[n.page_node.child_count/]"/> <n.replies_column/> <n.last_post_column white_space="nowrap"/> <n.views_column/> </macro> <macro name="standard_table_columns" requires="narrow_app_namespace"> <n.pin_column/> <n.topics_summary_column title="[n.standard_topics_column_title/]" count="[n.page_node.child_count/]" width="50%"/> <n.last_post_column white_space="nowrap" width="50%"/> </macro> <macro name="standard_topics_column_title"> <n.if.page_node.has_subapps> <then><t>Sub-Forums & Topics</t></then> <else><t>Topics</t></else> </n.if.page_node.has_subapps> </macro> <macro name="standard_table_stylesheet"> <style type="text/css"> table.main { width:100%; border-width: 1px; border-style: solid; border-collapse:collapse; } table.main td { padding:.1em; height:2.2em; } tr.header-row td { font-weight:bold; padding: .1em .2em; border-bottom-width: 1px; border-bottom-style: solid; } </style> </macro> <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.> <tr class="[n.even_row_background/] main-row"> <n.columns/> </tr> <n.if.next_node> <then> <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> </macro>