Commit 11abe984 authored by Tugce Nur Tas's avatar Tugce Nur Tas Committed by Tuğçe Nur Taş
Browse files

correct links for volunteer

parent eb1b6a2e
......@@ -4,7 +4,7 @@ tr
td = volunteer.contact.full_name
td = volunteer.contact.city
td = volunteer.contact.postal_code
td = volunteer.contact.primary_email
td = mail_to volunteer.contact.primary_email
td = volunteer.birth_year.year if volunteer.birth_year?
td = volunteer.native_language&.language_name
td = render 'language_skills/show_inline', language_skills: volunteer.foreign_languages
......@@ -15,7 +15,11 @@ tr
td = volunteer.interests
td = t(".acceptance.#{volunteer.acceptance}")
td = volunteer.external? ? t_attr(:external) : t_attr(:internal)
td = volunteer.self_applicant? ? t('volunteer_self_applicant') : volunteer.registrar.full_name
- if volunteer.self_applicant?
td= t('volunteer_self_applicant')
- else
td= link_to volunteer.registrar.full_name, profile_path(volunteer.registrar)
/ td = volunteer.self_applicant? ? t('volunteer_self_applicant') : link_to volunteer.registrar.full_nameprofile_path(volunteer.registrar)
- if action_name == 'index'
= render 'index_actions', subject: volunteer
- if volunteer.seeking_clients?
......
......@@ -124,6 +124,12 @@ h3 Persönlicher Hintergrund
tr
td #{t_attr(:external)} / #{t_attr(:internal)}
td= @volunteer.external? ? t_attr(:external) : t_attr(:internal)
tr
td= t('registered_by')
- if @volunteer.self_applicant?
td= t('volunteer_self_applicant')
- else
td= link_to @volunteer.registrar.full_name, profile_path(@volunteer.registrar)
h3= t_attr(:single_accompaniment)
.table-responsive
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment