<%= _('edit my profile')%>

<%= _('Here you can change your preferences. For example you can change your phone number or your password.
You can also see in which workgroups you are.

')%>

Nickname: <%= h @user.nick %> (Mitglied seit: <%= distance_of_time_in_words(Time.now, @user.created_on) -%>)

<% form_tag(:action => 'updateProfile') do %> <%= render :partial => 'users/form' %>

<%= submit_tag 'Speichern' %> | <%= link_to 'Abbrechen', :action => 'myProfile' %>

<% end %>

Du bist Mitglied in folgenden Gruppen

<% for membership in Membership.find_all_by_user_id(@user.id) %>

<%= link_to(membership.group.name, :action => 'showGroup', :id => membership.group) %> <% if membership.group.type != 'OrderGroup' %> (<%= link_to _("Cancel membership"), { :action => 'cancel_membership', :id => membership }, :confirm => _("Are you sure to cancel this membership?"), :method => :post %>) <% end %>

<% end %>