profile_header.naml

<override_macro name="profile_header" requires="user">
    <n.set_local_user.this_user />
    <n.block.>
        <div class="second-font shaded-bg-color rounded" style="font-size:170%;padding:.2em .5em;margin-left:.1em">
            <n.local_user.name/>
        </div>
        <table>
            <tr valign="top">
                <td><n.local_user.avatar size="big"/></td>
                <td style="width:100%;padding-left:.5em">
                    <n.if.both condition1="[n.visitor.is_site_admin/]" condition2="[n.local_user.is_authenticated/]">
                        <then>
                            <strong>Email</strong>: <n.local_user.user_email/>
                        </then>
                    </n.if.both>

                    <n.if.local_user.is_banned>
                        <then>
                            <n.local_user.banned_label/>
                        </then>
                        <else>
                            <n.local_user.registration_label/>
                            <n.local_user.list_current_groups/>
                            <n.if.not.local_user.is_deactivated>
                                <then.local_user.send_email_to_user_link/>
                            </n.if.not.local_user.is_deactivated>
                        </else>
                    </n.if.local_user.is_banned>

                    <!-- If this is the profile of the visitor -->
                    <n.if.visitor.equals.local_user>
                        <then>
                            <!-- if the user is authenticated -->
                            <n.if.local_user.is_authenticated>
                                <then.local_user.authenticated_self_profile_header/>
                                <else>
                                    <div style="margin-top:.5em">
                                        <t><n.register_link.>Register now</n.register_link.> if you want to edit your profile, receive posts via email or have access to your global profile.</t>
                                    </div>
                                </else>
                            </n.if.local_user.is_authenticated>
                        </then>
                        <else>
                            <n.if.visitor.can_manage_banned_users>
                                <then>
                                    <div style="margin-top:.5em">
                                        <img src="/images/icon_blocked.png" class="image16" style="margin:0 1px"/>
                                        <n.if.local_user.is_banned>
                                            <then><a href="[n.local_user.unban_path/]" accesskey="b" title="Unban this user"><t>Unban this user</t></a></then>
                                            <else><a href="[n.local_user.ban_path/]" accesskey="b" title="Ban this user"><t>Ban this user</t></a></else>
                                        </n.if.local_user.is_banned>
                                    </div>
                                </then>
                            </n.if.visitor.can_manage_banned_users>
                        </else>
                    </n.if.visitor.equals.local_user>
                </td>
            </tr>
        </table>
    </n.block.>
</override_macro>