send_request_email.naml

<override_macro name="send_request_email" parameters="explanation" requires="user,node_page" unindent="true">
    <n.new_email.>
        <n.send>
            <to><n.user_email/></to>
            <subject><t>User requested authorization to join <t.location.page_node.subject/></t></subject>
            <text_part>
                <t>Dear <t.name.name/>,</t>

                <t><t.name.visitor.name/> requested authorization to join the <t.location.page_node.subject/>:</t>
                <n.page_node.url/>

                * <t>Explanation from this user:</t>
                <n.explanation/>

                * <t>User email:</t>
                <n.visitor.user_email/>

                <t>To accept this request, you should add this user to at least one group that has access to this area:</t>
                <n.base_url/><n.visitor.change_user_groups_path/>

                <t>Or you can ignore this email if it is better to keep this user away from that area.</t>
                ________________________________________
                <t>Free Embeddable <t.app.page_node.view_name/></t> powered by Nabble
                <n.nabble_homepage/>
            </text_part>
            <html_part>
                <t>Dear <t.name.name/>,</t><br/>
                <br/>
                <t><t.name.visitor.name/> requested authorization to join the <t.location.page_node.subject/>:</t><br/>
                <a href="[n.page_node.url/]"><n.page_node.url/></a><br/>
                <br/>
                <b><t>Explanation from this user:</t></b><br/>
                <n.explanation/><br/>
                <br/>
                <b><t>User email:</t></b><br/>
                <n.visitor.user_email/><br/>
                <br/>
                <t>To accept this request, you should add this user to at least one group that has access to this area:</t>
                <div style="background-color:#FFFADB;border:#EDDD79 solid 1px;margin:1.2em 0;padding:.5em">
                    <a href="[n.base_url/][n.visitor.change_user_groups_path/]"><n.base_url/><n.visitor.change_user_groups_path/></a>
                </div>
                <t>Or you can ignore this email if it is better to keep this user away from that area.</t><br/>
                ________________________________________<br/>
                <t>Free Embeddable <t.app.page_node.view_name/></t> powered by Nabble<br/>
                <n.nabble_homepage/><br/><br/>
            </html_part>
        </n.send>
    </n.new_email.>
</override_macro>