Use expression substitution for rails admin links

This commit is contained in:
Karina Kwiatek 2021-08-06 10:38:00 +02:00
parent faaab47859
commit 4b52f900f2
3 changed files with 3 additions and 3 deletions

View File

@ -39,6 +39,6 @@
%i.fa.fa-exclamation-triangle
= t 'views.actions.report'
- if current_user.has_role? :administrator
%a.dropdown-item{ href: rails_admin_path + "/answer/#{a.id}", target: '_blank' }
%a.dropdown-item{ href: "#{rails_admin_path}/answer/#{a.id}", target: '_blank' }
%i.fa.fa-gears
View in Kontrollzentrum

View File

@ -19,7 +19,7 @@
%i.fa.fa-exclamation-triangle
= t 'views.actions.report'
- if current_user.has_role? :administrator
%a.dropdown-item{ href: rails_admin_path + "/question/#{a.question.id}", target: '_blank' }
%a.dropdown-item{ href: "#{rails_admin_path}/question/#{a.question.id}", target: '_blank' }
%i.fa.fa-gears
View in Kontrollzentrum
%h6.text-muted.media-heading.answerbox__question-user

View File

@ -29,6 +29,6 @@
%i.fa.fa-ban
= t 'views.actions.ban'
- if current_user.has_role? :administrator
%a.dropdown-item{ href: rails_admin_path + "/user/#{user.id}", target: '_blank' }
%a.dropdown-item{ href: "#{rails_admin_path}/user/#{user.id}", target: '_blank' }
%i.fa.fa-cogs
"View in Kontrollzentrum"