From 294820d74fbfa6f54d689084d4fd689a2ad8a1e9 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Thu, 20 Jan 2011 18:56:55 -0500 Subject: moved template build files to bin folder and updated file paths throughout apps --- templates/bin/country_sidebar.html | 6 + templates/bin/map_entry_list.html | 111 ++ templates/bin/map_sidebar.html | 25 + templates/bin/recent_entries.html | 13 + templates/bin/regions_sidebar.html | 6 + templates/includes/country_sidebar.html | 55 - templates/includes/country_sidebar_template.html | 6 - templates/includes/map_entry_list.html | 1317 ---------------------- templates/includes/map_entry_list_template.html | 111 -- templates/includes/map_sidebar.html | 61 - templates/includes/map_sidebar_template.html | 25 - templates/includes/recent_entries.html | 28 - templates/includes/recent_entries_template.html | 10 - templates/includes/regions_sidebar.html | 18 - templates/includes/regions_sidebar_template.html | 6 - 15 files changed, 161 insertions(+), 1637 deletions(-) create mode 100644 templates/bin/country_sidebar.html create mode 100644 templates/bin/map_entry_list.html create mode 100644 templates/bin/map_sidebar.html create mode 100644 templates/bin/recent_entries.html create mode 100644 templates/bin/regions_sidebar.html delete mode 100644 templates/includes/country_sidebar.html delete mode 100644 templates/includes/country_sidebar_template.html delete mode 100644 templates/includes/map_entry_list.html delete mode 100644 templates/includes/map_entry_list_template.html delete mode 100644 templates/includes/map_sidebar.html delete mode 100644 templates/includes/map_sidebar_template.html delete mode 100644 templates/includes/recent_entries.html delete mode 100644 templates/includes/recent_entries_template.html delete mode 100644 templates/includes/regions_sidebar.html delete mode 100644 templates/includes/regions_sidebar_template.html (limited to 'templates') diff --git a/templates/bin/country_sidebar.html b/templates/bin/country_sidebar.html new file mode 100644 index 0000000..03570da --- /dev/null +++ b/templates/bin/country_sidebar.html @@ -0,0 +1,6 @@ + \ No newline at end of file diff --git a/templates/bin/map_entry_list.html b/templates/bin/map_entry_list.html new file mode 100644 index 0000000..11dc1da --- /dev/null +++ b/templates/bin/map_entry_list.html @@ -0,0 +1,111 @@ +{% load typogrify %} +{% load truncateletters %} +{% load slugify_under %} + + // center on a country + function focusCountry(latitude, longitude, zoom) { + map.setZoom(zoom); + map.panTo(new google.maps.LatLng(latitude, longitude)); + }; + + {% for route in route_list %} + var {{route.template_var_name}} = [ + {% for point in route.geometry.coords%} + new google.maps.LatLng({{point.1}}, {{point.0}}){% if forloop.last%}{%else%},{%endif%} + {% endfor %} + ]; + {% endfor %} + function showRoute(route, zoom, latitude, longitude) { + var routePath = new google.maps.Polyline({ + path: eval(route), + strokeColor: "#FF0000", + strokeOpacity: 1.0, + strokeWeight: 2 + }); + map.setZoom(zoom); + map.panTo(new google.maps.LatLng(latitude, longitude)); + routePath.setMap(map); + return false; + }; +var map; +function initialize() { + + //custom marker + var image = new google.maps.MarkerImage('http://media.luxagraf.net/img/marker-entry.png', + new google.maps.Size(15, 26), + new google.maps.Point(0, 0), + new google.maps.Point(7, 26) + ); + //custom marker shadow + var shadow = new google.maps.MarkerImage('http://media.luxagraf.net/img/shadow.png', + new google.maps.Size(37, 34), + new google.maps.Point(0,0), + new google.maps.Point(8, 34) + ); + + + //check for a permalink + var location = window.location.hash; + //find a centerpoint + var pts = new Array(); + {%for c in country_list%}pts[{{forloop.counter0}}] = ["#{{c.slug}}", {{c.lat}},{{c.lon}},{{c.zoom_level}}];{% endfor %} + {%for c in region_list%}pts[pts.length] = ["#{{c.slug}}", {{c.lat}},{{c.lon}},{{c.zoom_level}}];{% endfor %} + if (location.length>1) { + for (i=0;i +

Trips

+ +

Regions

+ + +

Countries

+ + + \ No newline at end of file diff --git a/templates/bin/recent_entries.html b/templates/bin/recent_entries.html new file mode 100644 index 0000000..dbd875b --- /dev/null +++ b/templates/bin/recent_entries.html @@ -0,0 +1,13 @@ +{% load typogrify %}{% for object in object_list %}{% endfor %} diff --git a/templates/bin/regions_sidebar.html b/templates/bin/regions_sidebar.html new file mode 100644 index 0000000..ce14e68 --- /dev/null +++ b/templates/bin/regions_sidebar.html @@ -0,0 +1,6 @@ + \ No newline at end of file diff --git a/templates/includes/country_sidebar.html b/templates/includes/country_sidebar.html deleted file mode 100644 index 10d3c68..0000000 --- a/templates/includes/country_sidebar.html +++ /dev/null @@ -1,55 +0,0 @@ -
-

Trips

- -

Regions

- - -

Countries

