0
|
1 <subroutine name="view_board" requires="basic,nabble,servlet">
|
|
2 <n.view_board_page/>
|
|
3 </subroutine>
|
|
4
|
|
5 <macro name="view_board_page">
|
|
6 <n.app_html>
|
|
7 <head>
|
|
8 <n.app_title/>
|
|
9 <n.board_table_stylesheet/>
|
|
10 </head>
|
|
11 <body>
|
|
12 <n.topics_action_link/>
|
|
13 <n.people_action_link/>
|
|
14 <n.options_action_menu/>
|
|
15
|
|
16 <n.board_table.>
|
|
17 <n.subcategories_column title="[n.current_node.node_link class='second-font category-link'/]"/>
|
|
18 <n.topic_count_column width="5em"/>
|
|
19 <n.post_count_column width="5em"/>
|
|
20 <n.last_post_column/>
|
|
21 </n.board_table.>
|
|
22
|
|
23 <n.forum_footer/>
|
|
24 </body>
|
|
25 </n.app_html>
|
|
26 </macro>
|
|
27
|
|
28 <macro name="board_table_stylesheet">
|
|
29 <style type="text/css">
|
|
30 table.main {
|
|
31 margin-top:.2em;
|
|
32 border-collapse:collapse;
|
|
33 width:100%;
|
|
34 border-width:1px;
|
|
35 border-style:solid;
|
|
36 }
|
|
37 table.main tr.category-row td {
|
|
38 padding: .3em .4em;
|
|
39 font-weight: bold;
|
|
40 border-width: 1px;
|
|
41 border-style: solid;
|
|
42 border-left: none;
|
|
43 border-right: none;
|
|
44 }
|
|
45 table.main tr.main-row td {
|
|
46 padding:.3em .5em;
|
|
47 border-bottom-width: 1px;
|
|
48 border-bottom-style: dotted;
|
|
49 }
|
|
50 table.main tr.main-row,
|
|
51 table.avatar-table tr {
|
|
52 vertical-align:top;
|
|
53 }
|
|
54 div.sub-forums {
|
|
55 margin-top:.8em;
|
|
56 font-size:90%;
|
|
57 clear:both;
|
|
58 }
|
|
59 a.category-link {
|
|
60 text-decoration:none;
|
|
61 font-weight:bold;
|
|
62 font-size:110%;
|
|
63 }
|
|
64 </style>
|
|
65 </macro>
|
|
66
|
|
67 <macro name="board_table" dot_parameter="columns">
|
|
68 <div style="clear:both"></div>
|
|
69 <table class="main medium-border-color">
|
|
70 <n.if.page_node.has_children>
|
|
71 <then>
|
|
72 <n.page_node.children_list. length="20">
|
|
73 <n.loop.>
|
|
74 <n.table_header.>
|
|
75 <tr class="category-row shaded-bg-color">
|
|
76 <n.columns/>
|
|
77 </tr>
|
|
78 </n.table_header.>
|
|
79 <n.if.current_node.has_children>
|
|
80 <then>
|
|
81 <n.current_node.children_list. length="20">
|
|
82 <n.loop.>
|
|
83 <tr class="main-row">
|
|
84 <n.columns/>
|
|
85 </tr>
|
|
86 </n.loop.>
|
|
87 <n.if.there_is_more>
|
|
88 <then>
|
|
89 <tr>
|
|
90 <td></td>
|
|
91 <td colspan="4"><n.page_node.node_link href="[n.url template='view_standard'/]" text="[t]View more[/t]"/> »</td>
|
|
92 </tr>
|
|
93 </then>
|
|
94 </n.if.there_is_more>
|
|
95 </n.current_node.children_list.>
|
|
96 </then>
|
|
97 <else>
|
|
98 <tr>
|
|
99 <td style="width:35px"></td>
|
|
100 <td style="padding:.7em .5em">
|
|
101 <n.if.current_node.is_app>
|
|
102 <then><t>No sub-forums</t></then>
|
|
103 <else><t>No replies</t></else>
|
|
104 </n.if.current_node.is_app>
|
|
105 </td>
|
|
106 <td colspan="3"></td>
|
|
107 </tr>
|
|
108 </else>
|
|
109 </n.if.current_node.has_children>
|
|
110 </n.loop.>
|
|
111 <n.if.there_is_more>
|
|
112 <then>
|
|
113 <tr>
|
|
114 <td colspan="5" style="padding:.5em"><n.page_node.node_link href="[n.url template='view_standard'/]" text="[t]More categories[/t]"/> »</td>
|
|
115 </tr>
|
|
116 </then>
|
|
117 </n.if.there_is_more>
|
|
118 </n.page_node.children_list.>
|
|
119 </then>
|
|
120 <else>
|
|
121 <tr>
|
|
122 <td colspan="4"><t>No sub-forums</t></td>
|
|
123 </tr>
|
|
124 </else>
|
|
125 </n.if.page_node.has_children>
|
|
126 </table>
|
|
127 <div style="clear:both"></div>
|
|
128 </macro> |