Skip to content
Snippets Groups Projects
Commit a74f7950 authored by Benjamin Bertrand's avatar Benjamin Bertrand
Browse files

Add ICS Inventory to all pages title

parent 8c1b48da
No related branches found
No related tags found
No related merge requests found
......@@ -8,12 +8,12 @@
<link href="{{ url_for('static', filename='css/inventory.css') }}" rel="stylesheet">
{% endblock %}
{% block title %}Inventory{% endblock %}
{% block title %}ICS Inventory{% endblock %}
{% block navbar %}
<!-- Fixed navbar -->
<div class="navbar fixed-top navbar-expand-lg navbar-light bg-light" role="navigation">
<a class="navbar-brand" href="{{ url_for('main.index') }}">Inventory</a>
<a class="navbar-brand" href="{{ url_for('main.index') }}">ICS Inventory</a>
<button class="navbar-toggler" type="button" data-toggle="collapse"
data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent"
aria-expanded="false" aria-label="Toggle navigation">
......
{%- extends "base.html" %}
{% import "bootstrap/wtf.html" as wtf %}
{% block title %}Create QR Codes{% endblock %}
{% block title %}Create QR Codes - ICS Inventory{% endblock %}
{% block main %}
<h2>Create QR Codes</h2>
......
{%- extends "base.html" %}
{% block title %}QR Codes{% endblock %}
{% block title %}QR Codes - ICS Inventory{% endblock %}
{% block main %}
{% for name, images in codes.items() %}
......
{% import "bootstrap/wtf.html" as wtf %}
{% extends "base.html" %}
{% block title %}Login{% endblock %}
{% block title %}Login - ICS Inventory{% endblock %}
{% block main %}
<div class="col-sm-offset-2 col-sm-3">
......
{% import "bootstrap/wtf.html" as wtf %}
{% extends "base.html" %}
{% block title %}Profile{% endblock %}
{% block title %}Profile - ICS Inventory{% endblock %}
{% block main %}
<div class="page-header">
......
{%- extends "base.html" %}
{% from "_helpers.html" import link_to_item, link_to_children %}
{% block title %}View Item{% endblock %}
{% block title %}View Item - ICS Inventory{% endblock %}
{% block main %}
<h2>Item {{ item.ics_id }}</h2>
......
......@@ -42,14 +42,14 @@ def logged_client(request, app):
def test_login_logout(client):
response = login(client, 'unknown', 'invalid')
assert b'<title>Login</title>' in response.data
assert b'<title>Login - ICS Inventory</title>' in response.data
response = login(client, 'user_rw', 'invalid')
assert b'<title>Login</title>' in response.data
assert b'<title>Login - ICS Inventory</title>' in response.data
response = login(client, 'user_rw', 'userrw')
assert b'Welcome to the ICS Inventory!' in response.data
assert b'User RW' in response.data
response = logout(client)
assert b'<title>Login</title>' in response.data
assert b'<title>Login - ICS Inventory</title>' in response.data
def test_index(logged_client):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment