From 5da1a1e66a38c0d7185a90424d0bb9f3c3c7875d Mon Sep 17 00:00:00 2001 From: luxagraf Date: Sat, 16 Feb 2019 10:09:32 -0600 Subject: changed templates to link to country archives --- design/templates/jrnl/entry_detail.html | 2 +- design/templates/jrnl/entry_list.html | 9 ++++----- 2 files changed, 5 insertions(+), 6 deletions(-) (limited to 'design/templates/jrnl') diff --git a/design/templates/jrnl/entry_detail.html b/design/templates/jrnl/entry_detail.html index e2c6ae3..3e75017 100644 --- a/design/templates/jrnl/entry_detail.html +++ b/design/templates/jrnl/entry_detail.html @@ -40,7 +40,7 @@ class="detail {%if t == 1 or t == 3 or t == 5 %}double{%else%}single{%endif%}{%i

{%if object.template_name == 1 or object.template_name == 3 %}{{object.title|smartypants|safe}}{%else%}{{object.title|smartypants|safe}}{%endif%}

diff --git a/design/templates/jrnl/entry_list.html b/design/templates/jrnl/entry_list.html index d58bd05..0295f8f 100644 --- a/design/templates/jrnl/entry_list.html +++ b/design/templates/jrnl/entry_list.html @@ -1,7 +1,6 @@ {% extends 'base.html' %} {% load typogrify_tags %} {% load pagination_tags %} - {% block pagetitle %}Luxagraf | {% if region %}Travel Writing from {{region.name|title|smartypants|safe}}{%else%}Travel Writing from Around the World {%endif%}{% if page != "1" %} -- Page {{page}}{%endif%}{% endblock %} {% block metadescription %}{% if region %}Travel writing, essays and dispatches from {{region.name|title|smartypants|safe}}{%else%}Travel writing, essays and dispatches from around the world{%endif%} Page {{page}}{% endblock %} {%block bodyid%}id="writing" class="archive"{%endblock%} @@ -9,9 +8,9 @@ {% block primary %}

{% if region %}Journal entries from {%if region.name == 'United States'%}the United States{%else%}{{region.name|title|smartypants|safe}}{%endif%}{%else%}Journal {%endif%}

{% autopaginate object_list 24 %} {% for object in object_list %} @@ -27,7 +26,7 @@

- {% if object.country.name == "United States" %}{{object.location.name|smartypants|safe}}, {{object.state.name}}, U.S.{%else%}{{object.location.name|smartypants|safe}}, {{object.country.name}}{%endif%} + {% if object.country_name == "United States" %}{{object.location_name|smartypants|safe}}, {{object.state_name}}, U.S.{%else%}{{object.location_name|smartypants|safe}}, {{object.country_name}}{%endif%} {{object.dek|safe}} -- cgit v1.2.3-70-g09d2