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])] %> - - - - - - - - - - - -<% val level = iff Group.inGroupName "contact" then Contact.ADMINS else Contact.MEMBERS; - -foreach (kind, cont) in Contact.listUserContacts (id, level) do %> - - -<% end %> - -
Member: <% #name user %>
Real name: <% Web.html (#rname user) %>
Hcoop e-mail: <% #name user %>@hcoop.net
Joined: <% #joined user %>
Contact information
<% Web.html (#name kind) %>:<% Contact.format (kind, cont) %>
- -<% @footer[] %> +<% val id = Web.stoi ($"id"); +val user = Init.lookupUser id; + +@header[("title", [#name user])] %> + + + + + + + + +<% 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 contacts = Contact.listUserContacts (id, level); + +switch contacts of + (_::_) => %> + + + + +<% foreach (kind, cont) in contacts do %> + + +<% 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 + first := false + else + %>, <% + end + %><% Web.html (#name loc) %><% + end %>
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[] %>