X-Git-Url: http://git.hcoop.net/bpt/portal.git/blobdiff_plain/6e8dc4366763f1d7a6ed8ada88926f51c16a596a..64ec9551fc56c42188e195cbbe24c79ad18b293f:/user.mlt
diff --git a/user.mlt b/user.mlt
dissimilarity index 64%
index 498fc49..b590b64 100644
--- a/user.mlt
+++ b/user.mlt
@@ -1,25 +1,57 @@
-<% val id = Web.stoi ($"id");
-val user = Init.lookupUser id;
-
-@header[("title", [#name user])] %>
-
-
- Member: | <% #name user %> |
- Real name: | <% Web.html (#rname user) %> |
- Hcoop e-mail: | <% #name user %>@hcoop.net |
- Joined: | <% #joined user %> |
-
-
-
- Contact information |
-
-<% val level = iff Group.inGroupName "contact" then Contact.ADMINS else Contact.MEMBERS;
-
-foreach (kind, cont) in Contact.listUserContacts (id, level) do %>
- <% Web.html (#name kind) %>: |
- <% Contact.format (kind, cont) %> |
-<% end %>
-
-
-
-<% @footer[] %>
+<% val id = Web.stoi ($"id");
+val user = Init.lookupUser id;
+
+@header[("title", [#name user])] %>
+
+
+ Member: | <% #name user %> |
+ Real name: | <% Web.html (#rname user) %> |
+ Hcoop e-mail: | <% #name user %><% Init.emailSuffix %> |
+ Joined: | <% #joined user %> |
+ Locations: | <%
+ ref first = true;
+ foreach loc in Location.userLocations id do
+ if first then
+ first := false
+ else
+ %>, <%
+ end
+ %><% Web.html (#name loc) %><%
+ end %> |
+
+<% val links = Link.listUserLinks id;
+
+switch links of
+ (_::_) => %>
+
+
+ Hosted sites |
+
+<% foreach link in links do %>
+ | <% Web.html (#title link) %><%
+ if #descr link <> "" then %>: <% Web.html (#descr link) end
+ %> |
+<% end
+end;
+
+val level = iff Group.inGroupName "contact" then Contact.ADMINS else Contact.MEMBERS;
+
+val contacts = Contact.listUserContacts (id, level);
+
+switch contacts of
+ (_::_) => %>
+
+
+ Contact information |
+
+<% foreach (kind, cont) in contacts do %>
+ <% Web.html (#name kind) %>: |
+ <% Contact.format (kind, cont) %> |
+<% end
+end %>
+
+
+
+Show archived membership application
+
+<% @footer[] %>