people_tabbed_pane

NAML documentation   Watch a video
   Usages of this macro
... in people_tabbed_pane.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
<override_macro name="people_tabbed_pane">  
    <div style="margin:.5em 0">  
        <n.horizontal_tab_control
Macro
Parameters: is_live, horizontal_tabs
.>  
            <n.add_horizontal_tab
Macro
Parameters: details, text, url, selected
  
            url="[n.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.people_path
Macro
Requires: node
Parameters: filter, index_record
/]"  
            text="[t]Users & Groups[/t]"  
            selected="[n.is_people_default
Macro
/]"  
            details="[n.visible_users_table
Macro
Requires: node_page
Parameters: columns
.people_columns
Macro
/]"  
            />  
            <n.add_horizontal_tab
Macro
Parameters: details, text, url, selected
  
            url="[n.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.people_path
Macro
Requires: node
Parameters: filter, index_record
 filter='online-users'/]"  
            text="[t]Online Users[/t]"  
            selected="[n.is_online_users
Macro
/]"  
            details="[n.online_users_table
Macro
Requires: node_page
Parameters: columns
.people_columns
Macro
/]"  
            />  
            <n.comment
Macro
Parameters: text
.>Added Search on People</n.comment.> 
            <n.add_horizontal_tab
Macro
Parameters: details, text, url, selected
  
            url="[n.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.people_path
Macro
Requires: node
Parameters: filter, index_record
 filter='list'/]"  
            text="[t]Search[/t]"  
            selected="[n.is_people_filter
Macro
Parameters: value
 value='list'/]"  
            details="[n.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.raw_subscriber_list
Macro
Requires: node
Parameters: columns
.people_columns
Macro
/]"  
            />  
        </n.horizontal_tab_control.>  
    </div>  
</override_macro>
Overrides default macro
... in people.naml
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<macro name="people_tabbed_pane">
    <div style="margin:.5em 0">
        <n.horizontal_tab_control.>
            <n.add_horizontal_tab
                url="[n.page_node.people_path/]"
                text="[t]Users & Groups[/t]"
                selected="[n.not.is_online_users/]"
                details="[n.visible_users_table.people_columns/]"
            />
            <n.add_horizontal_tab
                url="[n.page_node.people_path filter='online-users'/]"
                text="[t]Online Users[/t]"
                selected="[n.is_online_users/]"
                details="[n.online_users_table.people_columns/]"
            />
        </n.horizontal_tab_control.>
    </div>
</macro>