... | in user_profile.naml |
187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211
|
<macro name="list_current_groups" requires="user">
<!-- List the groups of the user-->
<n.set_local_user Macro Parameters:
user
♦ ♦ Binary Namespace: UserNamespace
Parameters:
do
♦ ♦
<div style="margin-top:.4em">
<strong><t>Groups</t>:</strong>
<n.sort Binary Namespace: StringList
♦ ♦
<n.loop Macro Requires: sequence
Parameters:
by, do
♦ ♦
<n.if Binary Namespace: BasicNamespace
Parameters:
condition, else, then
♦ ♦ Binary Namespace: ListSequence
Parameters:
n
♦ ♦
<then><n.current_group Binary Namespace: GroupList
♦ ♦
<else><n.current_group Binary Namespace: GroupList
♦ ♦
</n.if.has_more_elements>
</n.loop.>
</n.local_user.groups.>
<n.if Binary Namespace: BasicNamespace
Parameters:
condition, else, then
♦ ♦ Binary Namespace: ServletNamespace
Parameters:
do
♦ ♦ Macro Requires: user
♦ ♦
<then>
<div style="margin-top:.3em">
<img src="/images/user_group.png" align="absmiddle" width="18" height="16"/>
<a href="[n.local_user Macro Parameters:
do
♦ ♦ Macro Requires: user
♦ ♦
| <a href="[n.local_user Macro Parameters:
do
♦ ♦ Macro Requires: user
♦ ♦
</div>
</then>
</n.if.visitor.is_site_admin>
</div>
</macro>
|
Free forum by Nabble | Edit this page |