Skip to content

Commit 013b90c

Browse files
authored
Merge pull request #668 from hhaccessibility/issue-625
Added phone number for location.
2 parents b9a5cc1 + 18775c7 commit 013b90c

2 files changed

Lines changed: 19 additions & 2 deletions

File tree

app/resources/assets/sass/_location_map_report.scss

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,10 @@ This is where to put SCSS for the location report that shows a map.
9393
&.addresses {
9494
flex-grow: 8;
9595
overflow-x: hidden;
96+
97+
address {
98+
margin-bottom: 4px;
99+
}
96100

97101
a {
98102
display: inline-block;
@@ -102,6 +106,14 @@ This is where to put SCSS for the location report that shows a map.
102106
white-space: nowrap;
103107
max-width: 100%;
104108
}
109+
110+
em {
111+
margin-right: 5px;
112+
}
113+
114+
p {
115+
margin-bottom: 0;
116+
}
105117
}
106118

107119
&.location-tags {

app/resources/views/pages/location_report/collapsed.blade.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,13 @@
2323
'location' => $location))
2424
<div class="basic-info">
2525
<div class="addresses">
26-
<address>{{ $location->address }}</address>
27-
<a href="{{ $location->getExternalWebURL() }}">{{ $location->getExternalWebURL() }}</a>
26+
<address>
27+
<em class="fa fa-map-marker"></em>
28+
{{ $location->address }}<br>
29+
@if($location->phone_number)<p><em class="fa fa-phone"></em>
30+
<a href="tel: {{ $location->phone_number }}">{{ $location->phone_number }}</a></p>@endif
31+
<a href="{{ $location->getExternalWebURL() }}">{{ $location->getExternalWebURL() }}</a>
32+
</address>
2833
</div>
2934
<div class="location-tags text-right">
3035
<div class="location-tags">

0 commit comments

Comments
 (0)