summaryrefslogtreecommitdiffstats
path: root/app/views/account/show.rhtml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/account/show.rhtml')
-rw-r--r--app/views/account/show.rhtml26
1 files changed, 26 insertions, 0 deletions
diff --git a/app/views/account/show.rhtml b/app/views/account/show.rhtml
new file mode 100644
index 000000000..985238951
--- /dev/null
+++ b/app/views/account/show.rhtml
@@ -0,0 +1,26 @@
+<h2><%= @user.display_name %></h2>
+
+<p>
+<%= mail_to @user.mail unless @user.pref.hide_mail %>
+<ul>
+ <li><%=l(:label_registered_on)%>: <%= format_date(@user.created_on) %></li>
+<% for custom_value in @custom_values %>
+<% if !custom_value.value.empty? %>
+ <li><%= custom_value.custom_field.name%>: <%= show_value(custom_value) %></li>
+<% end %>
+<% end %>
+</ul>
+</p>
+
+<h3><%=l(:label_project_plural)%></h3>
+<p>
+<% for membership in @user.memberships %>
+ <%= membership.project.name %> (<%= membership.role.name %>, <%= format_date(membership.created_on) %>)
+ <br />
+<% end %>
+</p>
+
+<h3><%=l(:label_activity)%></h3>
+<p>
+<%=l(:label_reported_issues)%>: <%= Issue.count(["author_id=?", @user.id]) %>
+</p> \ No newline at end of file