Merge pull request #281 from SchrodingersGat/page-title

Page title
This commit is contained in:
Oliver 2019-05-09 18:33:03 +10:00 committed by GitHub
commit 8bf09300bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 55 additions and 1 deletions

View File

@ -2,6 +2,10 @@
{% load static %}
{% load inventree_extras %}
{% block page_title %}
InvenTree | Allocate Parts
{% endblock %}
{% block content %}
<h3>Allocate Parts for Build</h3>

View File

@ -1,6 +1,10 @@
{% extends "base.html" %}
{% load static %}
{% block page_title %}
InvenTree | Build - {{ build }}
{% endblock %}
{% block content %}
<div class='row'>

View File

@ -1,5 +1,10 @@
{% extends "base.html" %}
{% load static %}
{% block page_title %}
InvenTree | Build List
{% endblock %}
{% block content %}

View File

@ -2,6 +2,10 @@
{% load static %}
{% block page_title %}
InvenTree | Company - {{ company.name }}
{% endblock %}
{% block content %}
<div class="row">

View File

@ -2,6 +2,10 @@
{% load static %}
{% block page_title %}
InvenTree | Company List
{% endblock %}
{% block content %}
<div class='row'>

View File

@ -1,5 +1,10 @@
{% extends "base.html" %}
{% load static %}
{% block page_title %}
InvenTree | {{ company.name }} - Parts
{% endblock %}
{% block content %}
<div class='row'>

View File

@ -2,6 +2,16 @@
{% load static %}
{% block page_title %}
{% if part %}
InvenTree | Part - {{ part.name }}
{% elif category %}
InvenTree | Part Category - {{ category }}
{% else %}
InvenTree | Part List
{% endif %}
{% endblock %}
{% block sidenav %}
<div id='part-tree'></div>
{% endblock %}

View File

@ -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 %}
<div id='stock-tree'></div>
{% endblock %}

View File

@ -1,5 +1,9 @@
{% extends "base.html" %}
{% block page_title %}
InvenTree | Index
{% endblock %}
{% block content %}
<h3>InvenTree</h3>
<hr>

View File

@ -1,5 +1,9 @@
{% extends "base.html" %}
{% block page_title %}
InvenTree | Search Results
{% endblock %}
{% block content %}
<h3>Search Results</h3>

View File

@ -40,7 +40,7 @@
{% endblock %}
<title>
{% block title %}
{% block page_title %}
InvenTree
{% endblock %}
</title>