Mercurial > hg > GlobalNeighbors
diff globalneighbors/templates/index.html @ 20:2fef925fbf37
display country + population in autocomplete drop down
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Sun, 25 Jun 2017 16:12:08 -0700 |
parents | 94af113e498a |
children |
line wrap: on
line diff
--- a/globalneighbors/templates/index.html Sun Jun 25 15:43:45 2017 -0700 +++ b/globalneighbors/templates/index.html Sun Jun 25 16:12:08 2017 -0700 @@ -21,7 +21,7 @@ template: { type: "custom", method: function (value, item) { - return '<a href="/' + item.geonameid + '">' + value + '</a>'; + return '<a href="/' + item.geonameid + '"><b>' + value + '</b> ' + item["country code"] + '<br/><small>Population: ' + item.population + '</small></a>'; } } };