0
|
1 <override_macro name="reply" requires="servlet">
|
|
2 <n.node_page.>
|
|
3 <n.if.page_node.when_created.is_older_than days="[n.thread_expiration_days/]">
|
|
4 <then.redirect_to.expired_thread_page_path/>
|
|
5 <else.overridden/>
|
|
6 </n.if.page_node.when_created.is_older_than>
|
|
7 </n.node_page.>
|
|
8 </override_macro>
|
|
9
|
|
10 <macro name="thread_expiration_days">
|
|
11 365
|
|
12 </macro>
|
|
13
|
|
14 <macro name="expired_thread_page_path" requires="node_page">
|
|
15 /template/NamlServlet.jtp?macro=expired_thread_page&node=<n.page_node.id/>
|
|
16 </macro>
|
|
17
|
|
18 <macro name="expired_thread_page" requires="servlet">
|
|
19 <n.node_page.>
|
|
20 <n.html>
|
|
21 <head>
|
|
22 <title><t>This thread is read-only</t></title>
|
|
23 </head>
|
|
24 <body>
|
|
25 <h1><t>This thread is read-only</t></h1>
|
|
26
|
|
27 <p>
|
|
28 <t>This topic was created a long time ago and a new reply here would be confusing to a lot of people.</t><br/>
|
|
29 <t>If you have questions about this subject, please <a href="[n.page_node.get_app_node.new_topic_path/]">create a new topic</a> and link to this thread if needed.</t>
|
|
30 </p>
|
|
31 <p>
|
|
32 « <a href="[n.page_node.path/]">Go back</a>
|
|
33 </p>
|
|
34 </body>
|
|
35 </n.html>
|
|
36 </n.node_page.>
|
|
37 </macro> |