Show contacts personal message in local profile

This commit is contained in:
Tobias Diekershoff 2017-08-01 17:47:13 +02:00
parent 8a93725d77
commit 016e4a0efc
2 changed files with 10 additions and 0 deletions

View file

@ -589,6 +589,8 @@ function contacts_content(App $a) {
'$lbl_vis1' => t('Profile Visibility'), '$lbl_vis1' => t('Profile Visibility'),
'$lbl_vis2' => sprintf( t('Please choose the profile you would like to display to %s when viewing your profile securely.'), $contact['name']), '$lbl_vis2' => sprintf( t('Please choose the profile you would like to display to %s when viewing your profile securely.'), $contact['name']),
'$lbl_info1' => t('Contact Information / Notes'), '$lbl_info1' => t('Contact Information / Notes'),
'$lbl_info2' => t('Their personal note'),
'$reason' => trim(notags($contact['reason'])),
'$infedit' => t('Edit contact notes'), '$infedit' => t('Edit contact notes'),
'$common_text' => $common_text, '$common_text' => $common_text,
'$common_link' => 'common/loc/' . local_user() . '/' . $contact['id'], '$common_link' => 'common/loc/' . local_user() . '/' . $contact['id'],

View file

@ -81,6 +81,14 @@
</div> </div>
<div id="contact-edit-info-end"></div> <div id="contact-edit-info-end"></div>
{{if $reason}}
<div id="contact-info-wrapper">
<h4>{{$lbl_info2}}</h4>
<p>{{$reason}}</p>
</div>
<div id="contact-info-end"></div>
{{/if}}
{{if $profile_select}} {{if $profile_select}}
<div id="contact-edit-profile-select-text"> <div id="contact-edit-profile-select-text">
<h4>{{$lbl_vis1}}</h4> <h4>{{$lbl_vis1}}</h4>