From 466f43511604c566187203243b8784fe42ef8e5a Mon Sep 17 00:00:00 2001 From: Karina Kwiatek Date: Tue, 10 Aug 2021 13:46:37 +0200 Subject: [PATCH] Add rails admin link to inbox entries --- app/views/inbox/_entry.haml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/views/inbox/_entry.haml b/app/views/inbox/_entry.haml index 216c61ee..7e1ffa94 100644 --- a/app/views/inbox/_entry.haml +++ b/app/views/inbox/_entry.haml @@ -19,6 +19,9 @@ = t 'views.actions.answer' %button.btn.btn-danger{ name: 'ib-destroy', data: { ib_id: i.id } } = t 'views.actions.delete' + - if current_user.has_role? :administrator + %a.btn.btn-primary{ href: rails_admin_path_for_resource(i) } + View in Kontrollzentrum %button.btn.btn-default{ name: 'ib-options', data: { ib_id: i.id, state: :hidden } } %i.fa.fa-cog %span.sr-only= t 'views.actions.options'