... | in generic_paging.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 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
|
<override_macro name="generic_paging" requires="paging" parameters="margin,url">
<n.if Binary Namespace: BasicNamespace
Parameters:
condition, else, then
♦ ♦ Binary Namespace: PagingNamespace
♦ ♦
<then>
<n.put_in_head Binary Namespace: HtmlNamespace
Parameters:
in_head
♦ ♦
<style type="text/css">
span.current-page { padding: .1em .4em; }
span.page { padding: .1em; }
span.pages a { padding: .1em .4em; }
span.current-page { border-width:1px; border-style:solid; }
span.pages {
float:right;
white-space:nowrap;
font-weight:normal;
}
</style>
</n.put_in_head.>
<span class="pages" style="padding:[n.margin/]">
<n.if Binary Namespace: BasicNamespace
Parameters:
condition, else, then
♦ ♦ Binary Namespace: PagingNamespace
♦ ♦
<then>
<a href="[n.current_page Binary Namespace: PagingNamespace
Parameters:
do
♦ ♦ Binary Namespace: PagingNamespace
Parameters:
do
♦ ♦
</then>
</n.if.has_next_page>
</span>
<n.remove_spaces_between_tags Macro Parameters:
text
♦ ♦
<span class="pages" style="padding:[n.margin/]">
<n.if Binary Namespace: BasicNamespace
Parameters:
condition, else, then
♦ ♦ Binary Namespace: BasicNamespace
Parameters:
condition
♦ ♦ Binary Namespace: PagingNamespace
♦ ♦
<then>
<n.first_page Binary Namespace: PagingNamespace
Parameters:
do
♦ ♦ Macro Requires: paging_page
Parameters:
url
♦ ♦
</then>
</n.if.not.is_at_beginning>
<n.neighboring_pages Binary Namespace: PagingNamespace
Parameters:
do
♦ ♦ Macro Requires: paging_page
Parameters:
url
♦ ♦
<n.if Binary Namespace: BasicNamespace
Parameters:
condition, else, then
♦ ♦ Binary Namespace: BasicNamespace
Parameters:
condition
♦ ♦ Binary Namespace: PagingNamespace
♦ ♦
<then>
... <n.last_page Binary Namespace: PagingNamespace
Parameters:
do
♦ ♦ Macro Requires: paging_page
Parameters:
url
♦ ♦
</then>
</n.if.not.is_at_end>
</span>
</n.remove_spaces_between_tags.>
<span class="pages" style="padding:[n.margin/]">
<n.if Binary Namespace: BasicNamespace
Parameters:
condition, else, then
♦ ♦ Binary Namespace: PagingNamespace
♦ ♦
<then>
<a href="[n.current_page Binary Namespace: PagingNamespace
Parameters:
do
♦ ♦ Binary Namespace: PagingNamespace
Parameters:
do
♦ ♦
</then>
</n.if.has_previous_page>
</span>
</then>
</n.if.has_paging>
</override_macro>
|
... | in app.naml |
328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361
|
<macro name="generic_paging" requires="paging" parameters="margin,url">
<n.if.has_paging>
<then>
<n.put_in_head.>
<style type="text/css">
span.current-page { padding: .1em .4em; }
span.page { padding: .1em; }
span.pages a { padding: .1em .4em; }
span.current-page { border-width:1px; border-style:solid; }
span.pages {
float:right;
white-space:nowrap;
font-weight:normal;
}
</style>
</n.put_in_head.>
<n.remove_spaces_between_tags.>
<span class="pages" style="padding:[n.margin/]">
<n.if.not.is_at_beginning>
<then>
<n.first_page.link url="[n.url/]" /> ...
</then>
</n.if.not.is_at_beginning>
<n.neighboring_pages.show url="[n.url/]" />
<n.if.not.is_at_end>
<then>
... <n.last_page.link url="[n.url/]" />
</then>
</n.if.not.is_at_end>
</span>
</n.remove_spaces_between_tags.>
</then>
</n.if.has_paging>
</macro>
|
Free forum by Nabble |