summaryrefslogtreecommitdiff
path: root/apps/wman/page_list.tpl
diff options
context:
space:
mode:
Diffstat (limited to 'apps/wman/page_list.tpl')
-rwxr-xr-xapps/wman/page_list.tpl11
1 files changed, 11 insertions, 0 deletions
diff --git a/apps/wman/page_list.tpl b/apps/wman/page_list.tpl
new file mode 100755
index 0000000..b98600d
--- /dev/null
+++ b/apps/wman/page_list.tpl
@@ -0,0 +1,11 @@
+% d=`{wman_get_section_desc $wman_cat}
+<h1>Manual pages - Section %($wman_cat%): %($"d%)</h1>
+
+<ul style="float:left">
+%{
+wman_ls_pages $wman_cat_path \
+ | awk -F/ '{ print "<li><a href=\""$(NF)"\">"$(NF)"</a></li>" }
+ NR%20 == 0 { print "</ul><ul style=\"float: left\">" }'
+%}
+</ul>
+