app/views/iugu/account_users/index.html.haml in iugusdk-1.0.0.alpha.5 vs app/views/iugu/account_users/index.html.haml in iugusdk-1.0.0.alpha.7
- old
+ new
@@ -6,20 +6,20 @@
= account_user.user.email
- else
= account_user.user.name
- if current_user.is?(:owner, @account) || current_user.is?(:admin, @account)
|
- = link_to I18n.t("iugu.permissions"), account_roles_edit_path(:id => @account.id, :user_id => account_user.user_id)
+ = link_to I18n.t("iugu.permissions"), account_roles_edit_path(@account, :user_id => account_user.user)
- unless account_user.destroying?
- unless account_user.is?(:owner) || account_user.user_id == current_user.id
|
- = link_to I18n.t("iugu.remove"), account_users_destroy_path(:account_id => account_user.account_id, :user_id => account_user.user_id), :method => 'delete'
+ = link_to I18n.t("iugu.remove"), account_users_destroy_path(@account, :user_id => account_user.user), :method => 'delete'
- else
|
- if IuguSDK::delay_account_user_exclusion == 0
= I18n.t("iugu.removing")
- else
- = link_to I18n.t("iugu.undo"), account_users_cancel_destruction_path(:account_id => account_user.account_id, :user_id => account_user.user_id), :method => 'delete'
+ = link_to I18n.t("iugu.undo"), account_users_cancel_destruction_path(@account, :user_id => account_user.user), :method => 'delete'
- if current_user.is?(:owner, @account) || current_user.is?(:admin, @account)
%div
- = link_to I18n.t("iugu.invite"), new_invite_path(:account_id => @account.id)
+ = link_to I18n.t("iugu.invite"), new_invite_path(@account)