aboutsummaryrefslogtreecommitdiffstats
path: root/tmpl
diff options
context:
space:
mode:
authorNicolas Vigier <boklm@mageia.org>2013-02-21 23:49:28 +0000
committerNicolas Vigier <boklm@mageia.org>2013-02-21 23:49:28 +0000
commit0c32c5dc4c340621f45e90b28c7b6c7b22947aa0 (patch)
treecaad9171fed24e52bcb29721c9bf80b82e08a197 /tmpl
downloadmgapeople-0c32c5dc4c340621f45e90b28c7b6c7b22947aa0.tar
mgapeople-0c32c5dc4c340621f45e90b28c7b6c7b22947aa0.tar.gz
mgapeople-0c32c5dc4c340621f45e90b28c7b6c7b22947aa0.tar.bz2
mgapeople-0c32c5dc4c340621f45e90b28c7b6c7b22947aa0.tar.xz
mgapeople-0c32c5dc4c340621f45e90b28c7b6c7b22947aa0.zip
First version of mgapeople
Diffstat (limited to 'tmpl')
-rw-r--r--tmpl/group.html18
-rw-r--r--tmpl/groupindex.html14
-rw-r--r--tmpl/user.html26
-rw-r--r--tmpl/userindex.html14
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>