* need /details to support &format=json
* reverse: zoom not set
http://localhost:8000/reverse.html?format=html&lat=52.3755991766591&lon=7.646484374999999&zoom=
-* details page: add "There are more child objects which are not shown" back in
* move this TODO.txt to github issues
* write install instructions
* check output of /dist into repository
return capitalize(aPlace.type.replace(/_/g, ' '));
}
},
+ tooManyParentLinesWarning: function(aPlace) {
+ if (!aPlace.parentof_lines) return;
+
+ var c = 0;
+ for (var type in aPlace.parentof_lines) {
+ c = c + type.length+1;
+ }
+ if (c < 500) return;
+
+ return new Handlebars.SafeString(
+ '<p>There are more child objects which are not shown.</p>'
+ );
+ },
zoomLevels: function(iSelectedZoom) {
var aZoomLevels = [
/* 0 */ 'Continent / Sea',
{{> partial_details_one_row}}
{{/each}}
{{/each}}
-
- {{!-- @if (sizeof($aParentOfLines) >= 500)
- <p>There are more child objects which are not shown.</p>
- @end --}}
- {{/if}}
+ {{/if}}
+ {{tooManyParentLinesWarning aPlace}}
</tbody>
</table>
</div>