@@ -1,72 +1,75 | |||
|
1 | 1 | <div class="contextual"> |
|
2 | 2 | <%= link_to(l(:button_edit), edit_user_path(@user), :class => 'icon icon-edit') if User.current.admin? %> |
|
3 | 3 | </div> |
|
4 | 4 | |
|
5 | 5 | <h2><%= avatar @user, :size => "50" %> <%=h @user.name %></h2> |
|
6 | 6 | |
|
7 | 7 | <div class="splitcontentleft"> |
|
8 | 8 | <ul> |
|
9 | <% if User.current.admin? %> | |
|
10 | <li><%=l(:field_login)%>: <%= @user.login %></li> | |
|
11 | <% end %> | |
|
9 | 12 | <% unless @user.pref.hide_mail %> |
|
10 | 13 | <li><%=l(:field_mail)%>: <%= mail_to(h(@user.mail), nil, :encode => 'javascript') %></li> |
|
11 | 14 | <% end %> |
|
12 | 15 | <% @user.visible_custom_field_values.each do |custom_value| %> |
|
13 | 16 | <% if !custom_value.value.blank? %> |
|
14 | 17 | <li><%=h custom_value.custom_field.name%>: <%=h show_value(custom_value) %></li> |
|
15 | 18 | <% end %> |
|
16 | 19 | <% end %> |
|
17 | 20 | <li><%=l(:label_registered_on)%>: <%= format_date(@user.created_on) %></li> |
|
18 | 21 | <% unless @user.last_login_on.nil? %> |
|
19 | 22 | <li><%=l(:field_last_login_on)%>: <%= format_date(@user.last_login_on) %></li> |
|
20 | 23 | <% end %> |
|
21 | 24 | </ul> |
|
22 | 25 | |
|
23 | 26 | <% unless @memberships.empty? %> |
|
24 | 27 | <h3><%=l(:label_project_plural)%></h3> |
|
25 | 28 | <ul> |
|
26 | 29 | <% for membership in @memberships %> |
|
27 | 30 | <li><%= link_to_project(membership.project) %> |
|
28 | 31 | (<%=h membership.roles.sort.collect(&:to_s).join(', ') %>, <%= format_date(membership.created_on) %>)</li> |
|
29 | 32 | <% end %> |
|
30 | 33 | </ul> |
|
31 | 34 | <% end %> |
|
32 | 35 | <%= call_hook :view_account_left_bottom, :user => @user %> |
|
33 | 36 | </div> |
|
34 | 37 | |
|
35 | 38 | <div class="splitcontentright"> |
|
36 | 39 | |
|
37 | 40 | <% unless @events_by_day.empty? %> |
|
38 | 41 | <h3><%= link_to l(:label_activity), :controller => 'activities', |
|
39 | 42 | :action => 'index', :id => nil, :user_id => @user, |
|
40 | 43 | :from => @events_by_day.keys.first %></h3> |
|
41 | 44 | |
|
42 | 45 | <p> |
|
43 | 46 | <%=l(:label_reported_issues)%>: <%= Issue.where(:author_id => @user.id).count %> |
|
44 | 47 | </p> |
|
45 | 48 | |
|
46 | 49 | <div id="activity"> |
|
47 | 50 | <% @events_by_day.keys.sort.reverse.each do |day| %> |
|
48 | 51 | <h4><%= format_activity_day(day) %></h4> |
|
49 | 52 | <dl> |
|
50 | 53 | <% @events_by_day[day].sort {|x,y| y.event_datetime <=> x.event_datetime }.each do |e| -%> |
|
51 | 54 | <dt class="<%= e.event_type %>"> |
|
52 | 55 | <span class="time"><%= format_time(e.event_datetime, false) %></span> |
|
53 | 56 | <%= content_tag('span', h(e.project), :class => 'project') %> |
|
54 | 57 | <%= link_to format_activity_title(e.event_title), e.event_url %></dt> |
|
55 | 58 | <dd><span class="description"><%= format_activity_description(e.event_description) %></span></dd> |
|
56 | 59 | <% end -%> |
|
57 | 60 | </dl> |
|
58 | 61 | <% end -%> |
|
59 | 62 | </div> |
|
60 | 63 | |
|
61 | 64 | <% other_formats_links do |f| %> |
|
62 | 65 | <%= f.link_to 'Atom', :url => {:controller => 'activities', :action => 'index', :id => nil, :user_id => @user, :key => User.current.rss_key} %> |
|
63 | 66 | <% end %> |
|
64 | 67 | |
|
65 | 68 | <% content_for :header_tags do %> |
|
66 | 69 | <%= auto_discovery_link_tag(:atom, :controller => 'activities', :action => 'index', :user_id => @user, :format => :atom, :key => User.current.rss_key) %> |
|
67 | 70 | <% end %> |
|
68 | 71 | <% end %> |
|
69 | 72 | <%= call_hook :view_account_right_bottom, :user => @user %> |
|
70 | 73 | </div> |
|
71 | 74 | |
|
72 | 75 | <% html_title @user.name %> |
General Comments 0
You need to be logged in to leave comments.
Login now