Add rails admin link to inbox entries

This commit is contained in:
Karina Kwiatek 2021-08-10 13:46:37 +02:00
parent 11e8555dae
commit 466f435116
1 changed files with 3 additions and 0 deletions

View File

@ -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'