comparison globalneighbors/templates/city.html @ 15:21095c9006e5

city page is now functional + linky
author Jeff Hammel <k0scist@gmail.com>
date Sun, 25 Jun 2017 14:55:53 -0700
parents 27925261c137
children 6891c5523b69
comparison
equal deleted inserted replaced
14:27925261c137 15:21095c9006e5
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <title>{{ name }}</title> 4 <title>{{ city.name }}</title>
5 </head> 5 </head>
6 <body> 6 <body>
7 <a href="/" 7 <a href="/"
8 title="back to Global Niehgbors">Home</a> 8 title="back to Global Niehgbors">Home</a>
9 9
10 <h1>{{ name }}</h1> 10 <h1>{{ city.name }}</h1>
11 11
12 <h2 title="location">{{latitude}},{{longitude}}</h2> 12 <!-- give a link to Google maps, for fun -->
13 <h2>
14 <a href="https://www.google.com/maps/?ll={{city.latitude}},{{city.longitude}}"
15 target="_blank"
16 title="location">{{city.latitude}},{{city.longitude}}
17 </a>
18 </h2>
13 19
14 <dl> 20 <dl>
15 <dt>Population:</dt> 21 <dt>Population:</dt>
16 <dd>{{ population }}</dd> 22 <dd>{{ city.population }}</dd>
23
24 <dt>Country:</dt>
25 <dd>{{ city['country code'] }}
17 </dl> 26 </dl>
18 </body> 27 </body>
19 </html> 28 </html>