]> git.openstreetmap.org Git - rails.git/blob - app/views/users/_user.html.erb
Merge remote-tracking branch 'upstream/pull/2239'
[rails.git] / app / views / users / _user.html.erb
1 <% cl = cycle("table0", "table1") %>
2
3 <tr class="<%= cl %>">
4   <td>
5     <%= user_thumbnail(user) %>
6   </td>
7   <td>
8     <p>
9       <% if user.creation_ip %>
10         <%= raw t "users.index.summary",
11                   :name => link_to(h(user.display_name), user_path(user)),
12                   :ip_address => link_to(user.creation_ip, :ip => user.creation_ip),
13                   :date => l(user.creation_time, :format => :friendly) %>
14       <% else %>
15         <%= raw t "users.index.summary_no_ip",
16                   :name => link_to(h(user.display_name), user_path(user)),
17                   :date => l(user.creation_time, :format => :friendly) %>
18       <% end %>
19     </p>
20     <div class="richtext"><%= user.description.to_html %></div>
21   </td>
22   <td>
23     <%= check_box_tag "user_#{user.id}", "", false, :name => "user[#{user.id}]" %>
24   </td>
25 </tr>