From 86bd79d7ec35c5c0d68e4711eb5dca7b88755bfe Mon Sep 17 00:00:00 2001 From: davewiththenicehat <54369722+davewiththenicehat@users.noreply.github.com> Date: Fri, 4 Jun 2021 17:35:50 -0400 Subject: [PATCH] DetailView sub title bread crumbs addded DetailView sub title bread crumbs addded for command and file help --- evennia/help/models.py | 6 ++++ .../web/templates/website/help_detail.html | 30 +++++++++---------- 2 files changed, 21 insertions(+), 15 deletions(-) diff --git a/evennia/help/models.py b/evennia/help/models.py index f7285aed75..6577dd7c8f 100644 --- a/evennia/help/models.py +++ b/evennia/help/models.py @@ -57,6 +57,9 @@ class HelpEntry(SharedMemoryModel): db_key = models.CharField( "help key", max_length=255, unique=True, help_text="key to search for" ) + @lazy_property + def key(self): + return self.db_key # help category db_help_category = models.CharField( "help category", @@ -64,6 +67,9 @@ class HelpEntry(SharedMemoryModel): default="General", help_text="organizes help entries in lists", ) + @lazy_property + def help_category(self): + return self.db_help_category # the actual help entry text, in any formatting. db_entrytext = models.TextField( "help entry", blank=True, help_text="the main body of help text" diff --git a/evennia/web/templates/website/help_detail.html b/evennia/web/templates/website/help_detail.html index dd2a7d677f..b91162f87d 100644 --- a/evennia/web/templates/website/help_detail.html +++ b/evennia/web/templates/website/help_detail.html @@ -9,16 +9,16 @@ {% load addclass %}
{{ entry_text }}
- + {% if topic_previous or topic_next %}