app/views/iugu/account_users/index.html.haml in iugusdk-1.0.0.alpha.2 vs app/views/iugu/account_users/index.html.haml in iugusdk-1.0.0.alpha.3

- old
+ new

@@ -1,9 +1,12 @@ - content_for :title do "Account Users" end - @account_users.each do |account_user| %div - = account_user.user.name || account_user.user.email + - if account_user.user.name.blank? + = 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) - unless account_user.destroying? - unless account_user.is?(:owner) || account_user.user_id == current_user.id