profile_options

NAML documentation   Watch a video
   Usages of this macro
... in profile_options.naml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<override_macro name="profile_options">
    <n.put_in_head
Binary
Namespace: HtmlNamespace
Parameters: in_head
.>
        <style type="text/css">
            table.profile {
                border-collapse:collapse;
                width:100%;
                margin-top:.5em;
            }
            table.profile td {
                padding:.7em .3em;
            }
            table.profile td.title-row {
                background: transparent;
                padding:.2em .4em;
                border-bottom-width:2px;
                border-bottom-style:solid;
                font-weight:bold;
            }
        </style>
    </n.put_in_head.>
    <table class="profile">
        <n.profile_table_header
Macro
Parameters: text
.>
            My Settings
        </n.profile_table_header.>
 
        <n.profile_option
Macro
Parameters: hint, link
>
            <link><a href="[n.visitor
Binary
Namespace: ServletNamespace
Parameters: do
.edit_profile_path
Macro
Requires: user
/]">Edit Personal Information</a></link>
            <hint>Change your registered email address and password.</hint>
        </n.profile_option>
 
        <n.profile_option
Macro
Parameters: hint, link
>
            <link><a href="[n.visitor
Binary
Namespace: ServletNamespace
Parameters: do
.edit_signature_path
Macro
/]">Edit Your Signature</a></link>
            <hint>Change the signature text that is displayed at the bottom of your posts.</hint>
        </n.profile_option>
 
        <n.profile_option
Macro
Parameters: hint, link
>
            <link><a href="[n.visitor
Binary
Namespace: ServletNamespace
Parameters: do
.change_avatar_path
Binary
Namespace: UserNamespace
/]">Change Your Picture</a></link>
            <hint>Change or remove your avatar image.</hint>
        </n.profile_option>
 
        <n.profile_option
Macro
Parameters: hint, link
>
            <link><a href="[n.visitor
Binary
Namespace: ServletNamespace
Parameters: do
.advanced_settings_path
Binary
Namespace: UserNamespace
/]">Advanced Settings</a></link>
            <hint>Change viewing preferences and your alert settings (when posting a message).</hint>
        </n.profile_option>
    </table>
</override_macro>
Overrides default macro
... in user_profile.naml
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<macro name="profile_options">
    <n.put_in_head.>
        <style type="text/css">
            table.profile {
                border-collapse:collapse;
                width:100%;
                margin-top:.5em;
            }
            table.profile td {
                padding:.7em .3em;
            }
            table.profile td.title-row {
                background: transparent;
                padding:.2em .4em;
                border-bottom-width:2px;
                border-bottom-style:solid;
                font-weight:bold;
            }
        </style>
    </n.put_in_head.>
    <table class="profile">
        <n.profile_table_header.>
            <t>Account Settings</t>
        </n.profile_table_header.>
 
        <n.profile_option>
            <link><a href="[n.visitor.edit_profile_path/]"><t>Edit Personal Information</t></a></link>
            <hint><t>Change your registered email address, password, and your user name.</t></hint>
        </n.profile_option>
 
        <n.profile_option>
            <link><a href="[n.visitor.edit_signature_path/]"><t>Edit Your Signature</t></a></link>
            <hint><t>Change the signature text that is displayed at the bottom of your posts.</t></hint>
        </n.profile_option>
 
        <n.profile_option>
            <link><a href="[n.visitor.change_avatar_path/]"><t>Change Your Picture</t></a></link>
            <hint><t>Change or remove your avatar image.</t></hint>
        </n.profile_option>
 
        <n.profile_option>
            <link><a href="[n.visitor.advanced_settings_path/]"><t>Advanced Settings</t></a></link>
            <hint><t>Change viewing preferences and other settings.</t></hint>
        </n.profile_option>
 
        <n.profile_option>
            <link><a href="[n.visitor.remove_account_path/]"><t>Remove Your Account</t></a></link>
            <hint><t>Remove your account and all your posts from <t.subject><n.root_node.subject/></t.subject>.</t></hint>
        </n.profile_option>
    </table>
</macro>