Changes for page title

This commit is contained in:
Patrick Jentsch 2020-02-25 09:59:49 +01:00
parent b8abc8856c
commit f58a6f5778
5 changed files with 19 additions and 10 deletions

View File

@ -5,11 +5,12 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
{% if title %}
<title>nopaque {{ title }}</title>
{% else %}
<title>nopaque</title>
{% endif %}
<title>
nopaque
{% if title and not url_for(request.endpoint) == url_for('main.index') %}
{{ title }}
{% endif %}
</title>
<link rel="icon" href="{{ url_for('static', filename='images/nopaque_logo.png') }}">
<link rel="stylesheet" href="{{ url_for('static', filename='fonts/Material_design_icons/material-icons.css') }}">
<link rel="stylesheet" href="{{ url_for('static', filename='css/Materialize/materialize.min.css') }}">
@ -105,7 +106,15 @@
{% endif %}
<div class="row">
<div class="col s12">
<h2>{% if title %}{{ title }}{% else %}Unnamed page{% endif %}</h2>
<h2>
{% if headline %}
{{ headline }}
{% elif title %}
{{ title }}
{% else %}
Unnamed page
{% endif %}
</h2>
</div>
{{ insert_page_content() }}
</div>

View File

@ -1,6 +1,6 @@
{% extends "nopaque.html.j2" %}
{% set title = '<i class="material-icons left service" data-service="corpus_analysis" style="font-size: inherit;"></i>Corpus analysis' %}
{% set headline = '<i class="material-icons left service" data-service="corpus_analysis" style="font-size: inherit;"></i>Corpus analysis' %}
{% block page_content %}
<div class="col s12 m9 l10">

View File

@ -1,6 +1,6 @@
{% extends "nopaque.html.j2" %}
{% set title = '<i class="material-icons left service" data-service="nlp" style="font-size: inherit;"></i>Natural Language Processing' %}
{% set headline = '<i class="material-icons left service" data-service="nlp" style="font-size: inherit;"></i>Natural Language Processing' %}
{% block page_content %}
<div class="col s12 m9 l10">

View File

@ -1,6 +1,6 @@
{% extends "nopaque.html.j2" %}
{% set title = '<i class="material-icons left service" data-service="ocr" style="font-size: inherit;"></i>Optical Character Recognition' %}
{% set headline = '<i class="material-icons left service" data-service="ocr" style="font-size: inherit;"></i>Optical Character Recognition' %}
{% block page_content %}
<div class="col s12 m9 l10">

View File

@ -1,6 +1,6 @@
{% extends "nopaque.html.j2" %}
{% set title = '<i class="material-icons left service" data-service="setup_files" style="font-size: inherit;"></i>File setup' %}
{% set headline = '<i class="material-icons left service" data-service="setup_files" style="font-size: inherit;"></i>File setup' %}
{% block page_content %}
<div class="col s12 m9 l10">