2009-01-15 12:14:01 +01:00
|
|
|
<% title "Mein Profil" -%>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
Hier kannst Du deine Einstellungen ändern, z.b. Deine Telphonnummer oder Dein Passwort.
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<div class="left_column" style="width: 60%;">
|
|
|
|
<div class="box_title">
|
|
|
|
<h2>
|
2009-03-22 12:47:14 +01:00
|
|
|
Benutzername: <%= h @user.nick %>
|
|
|
|
<small>(Mitglied seit: <%= distance_of_time_in_words(Time.now, @user.created_on) -%>)</small>
|
2009-01-15 12:14:01 +01:00
|
|
|
</h2>
|
|
|
|
</div>
|
|
|
|
<div class="column_content">
|
|
|
|
<% form_for(@user, :url => { :action => 'update_profile'}) do |@form| %>
|
|
|
|
<%= render :partial => 'shared/user_form' %>
|
|
|
|
<p style="clear:both">
|
|
|
|
<%= submit_tag 'Speichern' %> | <%= link_to 'Abbrechen', :action => 'profile' %></p>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="right_column" style="width: 35%;">
|
|
|
|
<div class="box_title">
|
|
|
|
<h2>Du bist Mitglied in folgenden Gruppen</h2>
|
|
|
|
</div>
|
|
|
|
<div class="column_content">
|
|
|
|
<% for membership in Membership.find_all_by_user_id(@user.id) %>
|
|
|
|
<p>
|
|
|
|
<%= membership.group.name %>
|
|
|
|
<% if membership.group.type != 'Ordergroup' %>
|
|
|
|
(<%= link_to _("Cancel membership"), { :action => 'cancel_membership', :membership_id => membership },
|
|
|
|
:confirm => _("Are you sure to cancel this membership?"), :method => :post %>)
|
|
|
|
<% end %>
|
|
|
|
</p>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
</div>
|