counter_list.jinja 676 Bytes
Newer Older
Skia's avatar
Skia committed
1
2
3
{% extends "core/base.jinja" %}

{% block title %}
Skia's avatar
Skia committed
4
    Counter admin list
Skia's avatar
Skia committed
5
6
7
{% endblock %}

{% block content %}
Skia's avatar
Skia committed
8
    <p><a href="{{ url('counter:new') }}">New counter</a></p>
Skia's avatar
Skia committed
9
    {% if counter_list %}
Skia's avatar
Skia committed
10
        <h3>Counter admin list</h3>
Skia's avatar
Skia committed
11
12
        <ul>
            {% for c in counter_list  %}
Skia's avatar
Skia committed
13
14
15
            <li><a href="{{ url('counter:details', counter_id=c.id) }}">{{ c }}</a> -
                <a href="{{ url('counter:admin', counter_id=c.id) }}">Edit</a> -
                <a href="{{ url('counter:delete', counter_id=c.id) }}">Delete</a></li>
Skia's avatar
Skia committed
16
17
18
19
20
21
22
23
24
            {% endfor %}
        </ul>
    {% else %}
        There is no counters in this website.
    {% endif %}
{% endblock %}