- - -
\ No newline at end of file diff --git a/templates/includes/country_sidebar_template.html b/templates/includes/country_sidebar_template.html deleted file mode 100644 index 03570da..0000000 --- a/templates/includes/country_sidebar_template.html +++ /dev/null @@ -1,6 +0,0 @@ - \ No newline at end of file diff --git a/templates/includes/map_entry_list.html b/templates/includes/map_entry_list.html deleted file mode 100644 index 51a299e..0000000 --- a/templates/includes/map_entry_list.html +++ /dev/null @@ -1,1317 +0,0 @@ - - - -function initialize() { - - //custom marker - var image = new google.maps.MarkerImage('http://media.luxagraf.net/img/marker-entry.png', - new google.maps.Size(15, 26), - new google.maps.Point(0, 0), - new google.maps.Point(7, 26) - ); - //custom marker shadow - var shadow = new google.maps.MarkerImage('http://media.luxagraf.net/img/shadow.png', - new google.maps.Size(37, 34), - new google.maps.Point(0,0), - new google.maps.Point(8, 34) - ); - - - //check for a permalink - var location = window.location.hash; - //find a centerpoint - var pts = new Array(); - pts[0] = ["#austria", 47.683,14.912,8];pts[1] = ["#cambodia", 12.714,104.564,7];pts[2] = ["#croatia", 45.723,16.693,7];pts[3] = ["#czech-republic", 49.9017112173,14.9963378906,7];pts[4] = ["#france", 46.565,2.55,6];pts[5] = ["#hungary", 47.07,19.134,7];pts[6] = ["#india", 21.0,78.5,5];pts[7] = ["#laos", 19.905,102.471,6];pts[8] = ["#nepal", 28.253,83.939,6];pts[9] = ["#nicaragua", 12.84,-85.034,7];pts[10] = ["#slovenia", 46.124,14.827,9];pts[11] = ["#thailand", 15.7,100.844,5];pts[12] = ["#united-kingdom", 53.0,-1.6,6];pts[13] = ["#united-states", 39.622,-98.606,4]; - pts[pts.length] = ["#central-america", 14.3708339734,-87.8686523438,6];pts[pts.length] = ["#southeast-asia", 12.2970682929,102.744140625,5];pts[pts.length] = ["#central-asia", 20.0146454453,79.892578125,5];pts[pts.length] = ["#europe", 47.0102256557,4.74609375,5];pts[pts.length] = ["#north-america", 39.0277188402,-98.349609375,4]; - if (location.length>1) { - for (i=0;i1) { - for (i=0;i -

Trips

- -

Regions

- - -

Countries

- - - \ No newline at end of file diff --git a/templates/includes/map_sidebar_template.html b/templates/includes/map_sidebar_template.html deleted file mode 100644 index 18dd118..0000000 --- a/templates/includes/map_sidebar_template.html +++ /dev/null @@ -1,25 +0,0 @@ -{% load truncateletters %} -{% load slugify_under %} -
-

Trips

- -

Regions

- - -

Countries

- - -
\ No newline at end of file diff --git a/templates/includes/recent_entries.html b/templates/includes/recent_entries.html deleted file mode 100644 index 845374d..0000000 --- a/templates/includes/recent_entries.html +++ /dev/null @@ -1,28 +0,0 @@ -
-

Dinosaur National Monument, Part One: Echo Park

- - Dinosaur National Monument, Part One: Echo Park -

Dinosaur National Monument was poorly named. The best parts of it are not the fossils in the quarry (which is closed for 2010 anyway) but the canyon country — some of the best, most remote canyon country you'll find in this part of the world.

- -
-

The Endless Crowds of Yellowstone

- - The Endless Crowds of Yellowstone -

There is wilderness in Yellowstone, even if it's just inches from the boardwalks that transport thousands around the geothermal pools. It may not be wilderness on a grand scale — the sweeping mountain peaks or wild rivers of other parks — but in some ways that makes it more enticing. As one Ranger told me, Yellowstone isn't about the big picture, the grand scenery, it's about the tiny details within each pool. To really see Yellowstone, he said, you have to take your time, move slowly and look closely.

- -
-

Backpacking in the Grand Tetons

- - Backpacking in the Grand Tetons -

Hiking into the wilderness empties your mind. You fall into the silence of the mountains and you can relax in a way that's very difficult to do in the midst of civilization. The white noise that surrounds us in our everyday lives, that noise we don't even notice as it adds thin layers of stress that build up over days, weeks, years, does not seem capable of following us into the mountains.

- -
diff --git a/templates/includes/recent_entries_template.html b/templates/includes/recent_entries_template.html deleted file mode 100644 index 2140cb6..0000000 --- a/templates/includes/recent_entries_template.html +++ /dev/null @@ -1,10 +0,0 @@ -{% load typogrify %}{% for object in object_list %}{% endfor %} diff --git a/templates/includes/regions_sidebar.html b/templates/includes/regions_sidebar.html deleted file mode 100644 index fcedb8d..0000000 --- a/templates/includes/regions_sidebar.html +++ /dev/null @@ -1,18 +0,0 @@ - \ No newline at end of file diff --git a/templates/includes/regions_sidebar_template.html b/templates/includes/regions_sidebar_template.html deleted file mode 100644 index ce14e68..0000000 --- a/templates/includes/regions_sidebar_template.html +++ /dev/null @@ -1,6 +0,0 @@ - \ No newline at end of file -- cgit v1.2.3-70-g09d2