Skip to content

Commit

Permalink
Merge pull request #52 from eurofurence/bugfix/26-add-tg-icon-before-…
Browse files Browse the repository at this point in the history
…handle

Changed telephone to telegram for DECT field, made text shown in left…
  • Loading branch information
RustyBraze authored Sep 9, 2024
2 parents 57f29ac + 969db9c commit 3fc8e52
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
11 changes: 7 additions & 4 deletions includes/view/User_view.php
Original file line number Diff line number Diff line change
Expand Up @@ -712,10 +712,11 @@ function User_view(
div('col-md-2', [
config('enable_dect') && $user_source->contact->dect ?
heading(
icon('phone')
icon('telegram')
. ' <a href="https://t.me/' . htmlspecialchars($user_source->contact->dect) . '">'
. htmlspecialchars($user_source->contact->dect)
. '</a>'
. '</a>',
4
)
: '',
config('enable_mobile_show') && $user_source->contact->mobile ?
Expand All @@ -724,15 +725,17 @@ function User_view(
icon('phone')
. ' <a href="tel:' . htmlspecialchars($user_source->contact->mobile) . '">'
. htmlspecialchars($user_source->contact->mobile)
. '</a>'
. '</a>',
4
)
: ''
: '',
$auth->can('user_messages') ?
heading(
'<a href="' . url('/messages/' . $user_source->id) . '">'
. icon('envelope')
. '</a>'
. '</a>',
4
)
: '',
]),
Expand Down
2 changes: 1 addition & 1 deletion resources/views/pages/design.twig
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@
night shift: {{ m.icon('moon-stars') }}<br>
occupancy: {{ m.icon('person-fill-slash') }}<br>
password: {{ m.icon('key-fill') }}<br>
phone: {{ m.icon('phone') }}<br>
phone: {{ m.icon('telegram') }}<br>
T-shirt / goodie: {{ m.icon('person') }}<br>
supporter: {{ m.icon('patch-check') }}<br>
user settings: {{ m.icon('person-fill-gear') }}<br>
Expand Down

0 comments on commit 3fc8e52

Please sign in to comment.