X-Git-Url: https://git.hcoop.net/hcoop/zz_old/portal.git/blobdiff_plain/51520441651adb8cabb245ba1c9cd715e02ee01a..27edf428dff2f04b44222593f9f875cd5f4336bc:/user.mlt
diff --git a/user.mlt b/user.mlt
index 7316db6..bf9e1c6 100644
--- a/user.mlt
+++ b/user.mlt
@@ -3,12 +3,12 @@ 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 %> |
- Locations: | <%
+
+ 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
@@ -19,16 +19,36 @@ val user = Init.lookupUser id;
%><% Web.html (#name loc) %><%
end %> |
+<% val links = Link.listUserLinks id;
+
+switch links of
+ (_::_) => %>
- Contact information |
+ 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 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 Contact.listUserContacts (id, level) do %>
+<% foreach (kind, cont) in contacts do %>
<% Web.html (#name kind) %>: |
<% Contact.format (kind, cont) %> |
-<% end %>
+<% end
+end %>
|