From ca6bd0a999c61118a0cef5c06a448db9c3723dc5 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Thu, 9 May 2019 18:17:28 +1000 Subject: [PATCH] Add page title for company page --- InvenTree/company/templates/company/company_base.html | 4 ++++ InvenTree/company/templates/company/index.html | 4 ++++ InvenTree/company/templates/company/partdetail.html | 5 +++++ InvenTree/part/templates/part/part_app_base.html | 6 +++--- InvenTree/stock/templates/stock/stock_app_base.html | 6 +++--- 5 files changed, 19 insertions(+), 6 deletions(-) diff --git a/InvenTree/company/templates/company/company_base.html b/InvenTree/company/templates/company/company_base.html index 9944185e9e..56983784ee 100644 --- a/InvenTree/company/templates/company/company_base.html +++ b/InvenTree/company/templates/company/company_base.html @@ -2,6 +2,10 @@ {% load static %} +{% block page_title %} +InvenTree | Company - {{ company.name }} +{% endblock %} + {% block content %}
diff --git a/InvenTree/company/templates/company/index.html b/InvenTree/company/templates/company/index.html index 6b2dad3c81..3f0dc7c489 100644 --- a/InvenTree/company/templates/company/index.html +++ b/InvenTree/company/templates/company/index.html @@ -2,6 +2,10 @@ {% load static %} +{% block page_title %} +InvenTree | Company List +{% endblock %} + {% block content %}
diff --git a/InvenTree/company/templates/company/partdetail.html b/InvenTree/company/templates/company/partdetail.html index a67e0fbf2d..736b73256d 100644 --- a/InvenTree/company/templates/company/partdetail.html +++ b/InvenTree/company/templates/company/partdetail.html @@ -1,5 +1,10 @@ {% extends "base.html" %} {% load static %} + +{% block page_title %} +InvenTree | {{ company.name }} - Parts +{% endblock %} + {% block content %}
diff --git a/InvenTree/part/templates/part/part_app_base.html b/InvenTree/part/templates/part/part_app_base.html index 7fed480d59..43b12377f6 100644 --- a/InvenTree/part/templates/part/part_app_base.html +++ b/InvenTree/part/templates/part/part_app_base.html @@ -4,11 +4,11 @@ {% block page_title %} {% if part %} -InvenTree Part - {{ part.name }} +InvenTree | Part - {{ part.name }} {% elif category %} -InvenTree Part Category - {{ category }} +InvenTree | Part Category - {{ category }} {% else %} -InvenTree Part List +InvenTree | Part List {% endif %} {% endblock %} diff --git a/InvenTree/stock/templates/stock/stock_app_base.html b/InvenTree/stock/templates/stock/stock_app_base.html index e651efb813..26393626bb 100644 --- a/InvenTree/stock/templates/stock/stock_app_base.html +++ b/InvenTree/stock/templates/stock/stock_app_base.html @@ -3,11 +3,11 @@ {% block page_title %} {% if item %} -InvenTree Stock Item - {{ item }} +InvenTree | Stock Item - {{ item }} {% elif location %} -InvenTree Stock Location - {{ location }} +InvenTree | Stock Location - {{ location }} {% else %} -InvenTree Stock +InvenTree | Stock {% endif %} {% endblock %}