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

review changes

parent 1967a485
......@@ -65,7 +65,7 @@ h1= @client.contact.full_name
tr
td= t('registered_by')
td= link_to @client.user.full_name, profile_path(@client.user)
td= link_to @client.user.full_name if @client.user.profile.present?, profile_path(@client.user.profile)
- if policy(Client).comments?
tr
......
......@@ -18,8 +18,8 @@ tr
- if volunteer.self_applicant?
td= t('volunteer_self_applicant')
- else
td= link_to volunteer.registrar.full_name, profile_path(volunteer.registrar)
- if action_name == 'index'
td= link_to volunteer.registrar.full_name, profile_path(volunteer.registrar.profile)
- if action_index?
= render 'index_actions', subject: volunteer
- if volunteer.seeking_clients?
td= button_link t('find_client'), find_client_volunteer_path(id: volunteer)
......
......@@ -124,12 +124,13 @@ 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')
tr
td= t('registered_by')
td
- if @volunteer.self_applicant?
td= t('volunteer_self_applicant')
= t('volunteer_self_applicant')
- else
td= link_to @volunteer.registrar.full_name, profile_path(@volunteer.registrar)
= link_to @volunteer.registrar.full_name, profile_path(@volunteer.registrar)
h3= t_attr(:single_accompaniment)
.table-responsive
......
......@@ -56,7 +56,7 @@ class ClientsTest < ApplicationSystemTestCase
assert page.has_text? 'Client was successfully created.'
@superadmin.clients.each do |client|
assert page.has_link? client.user.full_name, href: profile_path(client.user)
assert page.has_link? client.user.full_name, href: profile_path(client.user.profile)
assert page.has_link? client.contact.primary_email
end
end
......
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