Lagt til html-visning av kategorier og en oversikt over hyller.
This commit is contained in:
14
python/web/templates/category/index.html
Normal file
14
python/web/templates/category/index.html
Normal file
@@ -0,0 +1,14 @@
|
||||
{% extends "base/main.html" %}
|
||||
|
||||
{%block title%}
|
||||
Worblehat 0.1: Kategorier
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h3>Kategorier:</h3>
|
||||
<ul>
|
||||
{% for category in categories %}
|
||||
<li><a href="/kategori/{{ category.id }}">{{ category }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endblock %}
|
Reference in New Issue
Block a user