removed breadcrumbs logic to its own template

removed breadcrumbs block from templates
added breadcrumbs that were missing from settings page
This commit is contained in:
ajurna@gmail.com
2016-03-30 11:37:49 +01:00
parent 35ad65aaa2
commit ae1b43d366
8 changed files with 19 additions and 52 deletions

View File

@@ -41,16 +41,18 @@
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
{% for page, link in menu.menu_items.items %}
<li {% if menu.current_page = page %} class="active"{% endif %}><a href="{{ link }}">{{ page }}</a></li>
<li {% if menu.current_page == page %} class="active"{% endif %}><a href="{{ link }}">{{ page }}</a></li>
{% endfor %}
</ul>
</div><!--/.nav-collapse -->
</div>
</nav>
<ol class="breadcrumb">
{% block breadcrumb %}
{% if breadcrumbs %}
{% include "comic/breadcrumbs.html" %}
{% else %}
<li><a href="/">Home</a></li>
{% endblock %}
{% endif %}
</ol>
{% block content %}{% endblock %}

View File

@@ -0,0 +1,7 @@
{% for crumb in breadcrumbs %}
{% if not forloop.last %}
<li><a href="{{ crumb.url }}">{{ crumb.name }}</a></li>
{% else %}
<li class="active">{{ crumb.name }}</li>
{% endif %}
{% endfor %}

View File

@@ -1,15 +1,6 @@
{% extends "base.html" %}
{% block title %}{{ title }}{% endblock %}
{% block breadcrumb %}
{% for crumb in breadcrumbs %}
{% if not forloop.last %}
<li><a href="{{ crumb.url }}">{{ crumb.name }}</a></li>
{% else %}
<li class="active">{{ crumb.name }}</li>
{% endif %}
{% endfor %}
{% endblock %}
{% block content %}
<div class="container">
<h2 class="center">Comics</h2>

View File

@@ -1,14 +1,6 @@
{% extends "base.html" %}
{% block title %}{{ title }}{% endblock %}
{% block breadcrumb %}
{% for crumb in breadcrumbs %}
{% if not forloop.last %}
<li><a href="{{ crumb.url }}">{{ crumb.name }}</a></li>
{% else %}
<li class="active">{{ crumb.name }}</li>
{% endif %}
{% endfor %}
{% endblock %}
{% block content %}
<div class="container comic_box">
<center>

View File

@@ -2,15 +2,6 @@
{% block title %}{{ title }}{% endblock %}
{% block breadcrumb %}
{% for crumb in breadcrumbs %}
{% if not forloop.last %}
<li><a href="{{ crumb.url }}">{{ crumb.name }}</a></li>
{% else %}
<li class="active">{{ crumb.name }}</li>
{% endif %}
{% endfor %}
{% endblock %}
{% block content %}
<div class="container">

View File

@@ -2,16 +2,6 @@
{% block title %}{{ title }}{% endblock %}
{% block breadcrumb %}
{% for crumb in breadcrumbs %}
{% if not forloop.last %}
<li><a href="{{ crumb.url }}">{{ crumb.name }}</a></li>
{% else %}
<li class="active">{{ crumb.name }}</li>
{% endif %}
{% endfor %}
{% endblock %}
{% block content %}
{% if error_message %}
<div class="alert alert-danger" role="alert">{{ error_message|safe }}</div>

View File

@@ -2,16 +2,6 @@
{% block title %}CBWebReader - Users{% endblock %}
{% block breadcrumb %}
{% for crumb in breadcrumbs %}
{% if not forloop.last %}
<li><a href="{{ crumb.url }}">{{ crumb.name }}</a></li>
{% else %}
<li class="active">{{ crumb.name }}</li>
{% endif %}
{% endfor %}
{% endblock %}
{% block content %}
<div class="container">
<table class="table table-striped table-bordered table-hover">