Skip to content
Snippets Groups Projects
Commit 7c272820 authored by Anton Sarukhanov's avatar Anton Sarukhanov
Browse files

template cleanup

parent a2aedfac
No related branches found
No related tags found
No related merge requests found
......@@ -43,6 +43,7 @@ class Config(object):
# Map display parameters
MAP_ERROR_TILE_URL = 'http://tiles.antsar-static.com/generic/tile-blank-black.png'
MAP_TILE_URL = 'http://{s}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}.png'
MAP_DATA_ATTRIBUTION = '<a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors and <a href="http://cartodb.com/attributions">CartoDB</a>'
MAP_TILE_SUBDOMAINS = ['a', 'b', 'c']
MAP_TILESET = 'rutgers-black'
MAP_LAT_PADDING = 0.03
......
<h2>About PyBusMap</h2>
<p>
This map displays real-time vehicle locations and arrival predictions
for public transit systems which are tracked by NextBus.
</p>
<p>
Built by <a href="https://ant.sr">Anton Sarukhanov</a>. Open source
and MIT licensed.
<a href="https://git.xhost.io/anton/pybusmap">Fork it</a>.
</p>
<p>
<a href="http://leafletjs.com"
title="A JS library for interactive maps">Leaflet</a>
- A JavaScript library for interactive maps.
</p>
<p>
Map Data &copy; {{ config['MAP_DATA_ATTRIBUTION']|safe }}.
</p>
<p>
Transit Data &copy; {{ agency.title }} and/or NextBus.
</p>
<p>
Data sourced from the <a href="http://nextbus.com">Nextbus</a> API.
</p>
<p>
NextBus&trade; is a trademark of NextBus Inc.
</p>
<p class="legalese">
Not guaranteed to be correct.
Refer to your travel agency for official schedules and/or predictions.
</p>
......@@ -14,55 +14,11 @@
<div id="map" class="{% if embed %}embed{% endif %}"></div>
<div class="dialog" id="about">
<div class="close" id="close-about"><a href="javascript:void(0);">&times;</a></div>
<h2>About PyBusMap</h2>
<p>
This map displays real-time vehicle locations and arrival predictions
for public transit systems which are tracked by NextBus.
</p>
<p>
Built by <a href="https://ant.sr">Anton Sarukhanov</a>. Open source
and MIT licensed.
<a href="https://git.xhost.io/anton/pybusmap">Fork it</a>.
</p>
<p>
<a href="http://leafletjs.com"
title="A JS library for interactive maps">Leaflet</a>
- A JavaScript library for interactive maps.
</p>
<p>
Map Data &copy; {{ config['MAP_DATA_ATTRIBUTION']|safe }}.
</p>
<p>
Transit Data &copy; {{ agency.title }} and/or NextBus.
</p>
<p>
Data sourced from the <a href="http://nextbus.com">Nextbus</a> API.
</p>
<p>
NextBus&trade; is a trademark of NextBus Inc.
</p>
{% include "about.html" %}
</div>
<div class="dialog" id="welcome">
<div class="close" id="close-welcome"><a href="javascript:void(0);">&times;</a></div>
<h2>Welcome to PyBusMap</h2>
<p>
Hi! This is PyBusMap. It's a map of buses tracked by NextBus. It has
predictions for bus arrival times, and real-time vehicle locations.
</p>
<p>
To see upcoming buses for a stop, click the stop flag <img height="20px" src="static/img/stop27x60.png" alt="stop-icon">.
</p>
<p>
To see upcoming stops for a bus, click the bus <img height="20px" src="static/img/bus.png" alt="bus-icon">.
</p>
<h1>
<a href="javascript:void(0);" onclick="$('#welcome').hide();">Let's Go!</a>
</h1>
<p class="legalese">
Nothing displayed here is guaranteed to be correct. The creator of this
map takes no responsibility for you catching a bus, missing a bus, or
interacting with a bus in any other way.
</p>
{% include "welcome.html" %}
</div>
<div id="msg">
<span id="msg-zoomForVehicles">Zoom in to see vehicles.</span>
......
<h2>Welcome to PyBusMap</h2>
<p>
Hi! This is PyBusMap. It's a map of buses tracked by NextBus. It has
predictions for bus arrival times, and real-time vehicle locations.
</p>
<p>
To see upcoming buses for a stop, click the stop flag <img height="20px" src="static/img/stop27x60.png" alt="stop-icon">.
</p>
<p>
To see upcoming stops for a bus, click the bus <img height="20px" src="static/img/bus.png" alt="bus-icon">.
</p>
<h1>
<a href="javascript:void(0);" onclick="$('#welcome').hide();">Let's Go!</a>
</h1>
<p class="legalese">
Not guaranteed to be correct.
Refer to your travel agency for official schedules and/or predictions.
</p>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment