From b9b17f39d9754eedf02a0795b11ac5f91389367e Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Thu, 9 May 2019 18:11:13 +1000 Subject: [PATCH] Override page title for Stock app --- InvenTree/stock/templates/stock/stock_app_base.html | 10 ++++++++++ InvenTree/templates/base.html | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/InvenTree/stock/templates/stock/stock_app_base.html b/InvenTree/stock/templates/stock/stock_app_base.html index 6071499863..e651efb813 100644 --- a/InvenTree/stock/templates/stock/stock_app_base.html +++ b/InvenTree/stock/templates/stock/stock_app_base.html @@ -1,6 +1,16 @@ {% extends "base.html" %} {% load static %} +{% block page_title %} +{% if item %} +InvenTree Stock Item - {{ item }} +{% elif location %} +InvenTree Stock Location - {{ location }} +{% else %} +InvenTree Stock +{% endif %} +{% endblock %} + {% block sidenav %}
{% endblock %} diff --git a/InvenTree/templates/base.html b/InvenTree/templates/base.html index 90925cfe7e..953dbb1272 100644 --- a/InvenTree/templates/base.html +++ b/InvenTree/templates/base.html @@ -40,7 +40,7 @@ {% endblock %} -{% block title %} +{% block page_title %} InvenTree {% endblock %}