Fix template names main
authorDavid Kerkeslager <kerkeslager@gmail.com>
Sun, 28 Feb 2021 01:46:04 +0000 (20:46 -0500)
committerDavid Kerkeslager <kerkeslager@gmail.com>
Sun, 28 Feb 2021 01:46:04 +0000 (20:46 -0500)
setup.py
tickle/templates/tickle/boulder_breadcrumb_trail.html [new file with mode: 0644]
tickle/templates/tickle/climb_breadcrumb_trail.html [deleted file]

index c09cadd..3eaa104 100644 (file)
--- 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.dev14'
+VERSION = '0.0.dev15'
 PACKAGE_NAME = 'django_predrill_tickle'
 AUTHOR = 'David Kerkeslager'
 AUTHOR_EMAIL = 'david@kerkeslager.com'
diff --git a/tickle/templates/tickle/boulder_breadcrumb_trail.html b/tickle/templates/tickle/boulder_breadcrumb_trail.html
new file mode 100644 (file)
index 0000000..87efd62
--- /dev/null
@@ -0,0 +1,10 @@
+<nav id='tickle-breadcrumb-trail'>
+  {% include 'tickle/area_breadcrumb.html' with area=boulder.area is_parent=True %}
+  <span class='tickle-breadcrumb-item'>
+    {% if is_parent %}
+      <a href='{% url "tickle:boulder-detail" pk=boulder.pk %}'>{{ boulder.name }}</a>
+    {% else %}
+      {{ boulder.name }}
+    {% endif %}
+  </span>
+</nav>
diff --git a/tickle/templates/tickle/climb_breadcrumb_trail.html b/tickle/templates/tickle/climb_breadcrumb_trail.html
deleted file mode 100644 (file)
index f08d6c6..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-<nav class='tickle-breadcrumb-trail'>
-  {% include 'tickle/area_breadcrumb.html' area=climb.area %}
-
-  {% if is_parent %}
-  {% else %}
-  {% endif %}
-</nav>