mirror of
				https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
				synced 2025-11-03 20:02:47 +00:00 
			
		
		
		
	Changes for page title
This commit is contained in:
		@@ -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>
 | 
			
		||||
 
 | 
			
		||||
@@ -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">
 | 
			
		||||
 
 | 
			
		||||
@@ -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">
 | 
			
		||||
 
 | 
			
		||||
@@ -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">
 | 
			
		||||
 
 | 
			
		||||
@@ -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">
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user