2009-01-06 11:49:19 +01:00
|
|
|
<h1><%=h @user.nick %></h1>
|
|
|
|
<div class="left_column" style="width:100%">
|
2009-01-12 18:26:09 +01:00
|
|
|
<div class="box_title">
|
|
|
|
<h2>Übersicht</h2>
|
|
|
|
</div>
|
2009-01-06 11:49:19 +01:00
|
|
|
<div class="column_content">
|
2009-01-15 12:14:01 +01:00
|
|
|
<p>
|
|
|
|
Mitglied seit <%= distance_of_time_in_words(Time.now, @user.created_on) -%>
|
|
|
|
</p>
|
|
|
|
<div style="float:left;margin:5px; margin-right:10px;" class="box">
|
|
|
|
<p><b>Person</b></p>
|
|
|
|
<p><b>Nick:</b> <%=h @user.nick %></p>
|
2009-02-02 16:35:43 +01:00
|
|
|
<p><b>Name:</b> <%=h @user.name %></p>
|
2009-01-15 12:14:01 +01:00
|
|
|
<p><b>Email:</b> <%=h @user.email %></p>
|
|
|
|
<p><b>Telefon:</b> <%=h @user.phone %></p>
|
|
|
|
</div>
|
|
|
|
<div style="float:left; margin:5px;" class="box">
|
|
|
|
<p>
|
|
|
|
<b>Einstellungen</b>
|
|
|
|
</p>
|
|
|
|
<table style="width:26em">
|
|
|
|
<tbody>
|
|
|
|
<% for setting in User::setting_keys.keys -%>
|
|
|
|
<tr>
|
|
|
|
<td><%= User::setting_keys[setting] %></td>
|
|
|
|
<td><%= @user.settings[setting] == '1' ? 'ja' : 'nein' %></td>
|
|
|
|
</tr>
|
|
|
|
<% end -%>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
<p>
|
|
|
|
<b>Benutzer_in hat Zugriff auf:</b>
|
|
|
|
</p>
|
|
|
|
<p>
|
2009-02-02 16:35:43 +01:00
|
|
|
<%=h format_roles(@user) %>
|
2009-01-15 12:14:01 +01:00
|
|
|
</p>
|
|
|
|
</div>
|
2009-01-06 11:49:19 +01:00
|
|
|
<p style="clear:both">
|
2009-01-12 18:26:09 +01:00
|
|
|
<%= link_to 'Bearbeiten', edit_admin_user_path(@user) %>
|
|
|
|
| <%= link_to 'Löschen', [:admin, @user], :confirm => "Willst du #{@user.first_name} wirklich rausschmeißen?", :method => :delete %>
|
2009-09-07 11:21:12 +02:00
|
|
|
| <%= link_to "Nachricht senden", user_message_path(@user.id) %>
|
2009-01-06 11:49:19 +01:00
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
<div class="box_title"><h2>Gruppenabos</h2></div>
|
|
|
|
<div class="column_content">
|
2009-02-12 18:32:20 +01:00
|
|
|
<% for membership in Membership.find_all_by_user_id(@user.id) -%>
|
|
|
|
<p>
|
|
|
|
<%= link_to(membership.group.name, [:admin, membership.group]) %>
|
|
|
|
</p>
|
|
|
|
<% end -%>
|
2009-01-06 11:49:19 +01:00
|
|
|
</div>
|
2009-09-07 11:21:12 +02:00
|
|
|
</div>
|