2013-02-04 00:46:22 +01:00
|
|
|
- title t('.title'), false
|
2012-11-12 09:03:23 +01:00
|
|
|
|
|
|
|
.row-fluid
|
|
|
|
.span7
|
|
|
|
%h3
|
2013-09-20 22:40:13 +02:00
|
|
|
= h(t('.user.title', user: show_user))
|
2013-02-04 00:46:22 +01:00
|
|
|
%small= t '.user.since', when: distance_of_time_in_words(Time.now, @current_user.created_on)
|
2013-10-30 01:56:23 +01:00
|
|
|
= simple_form_for(@current_user, :url => update_profile_path) do |f|
|
2013-12-22 13:28:33 +01:00
|
|
|
= render :partial => 'shared/user_form_fields', :locals => {:f => f, :password_autocomplete => false}
|
2012-11-12 09:03:23 +01:00
|
|
|
.form-actions
|
2013-04-04 02:49:52 +02:00
|
|
|
= submit_tag t('ui.save'), class: 'btn'
|
2012-11-12 09:03:23 +01:00
|
|
|
.span5
|
2013-02-04 00:46:22 +01:00
|
|
|
%h2= t '.groups.title'
|
2012-11-12 09:03:23 +01:00
|
|
|
%table.table.table-striped
|
|
|
|
- @current_user.memberships.each do |membership|
|
|
|
|
%tr
|
|
|
|
%td= membership.group.name
|
2013-02-04 00:46:22 +01:00
|
|
|
%td= link_to t('.groups.invite'), new_invite_path(id: membership.group_id),
|
2012-11-12 09:03:23 +01:00
|
|
|
remote: true, class: 'btn btn-success btn-small'
|
|
|
|
- if membership.group.type != 'Ordergroup'
|
2013-02-04 00:46:22 +01:00
|
|
|
%td= link_to t('.groups.cancel'), cancel_membership_path(membership_id: membership),
|
|
|
|
confirm: t('.groups.cancel_confirm'), method: :post,
|
2012-11-12 09:03:23 +01:00
|
|
|
class: 'btn btn-danger btn-small'
|