<%= MM.util.formatText(user.fullname) %>
<%= MM.lang.s("contact") %>
-
<% var fields = ["email", "address", "city", "country", "phone1", "phone2"]; %>
<% _.each(fields, function(field) { %>
<% if (user[field]) { %>
- <%= MM.lang.s(field) %>: <% if (field == "phone1" || field == "phone2") { %> <%= MM.util.formatText(user[field], true) %> <% } else if (field == "address") { %> <% var add = user[field]; %> <% add += (user["city"]) ? "," + MM.util.formatText(user["city"], true) : ""; %> <% add += (user["country"]) ? "," + MM.util.formatText(user["country"], true) : ""; %> <% add = encodeURIComponent(add); %> <% if (MM.deviceOS == "android") { %> <%= MM.util.formatText(user[field]) %> <% } else { %> <%= MM.util.formatText(user[field]) %> <% } %> <% } else if (field == "email"){ %> <%= user[field] %> <% } else { %> <%= MM.util.formatText(user[field]) %> <% } %> <% } %> <% }); %>
<%= MM.lang.s("description") %>
<%= MM.util.formatText(user.description) %>
<% } %>