From 1f678b80c1079bf45b775ca791df66868c984d36 Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Sun, 26 Apr 2020 15:27:19 +0200 Subject: [PATCH] Fixed issue rendering privilege item partials --- app/views/modal/_privileges.haml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/views/modal/_privileges.haml b/app/views/modal/_privileges.haml index 99d77ed9..0fb30de0 100644 --- a/app/views/modal/_privileges.haml +++ b/app/views/modal/_privileges.haml @@ -8,12 +8,12 @@ %span{"aria-hidden" => "true"} × %span.sr-only= t 'views.actions.close' %ul.list-group.groups--list - = render :partial 'modal/privileges/item', privilege: 'blogger', description: t('views.modal.privilege.blogger'), user: @user - = render :partial 'modal/privileges/item', privilege: 'contributor', description: t('views.modal.privilege.contributor'), user: @user - = render :partial 'modal/privileges/item', privilege: 'translator', description: t('views.modal.privilege.translator'), user: @user + = render 'modal/privileges/item', privilege: 'blogger', description: t('views.modal.privilege.blogger'), user: @user + = render 'modal/privileges/item', privilege: 'contributor', description: t('views.modal.privilege.contributor'), user: @user + = render 'modal/privileges/item', privilege: 'translator', description: t('views.modal.privilege.translator'), user: @user - if current_user.has_role?(:administrator) - = render :partial 'modal/privileges/item', privilege: 'supporter', description: t('views.modal.privilege.supporter'), user: @user - = render :partial 'modal/privileges/item', privilege: 'moderator', description: t('views.modal.privilege.moderator'),user: @user - = render :partial 'modal/privileges/item', privilege: 'admin', description: t('views.modal.privilege.admin'), user: @user + = render 'modal/privileges/item', privilege: 'supporter', description: t('views.modal.privilege.supporter'), user: @user + = render 'modal/privileges/item', privilege: 'moderator', description: t('views.modal.privilege.moderator'),user: @user + = render 'modal/privileges/item', privilege: 'admin', description: t('views.modal.privilege.admin'), user: @user .modal-footer %button.btn.btn-primary{name: 'checked-privileges', type: :button, data: { dismiss: :modal }}= t 'views.actions.done'