To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / app / views / users / show.html.erb @ 912:5e80956cc792

History | View | Annotate | Download (2.69 KB)

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