Mercurial Hosting > nabble
comparison src/nabble/view/naml/action_row.naml @ 0:7ecd1a4ef557
add content
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 21 Mar 2019 19:15:52 -0600 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:7ecd1a4ef557 |
---|---|
1 <macro name="action_link_style"> | |
2 <n.put_in_head.> | |
3 <style type="text/css"> | |
4 div.action-link { | |
5 float:left; | |
6 white-space:nowrap; | |
7 margin:.7em .3em; | |
8 } | |
9 </style> | |
10 </n.put_in_head.> | |
11 action-link | |
12 </macro> | |
13 | |
14 <macro name="new_topic_action_link" parameters="text"> | |
15 <div class="[n.action_link_style/]"> | |
16 <img src="/images/icon_post_message.png" class="image16" /> | |
17 <n.page_node.> | |
18 <n.new_topic_link> | |
19 <title> | |
20 <t>Post new message in <t.location.subject/></t> | |
21 </title> | |
22 <text> | |
23 <n.default. to="[t]New Topic[/t]"><n.text/></n.default.> | |
24 </text> | |
25 </n.new_topic_link> | |
26 </n.page_node.> | |
27 </div> | |
28 </macro> | |
29 | |
30 <macro name="returnable_action_link" dot_parameter="action_link"> | |
31 <n.if.is_front_page> | |
32 <then> | |
33 <n.action_link/> | |
34 </then> | |
35 <else> | |
36 <div class="[n.action_link_style/]" style="margin-left:.6em"> | |
37 <img src="/images/forum_sm.png" class="image16"/> | |
38 <n.page_node.node_link text="[t]Main Page[/t]"/> | |
39 </div> | |
40 </else> | |
41 </n.if.is_front_page> | |
42 </macro> | |
43 | |
44 <macro name="subapps_action_link" parameters="text"> | |
45 <n.returnable_action_link.> | |
46 <n.page_node.> | |
47 <n.if.has_subapps> | |
48 <then> | |
49 <div class="[n.action_link_style/]" style="margin-left:.6em"> | |
50 <img src="/images/forum_sm.png" class="image16"/> | |
51 <n.node_link> | |
52 <href><n.url template="view_subapps"/></href> | |
53 <text> | |
54 <n.default. to="[t]Sub-Forums[/t]"><n.text/></n.default.> | |
55 </text> | |
56 </n.node_link> | |
57 </div> | |
58 </then> | |
59 </n.if.has_subapps> | |
60 </n.page_node.> | |
61 </n.returnable_action_link.> | |
62 </macro> | |
63 | |
64 <macro name="topics_action_link" parameters="only_if_has_subapps" requires="node_page,servlet"> | |
65 <n.if.either condition1="[n.is_empty.only_if_has_subapps/]" condition2="[n.page_node.has_subapps/]"> | |
66 <then> | |
67 <n.returnable_action_link.> | |
68 <div class="[n.action_link_style/]" style="margin-left:.6em"> | |
69 <img src="/images/thread_sm.png" class="image16"/> | |
70 <n.page_node.node_link href="[n.path template='view_topics'/]" text="[t]Topics View[/t]" /> | |
71 </div> | |
72 </n.returnable_action_link.> | |
73 </then> | |
74 </n.if.either> | |
75 </macro> | |
76 | |
77 <macro name="people_action_link" requires="node_page"> | |
78 <n.if.page_node.has_people_page> | |
79 <then> | |
80 <div class="[n.action_link_style/]" style="margin-left:.6em"> | |
81 <img src="/images/people_sm.png" class="image16"/> | |
82 <n.page_node.people_link/> | |
83 </div> | |
84 </then> | |
85 </n.if.page_node.has_people_page> | |
86 </macro> | |
87 | |
88 <macro name="options_action_menu" requires="node_page"> | |
89 <div class="[n.action_link_style/]" style="margin-left:.6em"> | |
90 <img src="/images/gear.png" class="image16"/> | |
91 <n.page_node.app_dropdown/> | |
92 </div> | |
93 </macro> |