]> git.ipfire.org Git - ipfire.org.git/commitdiff
users: Show all known phone numbers
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 4 Dec 2024 11:29:46 +0000 (11:29 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 4 Dec 2024 11:31:11 +0000 (11:31 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/templates/users/show.html

index 43f8c848210ea56df0dd08e062192cb50d3d29b9..ce476f5949a6aa08f1f8cb678bcd5e2f7e68e695 100644 (file)
                                                                        </li>
                                                                {% end %}
 
-                                                               {% if account.phone_number %}
-                                                                       <li>
-                                                                               <i class="fas fa-phone fa-fw"></i>
-
-                                                                               <a href="tel:{{ format_phone_number_to_e164(account.phone_number) }}">
-                                                                                       {{ format_phone_number(account.phone_number) }}
-                                                                               </a>
-                                                                       </li>
+                                                               {# Phone Numbers #}
+                                                               {% set phone_numbers = [account.phone_number] + account.phone_numbers %}
+
+                                                               {% if any(phone_numbers) %}
+                                                                       {% for phone_number in phone_numbers %}
+                                                                               <li>
+                                                                                       <i class="fas fa-phone fa-fw"></i>
+
+                                                                                       <a href="tel:{{ format_phone_number_to_e164(phone_number) }}">
+                                                                                               {{ format_phone_number(phone_number) }}
+                                                                                       </a>
+                                                                               </li>
+                                                                       {% end %}
                                                                {% end %}
 
                                                                {% if account.fax_number %}