Skip to content

Open Infrastructure Map, a view of infrastructure data in OpenStreetMap

Make voltage ranges clearer (maybe)

Russ Garrettb2a9b70d55f5
diff --git a/templates/_tables.html b/templates/_tables.html
index 40f25fb..9ed773b 100644
--- a/templates/_tables.html
+++ b/templates/_tables.html
@@ -12,7 +12,7 @@
<tbody>
{% for voltages, length in power_lines.lines.items() %}
<tr>
- <td>{{voltages[0]|voltage}} &ndash; {{voltages[1]|voltage}}</td>
+ <td>{{voltages[0]|voltage}} &ndash; {% if voltages[1] %}{{(voltages[1] - 1000)|voltage}}{% endif %}</td>
<td>{{length|distance}}</td>
<td>{{(length / power_lines.total)|percent}}</td>
</tr>