@@ -1,57 +1,66 | |||
|
1 | 1 | <div class="contextual"> |
|
2 | 2 | <%= link_to(l(:button_edit), {:controller => 'users', :action => 'edit', :id => @user}, :class => 'icon icon-edit') if User.current.admin? %> |
|
3 | 3 | </div> |
|
4 | 4 | |
|
5 | 5 | <h2><%= avatar @user %> <%=h @user.name %></h2> |
|
6 | 6 | |
|
7 | 7 | <div class="splitcontentleft"> |
|
8 | 8 | <p> |
|
9 | 9 | <%= mail_to(h(@user.mail)) unless @user.pref.hide_mail %> |
|
10 | 10 | <ul> |
|
11 | 11 | <li><%=l(:label_registered_on)%>: <%= format_date(@user.created_on) %></li> |
|
12 | 12 | <% for custom_value in @custom_values %> |
|
13 | 13 | <% if !custom_value.value.empty? %> |
|
14 | 14 | <li><%= custom_value.custom_field.name%>: <%=h show_value(custom_value) %></li> |
|
15 | 15 | <% end %> |
|
16 | 16 | <% end %> |
|
17 | 17 | </ul> |
|
18 | 18 | </p> |
|
19 | 19 | |
|
20 | 20 | <% unless @memberships.empty? %> |
|
21 | 21 | <h3><%=l(:label_project_plural)%></h3> |
|
22 | 22 | <ul> |
|
23 | 23 | <% for membership in @memberships %> |
|
24 | 24 | <li><%= link_to(h(membership.project.name), :controller => 'projects', :action => 'show', :id => membership.project) %> |
|
25 | 25 | (<%=h membership.role.name %>, <%= format_date(membership.created_on) %>)</li> |
|
26 | 26 | <% end %> |
|
27 | 27 | </ul> |
|
28 | 28 | <% end %> |
|
29 | 29 | </div> |
|
30 | 30 | |
|
31 | 31 | <div class="splitcontentright"> |
|
32 | 32 | |
|
33 | 33 | <% unless @events_by_day.empty? %> |
|
34 | 34 | <h3><%=l(:label_activity)%></h3> |
|
35 | 35 | |
|
36 | 36 | <p> |
|
37 | 37 | <%=l(:label_reported_issues)%>: <%= Issue.count(:conditions => ["author_id=?", @user.id]) %> |
|
38 | 38 | </p> |
|
39 | 39 | |
|
40 | 40 | <div id="activity"> |
|
41 | 41 | <% @events_by_day.keys.sort.reverse.each do |day| %> |
|
42 | 42 | <h4><%= format_activity_day(day) %></h4> |
|
43 | 43 | <dl> |
|
44 | 44 | <% @events_by_day[day].sort {|x,y| y.event_datetime <=> x.event_datetime }.each do |e| -%> |
|
45 | 45 | <dt class="<%= e.event_type %>"> |
|
46 | 46 | <span class="time"><%= format_time(e.event_datetime, false) %></span> |
|
47 | 47 | <%= content_tag('span', h(e.project), :class => 'project') %> |
|
48 | 48 | <%= link_to format_activity_title(e.event_title), e.event_url %></dt> |
|
49 | 49 | <dd><span class="description"><%= format_activity_description(e.event_description) %></span></dd> |
|
50 | 50 | <% end -%> |
|
51 | 51 | </dl> |
|
52 | 52 | <% end -%> |
|
53 | 53 | </div> |
|
54 | ||
|
55 | <p class="other-formats"> | |
|
56 | <%= l(:label_export_to) %> | |
|
57 | <%= link_to 'Atom', {:controller => 'projects', :action => 'activity', :user_id => @user, :format => :atom, :key => User.current.rss_key}, :class => 'feed' %> | |
|
58 | </p> | |
|
59 | ||
|
60 | <% content_for :header_tags do %> | |
|
61 | <%= auto_discovery_link_tag(:atom, :controller => 'projects', :action => 'activity', :user_id => @user, :format => :atom, :key => User.current.rss_key) %> | |
|
62 | <% end %> | |
|
54 | 63 | <% end %> |
|
55 | 64 | </div> |
|
56 | 65 | |
|
57 | 66 | <% html_title @user.name %> |
General Comments 0
You need to be logged in to leave comments.
Login now