Skip to content

Commit

Permalink
Add user location to vcard
Browse files Browse the repository at this point in the history
  • Loading branch information
danon committed Nov 28, 2024
1 parent 127fe49 commit 460de35
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/Domain/Icon/FontAwesomeFree.php
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,7 @@ public function icons(): array
"vCardUserFindPosts" => "fas fa-magnifying-glass",
"vCardUserPrivateMessage" => "fas fa-envelope",
"vCardUserShowInAdmin" => "fas fa-eye",
'vCardUserResidence' => 'fas fa-location-dot',

// wiki
"wikiAttachmentRemove" => "fas fa-trash-can",
Expand Down
1 change: 1 addition & 0 deletions app/Domain/Icon/FontAwesomePro.php
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,7 @@ public function icons(): array
'vCardUserFindPosts' => 'fa-light fa-magnifying-glass',
'vCardUserPrivateMessage' => 'fa-light fa-envelope',
'vCardUserShowInAdmin' => 'fa-light fa-eye',
'vCardUserResidence' => 'fa-light fa-location-dot',

// wiki
'wikiAttachmentRemove' => 'fa-light fa-trash-can',
Expand Down
8 changes: 8 additions & 0 deletions resources/views/components/vcard.twig
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,14 @@
<small>{{ declination(user.reputation, ['punkt', 'punkty', 'punktów'], true) }}</small>
</span>
</div>

<div class="mt-3">
<h6 class="mb-0">
{{ icon('vCardUserResidence') }}
Lokalizacja:
</h6>
<span class="text-muted">{{ user.location }}</span>
</div>
</div>
</div>
</div>
Expand Down

0 comments on commit 460de35

Please sign in to comment.