diff options
author | lxf <sng@luxagraf.net> | 2021-11-06 09:42:47 -0400 |
---|---|---|
committer | lxf <sng@luxagraf.net> | 2021-11-06 09:42:47 -0400 |
commit | d9f51299809bfb6b3ac589b7c42016d0ef240299 (patch) | |
tree | aa5f945e82fdbf1b66aca82fe5122f6ff5a12eb9 /templates/bin | |
parent | dde9914dbbc6cda18ba59024065727c8dc6bcdf4 (diff) |
moved templates to top level directory
Diffstat (limited to 'templates/bin')
-rw-r--r-- | templates/bin/country_sidebar.html | 6 | ||||
-rw-r--r-- | templates/bin/map_sidebar.html | 23 | ||||
-rw-r--r-- | templates/bin/recent_entries.html | 1 | ||||
-rw-r--r-- | templates/bin/regions_sidebar.html | 6 |
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 |