summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/404.html30
-rw-r--r--templates/500.html37
-rw-r--r--templates/archives/homepage.html60
-rw-r--r--templates/archives/map.html150
-rw-r--r--templates/archives/photos.html77
-rw-r--r--templates/archives/region.html110
-rw-r--r--templates/archives/robots.html1
-rw-r--r--templates/archives/writing.html79
-rw-r--r--templates/base.html110
-rw-r--r--templates/contact_form/contact_form.html73
-rw-r--r--templates/contact_form/contact_form.txt5
-rw-r--r--templates/contact_form/contact_form_sent.html25
-rw-r--r--templates/contact_form/contact_form_subject.txt1
-rw-r--r--templates/details/about.html42
-rw-r--r--templates/details/entry.html66
-rw-r--r--templates/details/photo.html85
-rw-r--r--templates/gis/admin/google.html5
-rw-r--r--templates/gis/admin/google.js2
18 files changed, 958 insertions, 0 deletions
diff --git a/templates/404.html b/templates/404.html
new file mode 100644
index 0000000..56b58a4
--- /dev/null
+++ b/templates/404.html
@@ -0,0 +1,30 @@
+{% extends 'base.html' %}
+{% load typogrify %}
+{% block pagetitle %}Luxagraf | Error 404 {% endblock %}
+
+
+ {% block title %}404 Page Not Found{% endblock %}
+
+
+ {% block primary %}
+
+ <p><b>Oh my god you broke the internet.</b></p>
+
+<p><b>Al Gore is pissed.</b></p>
+<p><b>So is the hamster</b></p>
+<p>This is probably because of one or more of the following:</p>
+<ol class="generic">
+ <li>The hamster who fetches these pages has stepped out for a smoke break (he earns extra travel money over at the Philip Morris Labs where he poses as a rat and gets paid under the table).</li>
+ <li>The hamster who fetches these pages is actually at Phillip Morris Labs working right now in which case you'll just have to wait until he comes back here.</li>
+ <li>The hamster who fetches the pages finally made enough extra travel money working nights at the Philip Morris Labs to actually travel and is no longer running this site at all, in fact he's sipping Mai Tai's in Indonesia even as we speak, laughing that semi-sinister but always endearing high pitched squeak of a laugh.</li>
+ <li>The hamster may be innocent. Perhaps I was drunk and left the page in the back of a cab.</li>
+ <li>Wait, why is this our fault? Why are you so quick to blame the hamster? This could be your fault. You might have man hands or thick, clumsy fingers or that led you to type the wrong address. Or you might just be an idiot. Or you might be following the links of an idiot. See what happens when you visit other sites? Keep it simple, make the hamster happy. Limit your internet usage to luxagraf only.</li>
+ <li>Of course its possible that you're ahead of me and the page simply hasn't been invented yet, which makes you a genius. And explains why the hamster coouldn't find it.</li>
+ <li>It's also entirely possible that the page exists but the hamster doesn't want to show it to you. It maybe one of those "backroom" pages he has where secret stuff beyond your wildest imaginings are happening even now, right this second, just behind this blank white curtain. Stuff which you can only guess at. You can ask the hamster for an invite. Just email a full body shot, two forms of ID and a credit card number for verification purposes.</li>
+ </ol>
+
+ <p>Whatever the case you may <a href="javascript:history.go(-1)">return from whence you came</a>, <a href="/" title="Luxagraf Homepage">Head for the main page</a> or try searching again for whatever it is you wanted to find.</p>
+ {% endblock %}
+
+
+
diff --git a/templates/500.html b/templates/500.html
new file mode 100644
index 0000000..84954d9
--- /dev/null
+++ b/templates/500.html
@@ -0,0 +1,37 @@
+{% extends 'base.html' %}
+{% load typogrify %}
+{% block pagetitle %}Luxagraf | Internal Server Error {% endblock %}
+{% block metadescription %}Luxagraf: {{object.dek|striptags|safe}}{% endblock %}
+
+
+ {% block title %}500 Internal Server Error{% endblock %}
+
+
+ {% block primary %}
+
+ <p>Holy crap, you broke the internet. The proper authorities have been notified and it will most likely be working again soon.</p>
+
+ {% endblock %}
+
+
+
+{% block sidebar %}
+<div id="sidebar">
+ <div id="nav" class="first"><a href="{{featured.get_previous_published.get_absolute_url}}" title="">&laquo;Previous</a></div>
+ <div class="blok">
+ <h4>Topography</h4>
+ {% chunk "regions_sidebar" %}
+ </div>
+ <div class="blok">
+ <h4>About Luxagraf</h4>
+ {% chunk "about_sidebar" %}
+
+ </div>
+
+ <div class="blok">
+ <h4>Follow Along</h4>
+ {% chunk "follow_sidebar" %}
+ </div>
+</div><!-- sidebar -->
+
+{% endblock %} \ No newline at end of file
diff --git a/templates/archives/homepage.html b/templates/archives/homepage.html
new file mode 100644
index 0000000..aceb846
--- /dev/null
+++ b/templates/archives/homepage.html
@@ -0,0 +1,60 @@
+{% extends 'base.html' %}
+{% load chunks %}
+{% load typogrify %}
+
+{%block bodyid%}id="home"{%endblock%}
+
+{% block title %}<a href="{{featured.get_absolute_url}}">{{featured.title|smartypants|safe}}</a>{% endblock %}
+
+{% block date %}{{featured.pub_date|date:"F j, Y"}}{% endblock %}
+
+{% block primary %}
+{{featured.lede|smartypants|widont|safe}}
+<span class="date"><a href="{{featured.get_absolute_url}}" title="{{object.title}}">More &raquo;</a></span>
+{% endblock %}
+
+{% block extrabody %}
+<div class="archives">
+ <h4 id="archive-header">Recently</h4>
+ <ul>
+ {% for object in object_list %}
+ <li>
+ <dl>
+ <dt>
+ <span class="post-image"><img src="{{object.get_thumbnail_url}}" alt="{{ object.title }}"/></span>
+ <h3><a href="{{object.get_absolute_url}}" title="{{object.title}}">{{object.title|smartypants|widont|safe}}</a></h3>
+ </dt>
+ <dd>
+ <span class="date">{{object.pub_date|date:"F j, Y"}} {% ifequal object.location.state.country.name "United States" %}({{object.location.name|smartypants|safe}}, {{object.location.state.name}}){%else%}({{object.location.name|smartypants|safe}}, {{object.location.state.country.name}}){%endifequal%}</span>
+ {{object.dek|safe}}
+ <span class="more"><a href="{{object.get_absolute_url}}" title="{{object.title}}">Read&nbsp;it&nbsp;&raquo;</a></span>
+ </dd>
+ </dl>
+ </li>
+ {% endfor %}
+ </ul>
+</div>
+{% endblock %}
+
+
+
+{% block sidebar %}
+<div id="sidebar">
+ <div id="nav" class="first"><a href="{{featured.get_previous_published.get_absolute_url}}" title="">&laquo;Previous</a></div>
+ <div class="blok">
+ <h4>Topography</h4>
+ {% chunk "regions_sidebar" %}
+ </div>
+ <div class="blok">
+ <h4>About Luxagraf</h4>
+ {% chunk "about_sidebar" %}
+
+ </div>
+
+ <div class="blok">
+ <h4>Follow Along</h4>
+ {% chunk "follow_sidebar" %}
+ </div>
+</div><!-- sidebar -->
+
+{% endblock %} \ No newline at end of file
diff --git a/templates/archives/map.html b/templates/archives/map.html
new file mode 100644
index 0000000..2714861
--- /dev/null
+++ b/templates/archives/map.html
@@ -0,0 +1,150 @@
+{% extends 'base.html' %}
+{% load typogrify %}
+{% load truncateletters %}
+{% load slugify_under %}
+
+{% block pagetitle %}Luxagraf | Map and Trips{% endblock %}
+{% block metadescription %}Writing Archive, Luxagraf{% endblock %}
+
+{#==============================================
+Google Maps code
+==============================================#}
+{% block extrahead %}
+
+<script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key={{map_key}}" type="text/javascript"></script>
+
+
+
+
+{% endblock %}
+{%block bodyid%}id="location"{%endblock%}
+{% block bodyevents %}onload="initialize()" onunload="GUnload()"{% endblock %}
+
+
+
+
+
+{% block primary %}
+ <div id="map-canvas">
+
+</div>
+ {% endblock %}
+
+{% block titleoverride %} {% endblock %}
+
+{% block sidebar %}
+<div id="sidebar">
+ <div class="blok">
+ <h4 class="first">Trips</h4>
+ <ul>
+ <li><a onclick="addRoute('yi_iAp}mmOlzd@egy@njcCcpOq{hDxyqAai_@kvhSio[b|zVjhNbmZ','BBBBBBB','#FF0000',12.0554, -85.1880, 8);" href="#">Nicaragua (2008)</a></li>
+ </ul>
+ <h4>Regions</h4>
+ <ul>
+ {%for region in region_list %}
+ <li><a href="#{{region.slug}}" onclick="focusCountry({{region.lat}}, {{region.lon}}, {{region.zoom_level}});" title="See all writing from {{region.name|title}}">{{region.name}}</a></li>
+ {% endfor %}
+ </ul>
+
+ <h4>Countries</h4>
+ <ul>
+ <li><a onclick="focusCountry(19.311143,2.460938,2);" href="#">All</a></li>
+ {%for country in country_list %}
+ <li><a href="#{{country.slug}}" onclick="focusCountry({{country.lat}}, {{country.lon}}, {{country.zoom_level}});" title="See all writing from {{country.name|title}}">{{country.name}}</a></li>
+ {% endfor %}
+ </ul>
+
+ </div>
+</div><!-- sidebar -->
+
+{% endblock %}
+{% block js %}
+
+<script type="text/javascript">
+ var map = null;
+ function JLngLat(a,b) {
+ return new GLatLng(b,a)
+ }
+ function initialize() {
+ if (GBrowserIsCompatible()) {
+ var tinyIcon = new GIcon();
+ tinyIcon.image = "http://media.luxagraf.net/img/marker-entry.png";
+ tinyIcon.shadow = "http://media.luxagraf.net/img/shadow.png";
+ tinyIcon.iconSize = new GSize(12, 20);
+ tinyIcon.shadowSize = new GSize(22, 20);
+ tinyIcon.iconAnchor = new GPoint(6, 20);
+ tinyIcon.infoWindowAnchor = new GPoint(5, 5);
+
+ //var iconOptions = {};
+ //iconOptions.primaryColor = "#a53503";
+ //iconOptions.strokeColor = "#201a11";
+ //var icon = MapIconMaker.createLabeledMarkerIcon(iconOptions);
+
+ var location = window.location.hash;
+ 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<pts.length;i++) {
+ if (location == pts[i][0]) {
+ point = new GLatLng(pts[i][1],pts[i][2]);
+ zoom = pts[i][3];
+ break;
+ } else {
+ point = new GLatLng(19.311143,2.460938);
+ zoom = 2;
+ }
+ }
+ } else {
+ point = new GLatLng(19.311143,2.460938);
+ zoom = 2;
+ }
+
+ // create a new map.
+ map = new GMap2(document.getElementById("map-canvas"));
+ map.enableContinuousZoom()
+ map.setCenter(point, zoom, G_PHYSICAL_MAP);
+
+ // basic control and overview (closed by default)
+ map.addControl(new GSmallZoomControl());
+ var ov = new GOverviewMapControl(new GSize(100,100));
+ map.addControl(ov);
+ ov.hide(true);
+
+ // Add a marker for each project
+
+ {% for entry in object_list %}
+ point_{{entry.title|truncatewords:2|slugify_under}} = JLngLat{{entry.point.coords}};
+ markerOptions = { clickable:true, draggable:false, icon:tinyIcon};
+ marker_{{entry.title|truncatewords:2|slugify_under}} = new GMarker(point_{{entry.title|truncatewords:2|slugify_under}}, markerOptions);
+ map.addOverlay(marker_{{entry.title|truncatewords:2|slugify_under}});
+ marker_{{entry.title|truncatewords:2|slugify_under}}.info_window_content = '<div class="mcanvas"><h4>{{entry.title}}<\/h4><span>{{entry.pub_date|date:"F j, Y"}} ({% ifequal entry.location.state.country.name "United States" %}{{entry.location.name|smartypants|safe}}, {{entry.location.state.name}}){%else%}{{entry.location.name|smartypants|safe}}, {{entry.location.state.country.name}}){%endifequal%}<\/span><p><img src="{{entry.get_thumbnail_url}}" height="100" alt="{{ entry.title }}" \/>{{entry.dek|escapejs}} <a href="{{entry.get_absolute_url}}">Read it &raquo;<\/a><\/p><\/div>'
+ marker_{{entry|truncatewords:2|slugify_under}}.bindInfoWindowHtml(marker_{{entry|truncatewords:2|slugify_under}}.info_window_content, {maxWidth:400});
+ GEvent.addListener(marker_{{entry.title|truncatewords:2|slugify_under}}, "click", function() {
+ map.panTo(point_{{entry.title|truncatewords:2|slugify_under}}, 2);
+ });
+
+ {% endfor %}
+ }
+ }
+
+ // center on a country
+ function focusCountry(latitude, longitude, zoom) {
+ map.setZoom(zoom);
+ map.panTo(new GLatLng(latitude, longitude))
+ }
+ function addRoute(line,levels,color,lat,lon,zoom){
+ var encodedPolyline = new GPolyline.fromEncoded({
+ color: color,
+ weight: 5,
+ points: line,
+ levels: levels,
+ zoomFactor: 32,
+ numLevels: 4
+ });
+ focusCountry(lat,lon,zoom);
+ map.addOverlay(encodedPolyline);
+ }
+ </script>
+
+{%endblock%} \ No newline at end of file
diff --git a/templates/archives/photos.html b/templates/archives/photos.html
new file mode 100644
index 0000000..425e375
--- /dev/null
+++ b/templates/archives/photos.html
@@ -0,0 +1,77 @@
+{% extends 'base.html' %}
+{% load chunks %}
+{% load typogrify %}
+{% load pagination_tags %}
+
+{% block pagetitle %}Luxagraf | {% if region %}Photos from {{region.name|title|smartypants|safe}}{%else%}Photos from Around the World {%endif%}{% endblock %}
+{% block metadescription %}Photo Archive, Luxagraf{% endblock %}
+
+
+{%block bodyid%}id="writing-archive"{%endblock%}
+
+{% block title %}Photos from {% endblock %}
+
+{% block date %}{% endblock %}
+
+{% block primaryoverride %}<h2>{% if region %}Photos from {{region.name|title|smartypants|safe}}{%else%}Photos {%endif%}</h2>{% endblock %}
+{% block extrabody %}
+<div class="photo-archives">
+ <ul>
+ {% autopaginate object_list 20 %}
+ {% for object in object_list %}
+ <li>
+ <dl>
+ <dt>
+ <span class="post-image"><a href="{%comment%}{{object.get_absolute_url}}{%endcomment%}http://www.flickr.com/photos/luxagraf/sets/{{object.set_id}}/show/"><img src="{{object.get_main_image}}" alt="{{ object.set_title }}"/></a></span>
+ </dt>
+ <dd>
+ <span class="date">{{object.set_title}} {%comment%}{% ifequal object.location.state.country.name "United States" %}({{object.location.name|smartypants|safe}}, {{object.location.state.name}}){%else%}({{object.location.name|smartypants|safe}}, {{object.location.state.country.name}}){%endifequal%}{%endcomment%}</span>
+ {{object.set_desc|truncatewords:30|smartypants|safe}}
+ </dd>
+ </dl>
+ </li>
+ {% endfor %}
+ </ul>
+
+ <div class="pagination-wrapper">{% paginate %}</div>
+</div>
+
+{% endblock %}
+
+
+
+{% block sidebar %}
+<div id="sidebar">
+ <div class="blok">
+ <h4 class="first">Regions</h4>
+ <ul>
+ {%for region in region_list %}
+ <li><a href="/photos/{{region.slug}}/1/" title="See all photos from {{region.name|title}}">{{region.name}}</a></li>
+ </li>
+ {% endfor %}
+ </ul>
+ </div>
+ <div class="blok">
+ <h4>Countries</h4>
+ <ul>
+ {%for country in country_list %}
+ <li><a href="/photos/{{country.slug}}/1/" title="See all photos from {{country.name|title}}">{{country.name}}</a></li>
+ </li>
+ {% endfor %}
+ </ul>
+
+ </div>
+
+ <div class="blok">
+ <h4>About Luxagraf</h4>
+ {% chunk "about_sidebar" %}
+
+ </div>
+
+ <div class="blok">
+ <h4>Follow Along</h4>
+ {% chunk "follow_sidebar" %}
+ </div>
+</div><!-- sidebar -->
+
+{% endblock %} \ No newline at end of file
diff --git a/templates/archives/region.html b/templates/archives/region.html
new file mode 100644
index 0000000..d4b8c4a
--- /dev/null
+++ b/templates/archives/region.html
@@ -0,0 +1,110 @@
+{% extends 'base.html' %}
+{% load chunks %}
+{% load truncateletters %}
+{% load slugify_under %}
+
+{% block pagetitle %}Luxagraf | Stories from {{region.name}}{% endblock %}
+{% block metadescription %}Writing Archive, Luxagraf{% endblock %}
+
+{#==============================================
+Google Maps code
+==============================================#}
+{% block extrahead %}
+
+<script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key={{map_key}}" type="text/javascript" type="text/javascript"></script>
+<script src="http://gmaps-utility-library.googlecode.com/svn/trunk/mapiconmaker/1.1/src/mapiconmaker.js" type="text/javascript" type="text/javascript"></script>
+
+<script type="text/javascript">
+ var map = null;
+ function JLngLat(a,b) {
+ return new GLatLng(b,a)
+ }
+ function initialize() {
+ if (GBrowserIsCompatible()) {
+ var iconOptions = {};
+ iconOptions.primaryColor = "#a53503";
+ iconOptions.strokeColor = "#201a11";
+ var icon = MapIconMaker.createLabeledMarkerIcon(iconOptions);
+
+ point = new GLatLng({{region.lat}},{{region.lon}})
+ // create a new map.
+ map = new GMap2(document.getElementById("map-canvas"));
+ map.setCenter(point, {{region.zoom_level}}, G_PHYSICAL_MAP);
+
+ // basic control and overview (closed by default)
+ map.addControl(new GSmallZoomControl());
+ var ov = new GOverviewMapControl(new GSize(100,100));
+ map.addControl(ov);
+ ov.hide(true);
+
+ // Add a marker for each project
+
+ {% for entry in object_list %}
+ point_{{entry.title|truncatewords:2|slugify_under}} = JLngLat{{entry.point.coords}};
+ markerOptions = { clickable:true, draggable:false, icon:icon};
+ marker_{{entry.title|truncatewords:2|slugify_under}} = new GMarker(point_{{entry.title|truncatewords:2|slugify_under}}, markerOptions);
+ map.addOverlay(marker_{{entry.title|truncatewords:2|slugify_under}});
+ marker_{{entry.title|truncatewords:2|slugify_under}}.info_window_content = '<h4>{{entry.title}}<\/h4><span>{{entry.location|safe}}, {{entry.location.state.country.name|safe}}<\/span><p><img src="{{entry.thumbnail.url}}" height="100" alt="{{ entry.title }}" \/>{{entry.dek|escapejs}} <a href="{{entry.get_absolute_url}}">Read it &raquo;<\/a><\/p>'
+ marker_{{entry|truncatewords:2|slugify_under}}.bindInfoWindowHtml(marker_{{entry|truncatewords:2|slugify_under}}.info_window_content, {maxWidth:400});
+ GEvent.addListener(marker_{{entry.title|truncatewords:2|slugify_under}}, "click", function() {
+ map.panTo(point_{{entry.title|truncatewords:2|slugify_under}}, 2);
+ });
+
+ {% endfor %}
+ }
+ }
+
+ // center on a city
+ function focusCity(marker, latitude, longitude) {
+ point = new GLatLng(latitude, longitude)
+ map.panTo(point)
+ map.setZoom(6);
+ marker.openInfoWindowHtml(marker.info_window_content)
+ }
+ // center on a country
+ function focusCountry(latitude, longitude, zoom) {
+ p = new GLatLng(latitude, longitude)
+ map.panTo(p)
+ map.setZoom(zoom);
+ }
+ function addRoute(line,levels,color,lat,lon,zoom){
+ var encodedPolyline = new GPolyline.fromEncoded({
+ color: color,
+ weight: 5,
+ points: line,
+ levels: levels,
+ zoomFactor: 32,
+ numLevels: 4
+});
+focusCountry(lat,lon,zoom);
+map.addOverlay(encodedPolyline);
+
+ }
+ </script>
+
+{% endblock %}
+{%block bodyid%}id="location"{%endblock%}
+{% block bodyevents %}onload="initialize()" onunload="GUnload()"{% endblock %}
+
+
+
+
+
+{% block primary %}
+ <div id="map-canvas">
+
+</div>
+ {% endblock %}
+
+{% block titleoverride %} {% endblock %}
+
+{% block sidebar %}
+<div id="sidebar">
+ <div class="blok">
+ <h4 class="first">Topography</h4>
+ {% chunk "regions_sidebar" %}
+
+ </div>
+</div><!-- sidebar -->
+
+{% endblock %} \ No newline at end of file
diff --git a/templates/archives/robots.html b/templates/archives/robots.html
new file mode 100644
index 0000000..ac2bc1f
--- /dev/null
+++ b/templates/archives/robots.html
@@ -0,0 +1 @@
+User-agent: * Disallow: /stats/ Disallow: /media/js/ Disallow: /media/img/ \ No newline at end of file
diff --git a/templates/archives/writing.html b/templates/archives/writing.html
new file mode 100644
index 0000000..f3bc288
--- /dev/null
+++ b/templates/archives/writing.html
@@ -0,0 +1,79 @@
+{% extends 'base.html' %}
+{% load chunks %}
+{% load typogrify %}
+{% load pagination_tags %}
+
+{% block pagetitle %}Luxagraf | {% if region %}Writings from {{region.name|title|smartypants|safe}}{%else%}Writing Archive {%endif%}{% endblock %}
+{% block metadescription %}Writing Archive, Luxagraf{% endblock %}
+
+
+{%block bodyid%}id="writing-archive"{%endblock%}
+
+{% block title %}Writing Archive{% endblock %}
+
+{% block date %}{% endblock %}
+
+{% block primaryoverride %}<h2>{% if region %}Writings from {{region.name|title|smartypants|safe}}{%else%}Writing Archive {%endif%}</h2>{% endblock %}
+{% block extrabody %}
+<div class="archives">
+ <ul>
+ {% autopaginate object_list 10 %}
+ {% for object in object_list %}
+ <li>
+ <dl>
+ <dt>
+ <span class="post-image"><img src="{%if object.thumbnail%}{{object.get_thumbnail_url}}" alt="{{ object.title }}{%endif%}"/></span>
+ <h3><a href="{{object.get_absolute_url}}" title="{{object.title}}">{{object.title|smartypants|widont|safe}}</a></h3>
+ </dt>
+ <dd>
+ <span class="date">{{object.pub_date|date:"F j, Y"}} {% ifequal object.location.state.country.name "United States" %}({{object.location.name|smartypants|safe}}, {{object.location.state.name}}){%else%}({{object.location.name|smartypants|safe}}, {{object.location.state.country.name}}){%endifequal%}</span>
+ {{object.dek|safe}}
+ <span class="more"><a href="{{object.get_absolute_url}}" title="{{object.title}}">Read it &raquo;</a></span>
+ </dd>
+ </dl>
+ </li>
+ {% endfor %}
+ </ul>
+
+ <div class="pagination-wrapper">{% paginate %}</div>
+</div>
+
+{% endblock %}
+
+
+
+{% block sidebar %}
+<div id="sidebar">
+ <div class="blok">
+ <h4 class="first">Regions</h4>
+ <ul>
+ {%for region in region_list %}
+ <li><a href="/writing/{{region.slug}}/1/" title="See all writing from {{region.name|title}}">{{region.name}}</a></li>
+ </li>
+ {% endfor %}
+ </ul>
+ </div>
+ <div class="blok">
+ <h4>Countries</h4>
+ <ul>
+ {%for country in country_list %}
+ <li><a href="/writing/{{country.slug}}/1/" title="See all writing from {{country.name|title}}">{{country.name}}</a></li>
+ </li>
+ {% endfor %}
+ </ul>
+
+ </div>
+
+ <div class="blok">
+ <h4>About Luxagraf</h4>
+ {% chunk "about_sidebar" %}
+
+ </div>
+
+ <div class="blok">
+ <h4>Follow Along</h4>
+ {% chunk "follow_sidebar" %}
+ </div>
+</div><!-- sidebar -->
+
+{% endblock %} \ No newline at end of file
diff --git a/templates/base.html b/templates/base.html
new file mode 100644
index 0000000..190175a
--- /dev/null
+++ b/templates/base.html
@@ -0,0 +1,110 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
+ "http://www.w3.org/TR/html4/strict.dtd">
+<html lang="en">
+<head>
+ <title>{% block pagetitle %}Luxagraf - Topografical Writings{% endblock %}</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+
+
+ <link rel="alternate"
+ type="application/rss+xml"
+ title="RSS 2.0"
+ href="http://feeds.feedburner.com/luxagraf/everything">
+
+
+ <link rel="stylesheet"
+ href="{{media_url}}css/base.css"
+ type="text/css"
+ media="screen"
+ charset="utf-8">
+
+<!--[if IE 6]><link rel="stylesheet" href="http://media.luxagraf.net/new/css/ie6.css" type="text/css" media="screen, projection"><![endif]-->
+
+ <link rel="shortcut icon"
+ href="http://media.luxagraf.net/img/favicon.ico"
+ type="image/vnd.microsoft.icon">
+
+ <link rel="apple-touch-icon"
+ href="http://media.luxagraf.net/img/luxagrafiphoneicon.png">
+
+ <meta name="author" content="luxagraf">
+ <meta name="description"
+ content="{% block metadescription %}Luxagraf: a travelogue of sorts, Recording journeys around the world and just next door.{% endblock %}">
+ <meta name="keywords"
+ content="luxagraf writing travel authors philosophy ramblings">
+ <meta name="copyright"
+ content="Licensed under the Creative Commons Attribution-Noncommercial-Share Alike 3.0 License">
+
+
+ <link rel="openid.server"
+ href="http://www.myopenid.com/server" >
+
+ <link rel="openid.delegate"
+ href="http://luxagraf.myopenid.com/" >
+
+<meta name="verify-v1" content="ZCZSYGNdjeLCPx5trSQELyhY9kq9N7CznTcv5JFkpnM=">
+{%block extrahead%}{%endblock%}
+</head>
+
+<body {%block bodyid%}{%endblock%}{%block bodyevents%}{%endblock%}>
+
+<div id="header">
+ <h1><a href="/" title="home">Luxagraf, a travelgue</a></h1>
+ <ul id="menu">
+ <li id="stories"><a href="/writing/1/" title="An archive of previous writings from around the world">Stories</a></li>
+ <li id="photos" title="Photos from travels around the world"><a href="/photos/1/">Photos</a></li>
+ <li id="map" title="luxagraf stories plotted on a map"><a href="/map/">Map</a></li>
+ <!--<li id="books"><a href="/books/">Books</a></li>-->
+ </ul>
+</div>
+
+
+<div class="container">
+
+ <div id="primary">
+
+ {% block primaryoverride %}
+ <div class="content">
+ {% block titleoverride %}<h2>{% block title %}{% endblock %}</h2>{% endblock %}
+
+ {% block primary %}
+ {% endblock %}
+
+ </div>
+ {% endblock %}
+
+
+ <div class="meta">
+ <p class="date">{% block date %}{% endblock %}</p>
+
+ </div>
+
+ {% block extrabody %}
+
+ {% endblock %}
+
+
+
+
+
+ </div>
+{% block sidebar %}
+
+{% endblock %}
+<div class="push"></div>
+</div><!-- end of main top content -->
+
+<div id="foot">
+ <div id="footer">
+ <span id="foot-float">Other stuff:</span>
+ <ul>
+ <li><a href="/about/" title="About Luxagraf">About</a></li>
+ <li><a href="/contact/" title="Get in touch">Contact</a></li>
+ <li><a href="/colophon/" title="How Luxagraf is made">Colophon</a></li>
+ </ul>
+ <p>All content licensed under the Creative Commons (<a href="http://creativecommons.org/licenses/by-nc-sa/3.0/deed.en" title="read the Attribution-Noncommercial-Share Alike 3.0 deed">details</a>). <span>Built with <a href="http://geodjango.org/" title="a GeoDjango joint">GeoDjango</a> and hosted on <a href="http://www.webfaction.com/" title="webfaction">Webfaction</a>.</span></p>
+ </div>
+</div>
+{% block js %}{% endblock%}
+</body>
+</html> \ No newline at end of file
diff --git a/templates/contact_form/contact_form.html b/templates/contact_form/contact_form.html
new file mode 100644
index 0000000..4864085
--- /dev/null
+++ b/templates/contact_form/contact_form.html
@@ -0,0 +1,73 @@
+{% extends 'base.html' %}
+
+{#==============================================
+Load up the various metadata add-ins
+================================================#}
+
+{% block meta_description %} Contact, Get in touch with corriegreathouse.com.{%endblock%}
+{% block metatitle %} - Get in Touch{% endblock %}
+{% block metakeywords %}contact, get in touch, drop a line{%endblock%}
+
+{#==============================================
+Fill in the Title And Dateline Blocks
+================================================#}
+
+{%block title %}
+Contact Me
+{%endblock%}
+
+
+{% block dateline %}
+Share your thoughts, ask a question, etc
+{% endblock%}
+
+
+{#==============================================
+ Primary Content
+================================================#}
+
+
+{%block primary%}
+<div class="form-holder">
+<form method="post" action="" class="contact-form">
+<dl>
+{% for field in form %}
+ <dt>{{ field.label_tag }}</dt>
+ <dd>{{ field }}</dd>
+ {% if field.help_text %}<dd>{{ field.help_text }}</dd>{% endif %}
+ {% if field.errors %}<dd class="myerrors">{{ field.errors }}</dd>{% endif %}
+{% endfor %}
+</dl>
+<input type="submit" class="button" value="Contact" />
+</form>
+</div>
+{%endblock%}
+
+
+{#==============================================
+ Secondary Content
+================================================#}
+
+{% block right %}
+<h4>Thanks for visting luxagraf</h4>
+ <p class="graf">
+ If you've got a question, comment, or thought you'd like to share, I'd love to hear it. But keep in mind that I'm not the best correspondent, however, rest assured that I do read every email I get even if I don't always respond in a timely fashion.
+ </p>
+{%endblock%}
+
+
+{#==============================================
+This page shows Photos in the bottom left column
+so we need to override the books block
+==============================================#}
+
+{% block books %}
+{% endblock %}
+
+
+
+
+{% block photos %}
+
+
+{% endblock %} \ No newline at end of file
diff --git a/templates/contact_form/contact_form.txt b/templates/contact_form/contact_form.txt
new file mode 100644
index 0000000..701b8bb
--- /dev/null
+++ b/templates/contact_form/contact_form.txt
@@ -0,0 +1,5 @@
+Message from luxagraf:
+
+Name: {{name}}
+
+Wrote: {{body}} \ No newline at end of file
diff --git a/templates/contact_form/contact_form_sent.html b/templates/contact_form/contact_form_sent.html
new file mode 100644
index 0000000..adeabb6
--- /dev/null
+++ b/templates/contact_form/contact_form_sent.html
@@ -0,0 +1,25 @@
+{% extends 'contact_form/contact_form.html' %}
+
+{#==============================================
+Fill in the Title And Dateline Blocks
+================================================#}
+
+{%block title %}
+Thank You
+{%endblock%}
+
+
+{% block dateline %}
+Thanks for sharing your thoughts
+{% endblock%}
+
+
+{#==============================================
+ Primary Content
+================================================#}
+
+{%block primary%}
+
+<p>Thanks for sharing your thoughts, I will make an effort to respond promptly</p>
+
+{% endblock %} \ No newline at end of file
diff --git a/templates/contact_form/contact_form_subject.txt b/templates/contact_form/contact_form_subject.txt
new file mode 100644
index 0000000..9719f2c
--- /dev/null
+++ b/templates/contact_form/contact_form_subject.txt
@@ -0,0 +1 @@
+[luxagraf] {{subject_line}} \ No newline at end of file
diff --git a/templates/details/about.html b/templates/details/about.html
new file mode 100644
index 0000000..66ea623
--- /dev/null
+++ b/templates/details/about.html
@@ -0,0 +1,42 @@
+{% extends 'base.html' %}
+{% load chunks %}
+{% load typogrify %}
+{% block pagetitle %}Luxagraf | {{flatpage.title|title|smartypants|safe}}{% endblock %}
+{% block metadescription %}About the site, luxagraf.net {% endblock %}
+
+
+
+ {% block title %}{{flatpage.title|smartypants|safe}}{% endblock %}
+
+
+ {% block primary %}
+
+ {{flatpage.content|smartypants|widont|safe}}
+
+
+ {% endblock %}
+
+
+
+{% block sidebar %}
+ <div id="sidebar">
+
+ <h4 class="first">Topography</h4>
+ <div class="blok">
+ {% chunk "regions_sidebar" %}
+ </div>
+
+ <div class="blok">
+ <h4>Follow Along</h4>
+ {% chunk "follow_sidebar" %}
+ </div>
+ {% ifequal flatpage.title 'Some Background on Luxagraf'%}
+ <div class="blok">
+ <h4>Travel Sites that Don't Suck</h4>
+ {% chunk "other_sites_sidebar" %}
+ </div>
+ {% endifequal %}
+</div><!-- sidebar -->
+
+
+{% endblock %} \ No newline at end of file
diff --git a/templates/details/entry.html b/templates/details/entry.html
new file mode 100644
index 0000000..d9f7cb7
--- /dev/null
+++ b/templates/details/entry.html
@@ -0,0 +1,66 @@
+{% extends 'base.html' %}
+{% load typogrify %}
+{% block pagetitle %}Luxagraf | {{object.title|title|smartypants|safe}}{% endblock %}
+{% block metadescription %}Luxagraf: {{object.dek|striptags|safe}}{% endblock %}
+{% block date %}{{object.pub_date|date:"F j, Y"}}<span class="small byline">{% ifequal object.location.state.country.name "United States" %}{{object.location.name|smartypants|safe}}, {{object.location.state.name}}{%else%}{{object.location.name|smartypants|safe}}, {{object.location.state.country.name}}{%endifequal%}</span>{% endblock %}
+
+
+
+ {% block title %}{{object.title|smartypants|safe}}{% endblock %}
+
+
+ {% block primary %}
+
+ {{object.body_html|smartypants|widont|safe}}
+
+
+
+ <div id="extra">
+ <p><span>{{object.title|title|smartypants|safe}}</span> was posted {{ object.pub_date|timesince }} ago from <!--<a href="{{object.location.get_absolute_url}}" title="see other entries from {{object.location.name}}">-->{{object.location.name|smartypants|safe}}<!--</a>-->, which is in {%ifequal object.location.state.country.name 'United States'%}<a href="/maps/#{{object.location.state.slug}}" title="see other entries from {{object.location.state.name}}">{{object.location.state.name|smartypants|safe}}</a>,{%endifequal%} <a href="/writing/{{object.location.state.country.slug}}/1/" title="see other entries from {{object.location.state.country.name}}">{{object.location.state.country.name|smartypants|safe}}</a>. You can find nearby entries by browsing the <a href="/map/">Map</a>.
+
+
+ <p>If you enjoyed reading this, you can follow along on <a href="http://www.facebook.com/profile.php?id=730956404" title="Facebook" rel="me">Facebook</a>, <a href="http://friendfeed.com/luxagraf" title="friendfeed" rel="me">FriendFeed</a> or by subscribing to the <a href="http://feeds.feedburner.com/luxagraf/blog" title="writing RSS 2.0 feed">RSS Feed</a>. For more about luxagraf, see the <a href="/about/" title="about luxagraf">about page</a>. To get in touch please use the <a href="/contact/" title="contact me">contact form</a> or leave a comment below.</p>
+ </div>
+
+ <div id="nav">
+ <ul>
+ {% if object.get_previous_published%}
+ <li>
+ <a href="{{ object.get_previous_published.get_absolute_url }}" title=" {{object.get_previous_published.title}}">&laquo;previous</a>
+ </li>
+ {%endif%}
+ {% if object.get_next_published%}
+ <li class="next">
+ <a href="{{ object.get_next_published.get_absolute_url }}" title=" {{object.get_next_published.title}}">next&raquo;</a>
+
+ </li>
+ {%endif%}
+ </ul>
+ </div>
+ <h4 id="comment-header">comments</h4>
+ {# Load and display comments #}
+ <div id="disqus_thread"></div><script type="text/javascript" src="http://disqus.com/forums/luxagraf/embed.js"></script><noscript><a href="http://luxagraf.disqus.com/?url=ref">View the discussion thread.</a></noscript><a href="http://disqus.com" class="dsq-brlink">blog comments powered by <span class="logo-disqus">Disqus</span></a>
+
+ {% endblock %}
+
+
+
+{% block sidebar %}
+ <div id="sidebar">
+ <div id="nav">
+ <ul>
+ {% if object.get_previous_published%}
+ <li>
+ <a href="{{ object.get_previous_published.get_absolute_url }}" title=" {{object.get_previous_published.title}}">&laquo; previous</a>
+ </li>
+ {%endif%}
+ {% if object.get_next_published%}
+ <li class="next">
+ <a href="{{ object.get_next_published.get_absolute_url }}" title=" {{object.get_next_published.title}}">next &raquo;</a>
+
+ </li>
+ {%endif%}
+ </ul>
+ </div>
+ </div>
+{% endblock %} \ No newline at end of file
diff --git a/templates/details/photo.html b/templates/details/photo.html
new file mode 100644
index 0000000..22adeb9
--- /dev/null
+++ b/templates/details/photo.html
@@ -0,0 +1,85 @@
+{% extends 'base.html' %}
+{% load typogrify %}
+{% block pagetitle %}Luxagraf | {{object.title|title|smartypants|safe}}{% endblock %}
+{% block metadescription %}Luxagraf: Photo, {{object.title}}, Photographer: Scott Gilbertson, Published: {{ object.pub_date|date:"N j, Y" }} {{ object.pub_date|date:"h:i a" }}Camera:{%if object.exif_make%}{%ifnotequal object.exif_make 'Canon'%}{{ object.exif_make }}{%endifnotequal%} {{ object.exif_model }}{% else %}Canon Powershot S45{%endif%}, Aperture: {%if object.exif_aperture%}{{ object.exif_aperture }}{%else%}Not Recorded{%endif%}, Shutter Speed: {%if object.exif_shutter%}{{ object.exif_shutter }} sec{%else%}Not Recorded{%endif%}, Film Speed: {%if object.exif_iso%}{{ object.exif_iso }} ISO{%else%}Not Recorded{%endif%}.{% endblock %}
+{% block date %}{{object.pub_date|date:"F j, Y"}}<span class="small byline">{% ifequal object.location.state.country.name "United States" %}{{object.location.name|smartypants|safe}}, {{object.location.state.name}}{%else%}{{object.location.name|smartypants|safe}}, {{object.location.state.country.name}}{%endifequal%}</span>{% endblock %}
+
+
+
+ {% block title %}{{object.title|smartypants|safe}}{% endblock %}
+
+
+ {% block primary %}
+
+ <a href="http://flickr.com/photos/luxagraf/{{object.flickr_id}}/" title="View {{object.flickr_title}} on Flickr.com"><img class="flickr-image" src="{{ object.get_medium_url }}" alt="{{object.title}}" title="{{object.title}}" /></a>
+ {% ifnotequal object.description 'None' %}
+ <p>{{ object.description|smartypants|widont|safe }}</p>
+ {%endifnotequal %}
+ <p>Other Sizes: <a href="{{object.get_large_url}}" title="see large image">Large</a> and
+ <a href="http://flickr.com/photo_zoom.gne?id={{object.flickr_id}}&size=o" title="see original image">Original</a></p>
+
+
+
+ <div id="extra">
+
+
+
+ <p>If you enjoy this photo, you can follow along on <a href="http://flickr.com/photos/luxagraf/" title="Flickr" rel="me">Flickr</a>, <a href="http://www.facebook.com/profile.php?id=730956404" title="Facebook" rel="me">Facebook</a>, <a href="http://friendfeed.com/luxagraf" title="friendfeed" rel="me">FriendFeed</a> or by subscribing to the <a href="http://feeds.feedburner.com/luxagraf/blog" title="writing RSS 2.0 feed">RSS Feed</a>. For more about luxagraf, see the <a href="/about/" title="about luxagraf">about page</a>. To get in touch please use the <a href="/contact/" title="contact me">contact form</a> or leave a comment below.</p>
+ </div>
+
+ <div id="nav">
+ <ul>
+ {% if object.get_previous_published%}
+ <li>
+ <a href="{{ object.get_previous_published.get_absolute_url }}" title=" {{object.get_previous_published.title}}">&laquo;previous</a>
+ </li>
+ {%endif%}
+ {% if object.get_next_published%}
+ <li class="next">
+ <a href="{{ object.get_next_published.get_absolute_url }}" title=" {{object.get_next_published.title}}">next&raquo;</a>
+
+ </li>
+ {%endif%}
+ </ul>
+ </div>
+ <h4 id="comment-header">comments</h4>
+ <p>If you'd like to leave a comment, you may do so on <a href="http://flickr.com/photos/luxagraf/{{object.flickr_id}}/" title="leave a comment on Flickr">Flickr</a>.</p>
+
+ {% endblock %}
+
+
+
+{% block sidebar %}
+ <div id="sidebar">
+ <div id="nav">
+ <ul>
+ {% if object.get_previous_published%}
+ <li>
+ <a href="{{ object.get_previous_published.get_absolute_url }}" title=" {{object.get_previous_published.title}}">&laquo; previous</a>
+ </li>
+ {%endif%}
+ {% if object.get_next_published%}
+ <li class="next">
+ <a href="{{ object.get_next_published.get_absolute_url }}" title=" {{object.get_next_published.title}}">next &raquo;</a>
+
+ </li>
+ {%endif%}
+ </ul>
+ </div>
+
+ <div class="blok">
+ <h4>Image Data</h4>
+
+ <dl class="sidebar meta">
+ <dt>Camera:</dt>
+ <dd>{%if object.exif_make%}{%ifnotequal object.exif_make 'Canon'%}{{ object.exif_make }}{%endifnotequal%} {{ object.exif_model }}{% else %}Canon Powershot S45{%endif%}</dd>
+ <dt>Aperture:</dt>
+ <dd>{%if object.exif_aperture%}{{ object.exif_aperture }}{%else%}Not Recorded{%endif%}</dd>
+ <dt>Shutter Speed:</dt>
+ <dd>{%if object.exif_shutter%}{{ object.exif_shutter }} sec{%else%}Not Recorded{%endif%}</dd>
+ <dt>Film Speed:</dt>
+ <dd>{%if object.exif_iso%}{{ object.exif_iso }} ISO{%else%}Not Recorded{%endif%}</dd>
+ </dl>
+ </div>
+ </div>
+{% endblock %} \ No newline at end of file
diff --git a/templates/gis/admin/google.html b/templates/gis/admin/google.html
new file mode 100644
index 0000000..460d28d
--- /dev/null
+++ b/templates/gis/admin/google.html
@@ -0,0 +1,5 @@
+{% extends "gis/admin/openlayers.html" %}
+{% block extrastyle %}{{ block.super }}
+<style type="text/css">v\:* {behavior:url(#default#VML);}</style>
+{% endblock %}
+{% block openlayers %}{% include "gis/admin/google.js" %}{% endblock %} \ No newline at end of file
diff --git a/templates/gis/admin/google.js b/templates/gis/admin/google.js
new file mode 100644
index 0000000..a7d1467
--- /dev/null
+++ b/templates/gis/admin/google.js
@@ -0,0 +1,2 @@
+{% extends "gis/admin/openlayers.js" %}
+{% block base_layer %}new OpenLayers.Layer.Google("Google Base Layer", {'type': G_NORMAL_MAP, 'sphericalMercator' : true});{% endblock %} \ No newline at end of file