Skip to content

Open Infrastructure Map, a view of infrastructure data in OpenStreetMap

Intro text, etc

Russ Garrett9e8743a3be27
diff --git a/templates/index.html b/templates/index.html
index 2d32ed0..3671368 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -1,11 +1,15 @@
{% extends "_base.html" %}
{% import "_tables.html" as tables %}
{% set breadcrumbs = [('Stats', None)] %}
+{% block title %}Statistics{% endblock %}
{% block description -%}
Statistics on the global electricity network from OpenStreetMap
{%- endblock %}
{% block content -%}
-
+ <p>Here you can view statistics on the global electricity network, using data from <a href="https://openstreetmap.org">OpenStreetMap</a>.
+ Please note that, in many countries, this is not a complete depiction of the electricity network,
+ and these statistics should be used with caution. This service is primarily intended to assist OpenStreetMap
+ contributors in improving the accuracy of the map, and to allow data consumers to assess the completeness of the data.</p>
{{ tables.power_lines_table(power_lines) }}
<p>Select an area to view stats:</p>
<form id="areas-form">
diff --git a/templates/plants_country.html b/templates/plants_country.html
index 2ffdbda..db02a5c 100644
--- a/templates/plants_country.html
+++ b/templates/plants_country.html
@@ -11,10 +11,10 @@
{%- endblock %}
{% block content -%}
-{% set english_name = false %}
-{% if country not in ('United Kingdom', 'United States', 'Canada', 'Australia', 'New Zealand', 'Ireland', 'Alaska', 'Hawaii') %}
- {% set english_name = true %}
-{% endif %}
+{%- set english_name = false %}
+{%- if country not in ('United Kingdom', 'United States', 'Canada', 'Australia', 'New Zealand', 'Ireland', 'Alaska', 'Hawaii') %}
+ {%- set english_name = true %}
+{% endif -%}
{% if plants|length == 0 %}
<p>There are currently no power plants
@@ -30,49 +30,52 @@
<thead>
<tr>
<th style="width: 300px">Name</th>
- {% if english_name %}
+ {%- if english_name %}
<th>English Name</th>
- {% endif %}
+ {% endif -%}
<th>Operator</th>
<th style="width: 100px">Output</th>
- {% if not pretty_source %}
+ {%- if not pretty_source %}
<th>Source</th>
- {% endif %}
+ {% endif -%}
<th>Method</th>
- {% if construction %}
+ {%- if construction %}
<th>Completion Date</th>
- {% endif %}
+ {% endif -%}
<th style="width: 100px">Wikidata</th>
</tr>
</thead>
<tbody>
- {% for plant in plants %}
+ {% for plant in plants -%}
<tr>
<td><a href="{{osm_link(plant.osm_id, plant.geom_type)}}" target="_blank">
{{plant.name or '[unnamed]'}}</a></td>
{% if english_name %}
<td>{{plant.name_en or ''}}</td>
- {% endif %}
+ {% endif -%}
<td>{{plant.operator or ''}}</td>
<td>{{plant.output|power}}</td>
- {% if not pretty_source %}
+ {%- if not pretty_source %}
<td>{{plant.source}}</td>
- {% endif %}
+ {% endif -%}
<td>{{plant.method or ''}}</td>
- {% if construction %}
+ {%- if construction %}
<td>{{plant.start_date or ''}}</td>
- {% endif %}
+ {% endif -%}
<td>
- {% if plant.wikidata %}
+ {%- if plant.wikidata -%}
<a href="https://www.wikidata.org/wiki/{{plant.wikidata}}" target="_blank">{{plant.wikidata}}</a>
- {% endif %}
+ {%- endif -%}
</td>
</tr>
- {% endfor %}
+ {% endfor -%}
</tbody>
</table>
{% if pretty_source %}
<p><a href="{{url_for('plants_country', country=country)}}">View all power plants in {{country|country_name}}</a>.</p>
{% endif %}
+ {% if construction %}
+ <p class="footnote">Under-construction power plants are indicated based on the <code>construction:power</code> tag in OSM.</p>
+ {% endif %}
{% endif %}
{% endblock %}