Use link_to_user instead of explicit link

This commit is contained in:
Nishanth Vijayan 2016-09-28 03:28:47 +05:30
parent ac420ab3a4
commit 9221f92b19

View file

@ -10,8 +10,7 @@
= link_to users_role.role.name, admin_conference_role_path(conference_id: conference_short_title, id: users_role.role.name)
= version.event == 'create' ? 'to' : 'from'
= 'user'
= link_to (user.try(:name) || 'deleted user'), admin_user_path(id: users_role.user.id)
= link_to_user(users_role.user_id)
- when 'Subscription', 'Registration'
- if conference