mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2025-06-27 08:20:34 +00:00
create small subtemplates for each block und apply new breadcrumbs logic
This commit is contained in:
@ -1,15 +1,14 @@
|
||||
<ul class="tabs tabs-transparent">
|
||||
<li class="tab"><a href="{{ url_for('.index') }}" target="_self"><i class="material-icons">home</i></a></li>
|
||||
{% if not (request.path == url_for('.index')) %}
|
||||
<li class="tab disabled"><i class="material-icons">navigate_next</i></li>
|
||||
{% endif %}
|
||||
{% if request.path == url_for('.about_and_faq') %}
|
||||
<li class="tab"><a class="active" href="{{ url_for('.about_and_faq') }}" target="_self">About and faq</a></li>
|
||||
{% elif request.path == url_for('.dashboard') %}
|
||||
<li class="tab"><a class="active" href="{{ url_for('.dashboard') }}" target="_self">Dashboard</a></li>
|
||||
{% elif request.path == url_for('.news') %}
|
||||
<li class="tab"><a class="active" href="{{ url_for('.news') }}" target="_self">News</a></li>
|
||||
{% elif request.path == url_for('.terms_of_use') %}
|
||||
<li class="tab"><a class="active" href="{{ url_for('.terms_of_use') }}" target="_self">Terms of use</a></li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
{% set breadcrumbs %}
|
||||
{% if not (request.path == url_for('.index')) %}
|
||||
<li class="tab disabled"><i class="material-icons">navigate_next</i></li>
|
||||
{% endif %}
|
||||
{% if request.path == url_for('.about_and_faq') %}
|
||||
<li class="tab"><a class="active" href="{{ url_for('.about_and_faq') }}" target="_self">About and faq</a></li>
|
||||
{% elif request.path == url_for('.dashboard') %}
|
||||
<li class="tab"><a class="active" href="{{ url_for('.dashboard') }}" target="_self">Dashboard</a></li>
|
||||
{% elif request.path == url_for('.news') %}
|
||||
<li class="tab"><a class="active" href="{{ url_for('.news') }}" target="_self">News</a></li>
|
||||
{% elif request.path == url_for('.terms_of_use') %}
|
||||
<li class="tab"><a class="active" href="{{ url_for('.terms_of_use') }}" target="_self">Terms of use</a></li>
|
||||
{% endif %}
|
||||
{% endset %}
|
||||
|
@ -1,8 +1,5 @@
|
||||
{% extends "nopaque.html.j2" %}
|
||||
|
||||
{% block nav_content %}
|
||||
{% include 'main/_breadcrumbs.html.j2' %}
|
||||
{% endblock nav_content %}
|
||||
{% extends "base.html.j2" %}
|
||||
{% from "main/_breadcrumbs.html.j2" import breadcrumbs with context %}
|
||||
|
||||
{% block page_content %}
|
||||
<div class="container">
|
||||
|
@ -1,8 +1,5 @@
|
||||
{% extends "nopaque.html.j2" %}
|
||||
|
||||
{% block nav_content %}
|
||||
{% include 'main/_breadcrumbs.html.j2' %}
|
||||
{% endblock nav_content %}
|
||||
{% extends "base.html.j2" %}
|
||||
{% from "main/_breadcrumbs.html.j2" import breadcrumbs with context %}
|
||||
|
||||
{% block page_content %}
|
||||
<div class="container">
|
||||
|
@ -1,10 +1,7 @@
|
||||
{% extends "nopaque.html.j2" %}
|
||||
{% extends "base.html.j2" %}
|
||||
{% from "main/_breadcrumbs.html.j2" import breadcrumbs with context %}
|
||||
{% import "materialize/wtf.html.j2" as wtf %}
|
||||
|
||||
{% block nav_content %}
|
||||
{% include 'main/_breadcrumbs.html.j2' %}
|
||||
{% endblock nav_content %}
|
||||
|
||||
{% block page_content %}
|
||||
<div class="parallax-container" id="title">
|
||||
<div class="parallax">
|
||||
|
@ -1,8 +1,5 @@
|
||||
{% extends "nopaque.html.j2" %}
|
||||
|
||||
{% block nav_content %}
|
||||
{% include 'main/_breadcrumbs.html.j2' %}
|
||||
{% endblock nav_content %}
|
||||
{% extends "base.html.j2" %}
|
||||
{% from "main/_breadcrumbs.html.j2" import breadcrumbs with context %}
|
||||
|
||||
{% block page_content %}
|
||||
<div class="container">
|
||||
|
@ -1,8 +1,5 @@
|
||||
{% extends "nopaque.html.j2" %}
|
||||
|
||||
{% block nav_content %}
|
||||
{% include 'main/_breadcrumbs.html.j2' %}
|
||||
{% endblock nav_content %}
|
||||
{% extends "base.html.j2" %}
|
||||
{% from "main/_breadcrumbs.html.j2" import breadcrumbs with context %}
|
||||
|
||||
{% block page_content %}
|
||||
<div class="container">
|
||||
|
@ -1,8 +1,5 @@
|
||||
{% extends "nopaque.html.j2" %}
|
||||
|
||||
{% block nav_content %}
|
||||
{% include 'main/_breadcrumbs.html.j2' %}
|
||||
{% endblock nav_content %}
|
||||
{% extends "base.html.j2" %}
|
||||
{% from "main/_breadcrumbs.html.j2" import breadcrumbs with context %}
|
||||
|
||||
{% block page_content %}
|
||||
<div class="container">
|
||||
|
Reference in New Issue
Block a user