Skip to content
Snippets Groups Projects

Titulky stránek a drobečková navigace

Merged Jiří Setnička requested to merge jirka/breadcrumbs into devel
1 file
+ 4
1
Compare changes
  • Side-by-side
  • Inline
  • 27a1d521
    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.
+ 4
1
<!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 %}
Loading