From 786f2a3675a7373ab0a411e31d4083478b52f234 Mon Sep 17 00:00:00 2001 From: radex Date: Mon, 11 May 2020 20:33:06 +0200 Subject: [PATCH] title nice --- storage/views.py | 1 + templates/base.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/storage/views.py b/storage/views.py index ccc3172..a3f1e2e 100644 --- a/storage/views.py +++ b/storage/views.py @@ -84,6 +84,7 @@ def item_display(request, pk): has_one_label = len(labels) == 1 return render(request, 'item.html', { + 'title': item.name, 'item': item, 'categories': item.categories.all(), 'props': sorted(item.props.items()), diff --git a/templates/base.html b/templates/base.html index 766f9d9..8e30783 100644 --- a/templates/base.html +++ b/templates/base.html @@ -3,7 +3,7 @@ - Hackerspace Storage System + {% if title %}{{ title }} - {% endif %}Hackerspace Storage