mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2025-07-16 09:20:42 +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('main.index') }}" target="_self"><i class="material-icons">home</i></a></li>
|
||||
<li class="tab disabled"><i class="material-icons">navigate_next</i></li>
|
||||
{% if request.path == url_for('.login') %}
|
||||
<li class="tab"><a class="active" href="{{ url_for('.login') }}" target="_self">{{ title }}</a></li>
|
||||
{% elif request.path == url_for('.register') %}
|
||||
<li class="tab"><a class="active" href="{{ url_for('.register') }}" target="_self">{{ title }}</a></li>
|
||||
{% elif request.path == url_for('.reset_password', token=token) %}
|
||||
<li class="tab"><a class="active" href="{{ url_for('.reset_password', token=token) }}" target="_self">{{ title }}</a></li>
|
||||
{% elif request.path == url_for('.reset_password_request') %}
|
||||
<li class="tab"><a class="active" href="{{ url_for('.reset_password_request') }}" target="_self">{{ title }}</a></li>
|
||||
{% elif request.path == url_for('.unconfirmed') %}
|
||||
<li class="tab"><a class="active" href="{{ url_for('.unconfirmed') }}" target="_self">{{ title }}</a></li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
{% set breadcrumbs %}
|
||||
<li class="tab disabled"><i class="material-icons">navigate_next</i></li>
|
||||
{% if request.path == url_for('.login') %}
|
||||
<li class="tab"><a class="active" href="{{ url_for('.login') }}" target="_self">{{ title }}</a></li>
|
||||
{% elif request.path == url_for('.register') %}
|
||||
<li class="tab"><a class="active" href="{{ url_for('.register') }}" target="_self">{{ title }}</a></li>
|
||||
{% elif request.path == url_for('.reset_password', token=token) %}
|
||||
<li class="tab"><a class="active" href="{{ url_for('.reset_password', token=token) }}" target="_self">{{ title }}</a></li>
|
||||
{% elif request.path == url_for('.reset_password_request') %}
|
||||
<li class="tab"><a class="active" href="{{ url_for('.reset_password_request') }}" target="_self">{{ title }}</a></li>
|
||||
{% elif request.path == url_for('.unconfirmed') %}
|
||||
<li class="tab"><a class="active" href="{{ url_for('.unconfirmed') }}" target="_self">{{ title }}</a></li>
|
||||
{% endif %}
|
||||
{% endset %}
|
||||
|
@@ -1,10 +1,7 @@
|
||||
{% extends "nopaque.html.j2" %}
|
||||
{% extends "base.html.j2" %}
|
||||
{% from "auth/_breadcrumbs.html.j2" import breadcrumbs with context %}
|
||||
{% import "materialize/wtf.html.j2" as wtf %}
|
||||
|
||||
{% block nav_content %}
|
||||
{% include 'auth/_breadcrumbs.html.j2' %}
|
||||
{% endblock nav_content %}
|
||||
|
||||
{% block styles %}
|
||||
{{ super() }}
|
||||
<style>
|
||||
|
@@ -1,10 +1,7 @@
|
||||
{% extends "nopaque.html.j2" %}
|
||||
{% extends "base.html.j2" %}
|
||||
{% from "auth/_breadcrumbs.html.j2" import breadcrumbs with context %}
|
||||
{% import "materialize/wtf.html.j2" as wtf %}
|
||||
|
||||
{% block nav_content %}
|
||||
{% include 'auth/_breadcrumbs.html.j2' %}
|
||||
{% endblock nav_content %}
|
||||
|
||||
{% block styles %}
|
||||
{{ super() }}
|
||||
<style>
|
||||
|
@@ -1,10 +1,7 @@
|
||||
{% extends "nopaque.html.j2" %}
|
||||
{% extends "base.html.j2" %}
|
||||
{% from "auth/_breadcrumbs.html.j2" import breadcrumbs with context %}
|
||||
{% import "materialize/wtf.html.j2" as wtf %}
|
||||
|
||||
{% block nav_content %}
|
||||
{% include 'auth/_breadcrumbs.html.j2' %}
|
||||
{% endblock nav_content %}
|
||||
|
||||
{% block page_content %}
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
|
@@ -1,10 +1,7 @@
|
||||
{% extends "nopaque.html.j2" %}
|
||||
{% extends "base.html.j2" %}
|
||||
{% from "auth/_breadcrumbs.html.j2" import breadcrumbs with context %}
|
||||
{% import "materialize/wtf.html.j2" as wtf %}
|
||||
|
||||
{% block nav_content %}
|
||||
{% include 'auth/_breadcrumbs.html.j2' %}
|
||||
{% endblock nav_content %}
|
||||
|
||||
{% block page_content %}
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
|
@@ -1,8 +1,5 @@
|
||||
{% extends "nopaque.html.j2" %}
|
||||
|
||||
{% block nav_content %}
|
||||
{% include 'auth/_breadcrumbs.html.j2' %}
|
||||
{% endblock nav_content %}
|
||||
{% extends "base.html.j2" %}
|
||||
{% from "auth/_breadcrumbs.html.j2" import breadcrumbs with context %}
|
||||
|
||||
{% block page_content %}
|
||||
<div class="container">
|
||||
|
Reference in New Issue
Block a user