view_topics_page

NAML documentation   Watch a video
   Usages of this macro
... in view_topics_page.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
<override_macro name="view_topics_page">
    <n.set_app_rows_per_page
Macro
Parameters: rows_per_page
 rows_per_page="[n.forum_topics_per_page
Macro
/]"/>
    <n.app_html
Macro
Requires: servlet
Parameters: head, body
>
        <head>
            <script async="true" src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({
          google_ad_client: "ca-pub-6750305871516672",
          enable_page_level_ads: true
     });
</script>
            <n.app_title
Macro
/>
            <n.topics_table_stylesheet
Macro
/>
        </head>
        <body>
            <n.new_topic_action_link
Macro
Parameters: text
/>
            <n.subapps_action_link
Macro
Parameters: text
/>
            <n.people_action_link
Macro
Requires: node_page
/>
            <n.options_action_menu
Macro
Requires: node_page
/>
 
            <n.app_topic_pagination
Macro
Requires: node_page, servlet
Parameters: margin
 margin=".8em .3em .5em 0"/>
            <n.topics_table
Macro
Parameters: columns
.topics_table_columns
Macro
Requires: app_namespace
 />
            <n.app_topic_pagination
Macro
Requires: node_page, servlet
Parameters: margin
 margin=".8em .3em .5em 0"/>
            <n.forum_footer
Macro
/>
        </body>
    </n.app_html>
</override_macro>
Overrides default macro
... in view_topics.naml
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<macro name="view_topics_page">
    <n.set_app_rows_per_page rows_per_page="[n.forum_topics_per_page/]"/>
    <n.app_html>
        <head>
            <n.app_title/>
            <n.topics_table_stylesheet/>
        </head>
        <body>
            <n.new_topic_action_link/>
            <n.subapps_action_link/>
            <n.people_action_link/>
            <n.options_action_menu/>
 
            <n.app_topic_pagination margin=".8em .3em .5em 0"/>
            <n.topics_table.topics_table_columns />
            <n.app_topic_pagination margin=".8em .3em .5em 0"/>
            <n.forum_footer/>
        </body>
    </n.app_html>
</macro>