people_widget

NAML documentation   Watch a video
   Usages of this macro
The source code below doesn't have navigation links because no usage has been compiled yet. Navigation links depend on how and where the macro is used, so first you may try finding all usages of "people_widget".
... in people_widget.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
<override_macro name="people_widget">
    <n.put_in_head.>
        <style type="text/css">
            a.people-small-link {
                float:right;
                font-size:80%;
                padding:.1em .3em;
            }
        </style>
    </n.put_in_head.>
    <n.site_users. length="50">
        <n.filter_by.current_user.can_be_displayed_in.page_node/>
        <n.if.has_more_elements n="2">
            <then>
                <n.widget.>
                    <h2 class="sidebar-section shaded-bg-color">
                        <n.page_node.people_link text="[t]All[/t]" class="people-small-link"/>
                        <t>Contributors</t>
                    </h2>
                    <div id="recent-posters">
                        <n.sub_list. start="0" length="12">
                            <n.people_widget_table/>
                        </n.sub_list.>
                    </div>
                </n.widget.>
            </then>
        </n.if.has_more_elements>
    </n.site_users.>
</override_macro>
Overrides default macro
... in widget.naml
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
<macro name="people_widget">
    <n.put_in_head.>
        <style type="text/css">
            a.people-small-link {
                float:right;
                font-size:80%;
                padding:.1em .3em;
            }
        </style>
    </n.put_in_head.>
    <n.site_users. length="50">
        <n.filter_by.current_user.can_be_displayed_in.page_node/>
        <n.if.has_more_elements n="2">
            <then>
                <n.widget.>
                    <h2 class="sidebar-section shaded-bg-color">
                        <n.page_node.people_link text="[t]All Users[/t]" class="people-small-link"/>
                        <t>People</t>
                    </h2>
                    <div id="recent-posters">
                        <n.sub_list. start="0" length="12">
                            <n.people_widget_table/>
                        </n.sub_list.>
                    </div>
                </n.widget.>
            </then>
        </n.if.has_more_elements>
    </n.site_users.>
</macro>