... | in send_deleted_nodes_email.naml |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
<override_macro name="send_deleted_nodes_email" requires="node">
<n.descendant_nodes_by_user Binary Namespace: NodeNamespace
Parameters:
do
♦ ♦
<n.loop Macro Requires: sequence
Parameters:
by, do
♦ ♦
<n.if Binary Namespace: BasicNamespace
Parameters:
condition, else, then
♦ ♦ Binary Namespace: UserList
Parameters:
do
♦ ♦ Binary Namespace: UserNamespace
♦ ♦
<then>
<n.new_email Binary Namespace: NabbleNamespace
Parameters:
do
♦ ♦
<n.nodes_list Binary Namespace: NodesGroupedByUser
Parameters:
do
♦ ♦ Macro Requires: node_list, email
♦ ♦
<n.comment Macro Parameters:
text
♦ ♦
<n.send>
<to.current_user.user_email/>
<to_name.current_user.name/>
<subject><t>Deleted posts</t></subject>
<text_part.deleted_nodes_text/>
<bounce_to.current_user.bounces_address/>
</n.send>
</n.comment.>
</n.new_email.>
</then>
</n.if.current_user.is_registered>
</n.loop.>
</n.descendant_nodes_by_user.>
</override_macro>
|
... | in delete_node.naml |
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
|
<macro name="send_deleted_nodes_email" requires="node">
<n.descendant_nodes_by_user.>
<n.loop.>
<n.if.current_user.is_registered>
<then>
<n.new_email.>
<n.nodes_list.attach_nodes/>
<n.send>
<to.current_user.user_email/>
<to_name.current_user.name/>
<subject><t>Deleted posts</t></subject>
<text_part.deleted_nodes_text/>
<bounce_to.current_user.bounces_address/>
</n.send>
</n.new_email.>
</then>
</n.if.current_user.is_registered>
</n.loop.>
</n.descendant_nodes_by_user.>
</macro>
|
Powered by Nabble | NAML |