summaryrefslogtreecommitdiff
path: root/httemplate/search/tower-map.html
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2016-10-10 23:54:05 -0700
committerMark Wells <mark@freeside.biz>2016-10-10 23:54:05 -0700
commit04f53daab621710db56b075e1aaf56e7c52f9ba9 (patch)
treef3bf508716c8c85c5382e3286e2e81ff6670247e /httemplate/search/tower-map.html
parent49d9ea969069430ef3fe23e5b1ac3599e929bb04 (diff)
export tower/sector data to TowerCoverage API, #39776
Diffstat (limited to 'httemplate/search/tower-map.html')
-rwxr-xr-xhttemplate/search/tower-map.html15
1 files changed, 15 insertions, 0 deletions
diff --git a/httemplate/search/tower-map.html b/httemplate/search/tower-map.html
index 559d83d08..d87e19ea6 100755
--- a/httemplate/search/tower-map.html
+++ b/httemplate/search/tower-map.html
@@ -8,6 +8,9 @@ html { height: 100% }
span.is_up { font-weight: bold; color: green }
span.is_down { font-weight: bold; color: red }
#search_location { width: 300px }
+
+.sector_list li { list-style: none }
+.sector_list li a { width: 150px }
</style>
<div id="map_canvas"></div>
@@ -300,4 +303,16 @@ Tower #<% $tower->towernum %> | <% $tower->towername %>
<br>
<input type="checkbox" name="show_coverage" value="<% $tower->towernum %>">
<% emt('Show coverage') %>
+<ul class="sector_list">
+% foreach my $sector ($tower->tower_sector) {
+% # could be more descriptive here
+ <li><% emt($sector->sectorname) %>
+% my @links_array;
+% foreach my $export ($sector->part_export) {
+% $export->export_links($sector, \@links_array); # already HTML, do not escape
+% }
+<% join(' ', @links_array) %>
+ </li>
+% }
+</ul>
</%def>