X-Git-Url: http://git.hcoop.net/bpt/portal.git/blobdiff_plain/b340786b13dacb1070c79713ebc4eaf298d27943..a483e18c6bb5943a39a3bd67abe4d9a0adfcf76a:/user.mlt diff --git a/user.mlt b/user.mlt index 7316db6..b590b64 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: <% + + + + + + +<% val links = Link.listUserLinks id; + +switch links of + (_::_) => %> - + + +<% foreach link in links do %> + +<% 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; -foreach (kind, cont) in Contact.listUserContacts (id, level) do %> +val contacts = Contact.listUserContacts (id, level); + +switch contacts of + (_::_) => %> + + + + +<% foreach (kind, cont) in contacts do %> -<% end %> +<% end +end %>
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,17 +19,39 @@ val user = Init.lookupUser id; %><% Web.html (#name loc) %><% end %>
Contact information
Hosted sites
<% Web.html (#title link) %><% + if #descr link <> "" then %>: <% Web.html (#descr link) end + %>
Contact information
<% Web.html (#name kind) %>: <% Contact.format (kind, cont) %>
+

Show archived membership application

+ <% @footer[] %>