Skip to content

Commit 4027569

Browse files
[GH-188] - Add mobile phone number to summary search result (#189)
* feat(frontend): Show first mobile phone if landline not available on summary view * [Bot] Update version to 2.4.2 --------- Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 0ec8031 commit 4027569

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

husky_directory/templates/summary_results_table/scenario_population_block.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,13 @@
2020
<td valign="top">{{ data['name'] }}&nbsp;</td>
2121
<td valign="top" nowrap="nowrap">
2222
{% set phone = data['phone_contacts']['phones']|first %}
23-
{% if phone %}{{ phone }}{% endif %}
23+
{% set mobile = data['phone_contacts']['mobiles']|first %}
24+
25+
{% if phone %}
26+
{{ phone }}
27+
{% elif mobile %}
28+
{{ mobile }}
29+
{% endif %}
2430
</td>
2531
<td valign="top">
2632
{% for email in data['emails'] %}

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "uw-husky-directory"
3-
version = "2.4.1"
3+
version = "2.4.2"
44
description = "An updated version of the UW Directory"
55
authors = ["Thomas Thorogood <goodtom@uw.edu>"]
66
license = "MIT"

0 commit comments

Comments
 (0)