summaryrefslogtreecommitdiff
path: root/templates/bin
diff options
context:
space:
mode:
authorlxf <sng@luxagraf.net>2021-11-06 09:42:47 -0400
committerlxf <sng@luxagraf.net>2021-11-06 09:42:47 -0400
commitd9f51299809bfb6b3ac589b7c42016d0ef240299 (patch)
treeaa5f945e82fdbf1b66aca82fe5122f6ff5a12eb9 /templates/bin
parentdde9914dbbc6cda18ba59024065727c8dc6bcdf4 (diff)
moved templates to top level directory
Diffstat (limited to 'templates/bin')
-rw-r--r--templates/bin/country_sidebar.html6
-rw-r--r--templates/bin/map_sidebar.html23
-rw-r--r--templates/bin/recent_entries.html1
-rw-r--r--templates/bin/regions_sidebar.html6
4 files changed, 36 insertions, 0 deletions
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 @@
+<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> \ No newline at end of file
diff --git a/templates/bin/map_sidebar.html b/templates/bin/map_sidebar.html
new file mode 100644
index 0000000..e61852f
--- /dev/null
+++ b/templates/bin/map_sidebar.html
@@ -0,0 +1,23 @@
+{% load truncateletters %}{% load slugify_under %}<div class="map-legend">
+ <h4>Trips</h4>
+ <ul>
+ {% for route in route_list %}
+ <li><a onclick="showRoute('{{route.template_var_name}}', {{route.zoom}}, '{{route.geometry.centroid.y}}','{{route.geometry.centroid.x}}');" href="#" title="show {{route.name}} on map">{{route.name}}</a></li>
+ {% endfor %}
+ </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="#" title="view all countries">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>
diff --git a/templates/bin/recent_entries.html b/templates/bin/recent_entries.html
new file mode 100644
index 0000000..6d08971
--- /dev/null
+++ b/templates/bin/recent_entries.html
@@ -0,0 +1 @@
+{% load typogrify_tags %}
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 @@
+<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> \ No newline at end of file