Skip to content
Snippets Groups Projects
Commit 27a1d521 authored by Jiří Setnička's avatar Jiří Setnička
Browse files

Template: Nové bloky title a breadcrumbs

Blok title se použije pro nadpis a zároveň se umístí to title celé stránky. Nadpis je nad
místem, kam se vypisují flash zprávičky, takže už nebudou vyskakovat nelogicky nad nadpisem.

Blok breadcrumbs tvoří drobečkovou navigaci, pokud je definovaný. Pokud není, nezobrazí se.
parent b2c4a8e8
No related branches found
No related tags found
1 merge request!23Titulky stránek a drobečková navigace
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<title>Odevzdávací systém MO</title> <title>Odevzdávací systém MO: {% block title %}{% endblock %}</title>
<link rel=stylesheet href="{{ url_for('static', filename='bootstrap.min.css') }}?v=2" type='text/css' media=all> <link rel=stylesheet href="{{ url_for('static', filename='bootstrap.min.css') }}?v=2" type='text/css' media=all>
<link rel=stylesheet href="{{ url_for('static', filename='mo.css') }}?v=7" type='text/css' media=all> <link rel=stylesheet href="{{ url_for('static', filename='mo.css') }}?v=7" type='text/css' media=all>
{% block head %}{% endblock %} {% block head %}{% endblock %}
...@@ -26,6 +26,9 @@ ...@@ -26,6 +26,9 @@
</nav> </nav>
</div> </div>
<main> <main>
{% if self.breadcrumbs() %}<ol class="breadcrumb">{% block breadcrumbs %}{% endblock %}</ol>{% endif %}
<h2>{{ self.title() }}</h2>
{% with messages = get_flashed_messages(with_categories=true) %} {% with messages = get_flashed_messages(with_categories=true) %}
{% if messages %} {% if messages %}
{% for category, message in messages %} {% for category, message in messages %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment