Skip to content
Browse files

added a category list template accessible via /categories/

  • Loading branch information...
1 parent b6dba46 commit 633bfbb41341fa2020177f88ca5d22c47f29ad77 @montylounge montylounge committed
Showing with 16 additions and 0 deletions.
  1. +16 −0 mingus/templates/blog/category_list.html
View
16 mingus/templates/blog/category_list.html
@@ -0,0 +1,16 @@
+{% extends "blog/base_blog.html" %}
+{% load i18n %}
+
+{% block title %}Post categories{% endblock %}
+{% block body_class %}{{ block.super }} category_list{% endblock %}
+
+{% block content %}
+
+<h2 class="filter-title">{% trans "Posts categories" %}</h2>
+
+ <div class="post_list">
+ {% for category in object_list %}
+ <li><a href="{{ category.get_absolute_url }}">{{ category }}</a></li>
+ {% endfor %}
+ </div>
+{% endblock %}

0 comments on commit 633bfbb

Please sign in to comment.
Something went wrong with that request. Please try again.