From: David Kerkeslager Date: Sun, 28 Feb 2021 01:34:36 +0000 (-0500) Subject: Refactor templates a bit X-Git-Url: https://code.kerkeslager.com/?p=tickle;a=commitdiff_plain;h=512a6d40b437900994351d911c1f84f0c3801fab Refactor templates a bit --- 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 @@ +