diff options
Diffstat (limited to 'tmpl')
-rw-r--r-- | tmpl/group.html | 18 | ||||
-rw-r--r-- | tmpl/groupindex.html | 14 | ||||
-rw-r--r-- | tmpl/user.html | 26 | ||||
-rw-r--r-- | tmpl/userindex.html | 14 |
4 files changed, 72 insertions, 0 deletions
diff --git a/tmpl/group.html b/tmpl/group.html new file mode 100644 index 0000000..1a414a4 --- /dev/null +++ b/tmpl/group.html @@ -0,0 +1,18 @@ +<html> + <head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> + <title>[% config.sitename %]: g/[% groups.$group.cn.0 %]</title> + </head> + <body> + <h1>[% groups.$group.cn.0 %]</h1> + + <h3>[% groups.$group.description.0 %]</h3> + + Members: + <ul> + [% FOREACH user IN groups.$group.member %] + <li><a href="../u/[% users.$user.uid.0 %].html">[% users.$user.cn.0 %] ([% users.$user.uid.0 %])</a></li> + [% END %] + </ul> + </body> +</html> diff --git a/tmpl/groupindex.html b/tmpl/groupindex.html new file mode 100644 index 0000000..4489883 --- /dev/null +++ b/tmpl/groupindex.html @@ -0,0 +1,14 @@ +<html> + <head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> + <title>[% config.sitename %]: g</title> + </head> + <body> + <h1>groups</h1> + <ul> + [% FOREACH group IN groups %] + <li><a href="[% group.value.cn.0 %].html">[% group.value.cn.0 %]</a> : [% group.value.description.0 %]</li> + [% END %] + </ul> + </body> +</html> diff --git a/tmpl/user.html b/tmpl/user.html new file mode 100644 index 0000000..3130983 --- /dev/null +++ b/tmpl/user.html @@ -0,0 +1,26 @@ +<html> + <head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> + <title>[% config.sitename %]: u/[% users.$user.uid.0 %]</title> + </head> + <body> + <h1>[% users.$user.uid.0 %]</h1> + <ul> + <li> + <b>Name</b>: [% users.$user.cn.0 %] + </li> + <li> + <b>Login</b>: [% users.$user.uid.0 %] + </li> + <li> + <b>UID</b>: [% users.$user.uidnumber.0 %] + </li> + <li> + <b>Groups</b>: + [% FOREACH group IN users.$user.groups %] + <a href="../g/[% groups.$group.cn.0 %].html">[% groups.$group.cn.0 %]</a> + [% END %] + </li> + </ul> + </body> +</html> diff --git a/tmpl/userindex.html b/tmpl/userindex.html new file mode 100644 index 0000000..23c28aa --- /dev/null +++ b/tmpl/userindex.html @@ -0,0 +1,14 @@ +<html> + <head> + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> + <title>[% config.sitename %]: u</title> + </head> + <body> + <h1>Users</h1> + <ul> + [% FOREACH user IN users %] + <li><a href="[% user.value.uid.0 %].html">[% user.value.cn.0 %] ([% user.value.uid.0 %])</a></li> + [% END %] + </ul> + </body> +</html> |