0
|
1 <macro name="call_view_standard">
|
|
2 <n.view_standard />
|
|
3 </macro>
|
|
4
|
|
5 <subroutine name="view_standard" requires="basic,nabble,servlet">
|
|
6 <n.apply_app_namespace.view_standard_page />
|
|
7 </subroutine>
|
|
8
|
|
9 <macro name="view_standard_page">
|
|
10 <n.set_app_rows_per_page rows_per_page="[n.forum_topics_per_page/]"/>
|
|
11 <n.app_html>
|
|
12 <head>
|
|
13 <n.app_title />
|
|
14 <n.standard_table_stylesheet/>
|
|
15 </head>
|
|
16 <body>
|
|
17 <n.new_topic_action_link/>
|
|
18 <n.topics_action_link only_if_has_subapps="true"/>
|
|
19 <n.people_action_link/>
|
|
20 <n.options_action_menu/>
|
|
21
|
|
22 <n.app_child_pagination margin=".8em .3em .5em 0"/>
|
|
23 <n.standard_table.standard_table_columns />
|
|
24 <n.app_child_pagination margin=".8em .3em .5em 0"/>
|
|
25 <n.forum_footer/>
|
|
26 </body>
|
|
27 </n.app_html>
|
|
28 </macro>
|
|
29
|
|
30 <macro name="forum_topics_per_page">
|
|
31 35
|
|
32 </macro>
|
|
33
|
|
34 <macro name="standard_table_columns" requires="app_namespace">
|
|
35 <n.pin_column/>
|
|
36 <n.topics_column title="[n.standard_topics_column_title/]" count="[n.page_node.child_count/]"/>
|
|
37 <n.replies_column/>
|
|
38 <n.last_post_column white_space="nowrap"/>
|
|
39 <n.views_column/>
|
|
40 </macro>
|
|
41
|
|
42 <macro name="standard_table_columns" requires="narrow_app_namespace">
|
|
43 <n.pin_column/>
|
|
44 <n.topics_summary_column title="[n.standard_topics_column_title/]" count="[n.page_node.child_count/]" width="50%"/>
|
|
45 <n.last_post_column white_space="nowrap" width="50%"/>
|
|
46 </macro>
|
|
47
|
|
48 <macro name="standard_topics_column_title">
|
|
49 <n.if.page_node.has_subapps>
|
|
50 <then><t>Sub-Forums & Topics</t></then>
|
|
51 <else><t>Topics</t></else>
|
|
52 </n.if.page_node.has_subapps>
|
|
53 </macro>
|
|
54
|
|
55 <macro name="standard_table_stylesheet">
|
|
56 <style type="text/css">
|
|
57 table.main {
|
|
58 width:100%;
|
|
59 border-width: 1px;
|
|
60 border-style: solid;
|
|
61 border-collapse:collapse;
|
|
62 }
|
|
63 table.main td {
|
|
64 padding:.1em;
|
|
65 height:2.2em;
|
|
66 }
|
|
67 tr.header-row td {
|
|
68 font-weight:bold;
|
|
69 padding: .1em .2em;
|
|
70 border-bottom-width: 1px;
|
|
71 border-bottom-style: solid;
|
|
72 }
|
|
73 </style>
|
|
74 </macro>
|
|
75
|
|
76 <macro name="standard_table" dot_parameter="columns">
|
|
77 <div style="clear:both"></div>
|
|
78 <table class="main medium-border-color">
|
|
79 <n.table_header.>
|
|
80 <tr class="header-row shaded-bg-color">
|
|
81 <n.columns/>
|
|
82 </tr>
|
|
83 </n.table_header.>
|
|
84 <n.page_node.children_list.
|
|
85 start="[n.app_index_record/]"
|
|
86 length="[n.app_rows_per_page/]"
|
|
87 filter="[n.app_topic_filter/]"
|
|
88 sort="[n.if.app_is_by_priority][then]priority[/then][else]pinned-and-last-node-date[/else][/n.if.app_is_by_priority]"
|
|
89 >
|
|
90 <n.loop.>
|
|
91 <tr class="[n.even_row_background/] main-row">
|
|
92 <n.columns/>
|
|
93 </tr>
|
|
94 <n.if.next_node>
|
|
95 <then>
|
|
96 <tr class="[n.odd_row_background/] main-row">
|
|
97 <n.columns/>
|
|
98 </tr>
|
|
99 </then>
|
|
100 </n.if.next_node>
|
|
101 </n.loop.>
|
|
102 </n.page_node.children_list.>
|
|
103 <n.if.not.page_node.has_children>
|
|
104 <then>
|
|
105 <tr>
|
|
106 <td></td>
|
|
107 <td colspan="10" style="padding:.8em 0">
|
|
108 <t>Empty</t>
|
|
109 </td>
|
|
110 </tr>
|
|
111 </then>
|
|
112 </n.if.not.page_node.has_children>
|
|
113 </table>
|
|
114 <div style="clear:both"></div>
|
|
115 </macro>
|