visible_users_list

NAML documentation   Watch a video
   Usages of this macro
... in people.naml
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
<macro name="visible_users_list" dot_parameter="do" requires="node_page">
    <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.is_null
Binary
Namespace: BasicNamespace
Parameters: value
.people_filter
Macro
Requires: servlet
>
        <then>
            <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.allows_showing_members_of
Macro
Requires: node
Parameters: group
.registered_group
Binary
Namespace: NabbleNamespace
>
                <then>
                    <n.site_users
Binary
Namespace: NabbleNamespace
Parameters: filter, length, start, do
. start="0" length="99999" filter="[n.registered_filter
Binary
Namespace: NabbleNamespace
/]">
                        <n.filter_by
Macro
Requires: list
Parameters: filter
.current_user
Binary
Namespace: UserList
Parameters: do
.not
Binary
Namespace: BasicNamespace
Parameters: condition
.is_banned
Binary
Namespace: UserNamespace
/>
                        <n.do/>
                    </n.site_users.>
                </then>
                <else>
                    <!-- get the first group available -->
                    <n.available_groups
Macro
Requires: node_page
Parameters: do
.>
                        <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.next_element
Binary
Namespace: ListSequence
Parameters: inc
>
                            <then>
                                <n.users_in_group
Binary
Namespace: NabbleNamespace
Parameters: do, group
. group="[n.current_group
Binary
Namespace: GroupList
/]">
                                    <n.filter_by
Macro
Requires: list
Parameters: filter
.current_user
Binary
Namespace: UserList
Parameters: do
.both
Binary
Namespace: BasicNamespace
Parameters: condition1, condition2
 condition1="[n.not
Binary
Namespace: BasicNamespace
Parameters: condition
.is_deactivated
Binary
Namespace: UserNamespace
/]" condition2="[n.not
Binary
Namespace: BasicNamespace
Parameters: condition
.is_banned
Binary
Namespace: UserNamespace
/]"/>
                                    <n.sort_by_node_count_desc
Binary
Namespace: UserList
/>
                                    <n.do/>
                                </n.users_in_group.>
                            </then>
                            <else.empty_users_list
Macro
Parameters: do
.do/>
                        </n.if.next_element>
                    </n.available_groups.>
                </else>
            </n.if.page_node.allows_showing_members_of.registered_group>
        </then>
        <else>
            <!-- get the filtered group -->
            <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.allows_showing_members_of
Macro
Requires: node
Parameters: group
.people_filter
Macro
Requires: servlet
>
                <then>
                    <n.users_in_group
Binary
Namespace: NabbleNamespace
Parameters: do, group
. group="[n.people_filter
Macro
Requires: servlet
/]">
                        <n.filter_by
Macro
Requires: list
Parameters: filter
.current_user
Binary
Namespace: UserList
Parameters: do
.both
Binary
Namespace: BasicNamespace
Parameters: condition1, condition2
 condition1="[n.not
Binary
Namespace: BasicNamespace
Parameters: condition
.is_deactivated
Binary
Namespace: UserNamespace
/]" condition2="[n.not
Binary
Namespace: BasicNamespace
Parameters: condition
.is_banned
Binary
Namespace: UserNamespace
/]"/>
                        <n.sort_by_node_count_desc
Binary
Namespace: UserList
/>
                        <n.do/>
                    </n.users_in_group.>
                </then>
                <else.empty_users_list
Macro
Parameters: do
.do/>
            </n.if.page_node.allows_showing_members_of.people_filter>
        </else>
    </n.if.is_null.people_filter>
</macro>