Add basic counter model

This commit is contained in:
Skia
2016-03-28 14:54:35 +02:00
parent 7d7652e319
commit 21f1393097
17 changed files with 132 additions and 2 deletions

View File

@@ -0,0 +1,21 @@
{% extends "core/base.jinja" %}
{% block title %}
Counter list
{% endblock %}
{% block content %}
{% if counter_list %}
<h3>Counter list</h3>
<ul>
{% for c in counter_list %}
<li><a href="{{ url('counter:details', counter_id=c.id) }}">{{ c }}</a></li>
{% endfor %}
</ul>
{% else %}
There is no counters in this website.
{% endif %}
{% endblock %}