diff options
author | Yaroslav de la Peña Smirnov <contact@yaroslavps.com> | 2018-10-07 01:27:19 +0300 |
---|---|---|
committer | Yaroslav de la Peña Smirnov <contact@yaroslavps.com> | 2018-10-07 01:27:19 +0300 |
commit | 3c422480bdfef5e599d0c5c5acbd1f724df9208d (patch) | |
tree | 13414a8baaeb450a2dc2dd49e6045b16bd89ca09 /weblog/templates | |
parent | 0452ae8865c97327dbc5b1559453210e464c5e4a (diff) | |
download | w3blog-3c422480bdfef5e599d0c5c5acbd1f724df9208d.tar.gz w3blog-3c422480bdfef5e599d0c5c5acbd1f724df9208d.zip |
breadcrumbs, small fixes
Diffstat (limited to 'weblog/templates')
-rwxr-xr-x | weblog/templates/weblog/sidebar_categories.html | 8 | ||||
-rwxr-xr-x | weblog/templates/weblog/weblog.html | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/weblog/templates/weblog/sidebar_categories.html b/weblog/templates/weblog/sidebar_categories.html index 7e7fa5c..370d6b8 100755 --- a/weblog/templates/weblog/sidebar_categories.html +++ b/weblog/templates/weblog/sidebar_categories.html @@ -1,11 +1,11 @@ {% load i18n %} {% if categories %} <h3>{% trans 'Categories' context 'Post categories' %}</h3> -<div class="list-group weblog-categories"> +<ul class="weblog-categories"> {% for category in categories %} - <a href="{% url 'weblog:CategoryIndex' category_slug=category.slug %}" class="list-group-item{% if category.slug == selected_cat_slug %} active{% endif %}"> + <li><a href="{% url 'weblog:CategoryIndex' category_slug=category.slug %}" {% if category.slug == selected_cat_slug %}class="active"{% endif %}> {{ category.name }} - </a> + </a></li> {% endfor %} </div> -{% endif %}
\ No newline at end of file +{% endif %} diff --git a/weblog/templates/weblog/weblog.html b/weblog/templates/weblog/weblog.html index a9acbdf..035ca20 100755 --- a/weblog/templates/weblog/weblog.html +++ b/weblog/templates/weblog/weblog.html @@ -5,14 +5,14 @@ {% block blog_block %} <ul class="breadcrumb"> {% if breadcrumbs %} - <li class="breadcrumb-item"><a href="{% url 'weblog:Index' %}">{{ blog_title }}</a></li> + <li><a href="{% url 'weblog:Index' %}">{{ blog_title }}</a></li> {% for crumb in breadcrumbs %} {% if forloop.last %} - <li class="breadcrumb-item active">{{ crumb.name }}</li> - {% else %}<li class="breadcrumb-item"><a href="{{ crumb.url }}">{{ crumb.name }}</a></li>{% endif %} + <li><a href="#">{{ crumb.name }}</a></li> + {% else %}<li><a href="{{ crumb.url }}">{{ crumb.name }}</a></li>{% endif %} {% endfor %} {% else %} - <li class="breadcrumb-item active"><a href="{% url 'weblog:Index' %}">{{ blog_title }}</a></li> + <li><a href="{% url 'weblog:Index' %}">{{ blog_title }}</a></li> {% endif %} </ul> <div class="blog-wrapper"> |