From 512a6d40b437900994351d911c1f84f0c3801fab Mon Sep 17 00:00:00 2001 From: David Kerkeslager Date: Sat, 27 Feb 2021 20:34:36 -0500 Subject: [PATCH] Refactor templates a bit --- setup.py | 2 +- tickle/templates/tickle/area_breadcrumb.html | 12 +++++------- tickle/templates/tickle/climb_breadcrumb_trail.html | 7 +++++++ tickle/templates/tickle/route_breadcrumb_trail.html | 10 ++++++++++ 4 files changed, 23 insertions(+), 8 deletions(-) create mode 100644 tickle/templates/tickle/climb_breadcrumb_trail.html create mode 100644 tickle/templates/tickle/route_breadcrumb_trail.html diff --git a/setup.py b/setup.py index 997e977..c09cadd 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,7 @@ import pathlib from setuptools import setup, find_packages HERE = pathlib.Path(__file__).parent -VERSION = '0.0.dev13' +VERSION = '0.0.dev14' PACKAGE_NAME = 'django_predrill_tickle' AUTHOR = 'David Kerkeslager' AUTHOR_EMAIL = 'david@kerkeslager.com' diff --git a/tickle/templates/tickle/area_breadcrumb.html b/tickle/templates/tickle/area_breadcrumb.html index 6ef0850..55681a4 100644 --- a/tickle/templates/tickle/area_breadcrumb.html +++ b/tickle/templates/tickle/area_breadcrumb.html @@ -1,14 +1,12 @@ {% if area %} {% include 'tickle/area_breadcrumb.html' with area=area.parent is_parent=True %} - {% if is_parent %} - + + {% if is_parent %} {{ area.name }} - - {% else %} - + {% else %} {{ area.name }} - - {% endif %} + {% endif %} + {% else %} All diff --git a/tickle/templates/tickle/climb_breadcrumb_trail.html b/tickle/templates/tickle/climb_breadcrumb_trail.html new file mode 100644 index 0000000..f08d6c6 --- /dev/null +++ b/tickle/templates/tickle/climb_breadcrumb_trail.html @@ -0,0 +1,7 @@ + diff --git a/tickle/templates/tickle/route_breadcrumb_trail.html b/tickle/templates/tickle/route_breadcrumb_trail.html new file mode 100644 index 0000000..cf892ed --- /dev/null +++ b/tickle/templates/tickle/route_breadcrumb_trail.html @@ -0,0 +1,10 @@ + -- 2.20.1