display_user_subscriptions

NAML documentation   Watch a video
   Usages of this macro
... in display_user_subscriptions.naml
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
47
48
49
50
<macro name="display_user_subscriptions" requires="servlet">
    <n.visitor
Binary
Namespace: ServletNamespace
Parameters: do
.as_user_page
Binary
Namespace: UserNamespace
Parameters: do
.>
        <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.not
Binary
Namespace: BasicNamespace
Parameters: condition
.page_user
Binary
Namespace: UserPageNamespace
Parameters: do
.is_registered
Binary
Namespace: UserNamespace
>
            <then>
                <n.login
Macro
Requires: servlet
Parameters: message
.><t>You must login to view this page.</t></n.login.>
            </then>
        </n.if.not.page_user.is_registered>
        <n.html
Macro
Parameters: head, body
>
            <head>
                <n.title
Macro
Parameters: text
.><t>Subscriptions</t></n.title.>
                <style type="text/css">  
                    table.subscriptions {  
                    border-collapse:collapse;  
                    margin-top:1em;  
                    clear:both;  
                    width:100%  
                    }
                    table.subscriptions th {  
                    padding: .3em .6em;  
                    text-align:left;  
                    border-bottom-style:solid;  
                    border-bottom-width:2px;  
                    }  
                    table.subscriptions td {  
                    padding: .1em .6em;
                    }  
                </style> 
            </head>
            <body>
                <n.page_user
Binary
Namespace: UserPageNamespace
Parameters: do
.profile_header
Macro
Requires: user
/>
                
  
                
                <n.horizontal_tab_control
Macro
Parameters: is_live, horizontal_tabs
.>
                    <n.add_horizontal_tab
Macro
Parameters: details, text, url, selected
 url="[n.page_user
Binary
Namespace: UserPageNamespace
Parameters: do
.path
Macro
Requires: user
Parameters: filter, index_record
/]" text="[t]Your Posts in [t.location.root_node
Binary
Namespace: NabbleNamespace
Parameters: do
.subject
Macro
Requires: node
/][/t]" selected="false" details=""/>
                    <n.add_horizontal_tab
Macro
Parameters: details, text, url, selected
 url="" text="[t]Your Subscriptions[/t]" selected="true" details=""/>
                </n.horizontal_tab_control.>
                
                <n.display_subscriptions
Macro
Requires: servlet
/>
                
            </body>
        </n.html>
    </n.visitor.as_user_page.>
</macro>