Debian Codegraph @

examples/books/themes/coloured.html

raw
1
2 {% extends "base.html" %}
3
4 {% block style %}
5 table {
6 color: #151B54;
7 }
8
9 table tr th {
10 color: white;
11 background: #736F6E;
12 }
13 {% endblock %}
14
15 {% block document_title %}{{ block.super }} - Coloured style{% endblock %}
16 {% block page_title %}{{ block.super }} - Coloured style{% endblock %}
17
18 {% block title_row %}<tr><th>Author</th><th>Title</th><th>Genre</th><th>Rating</th></tr>{% endblock %}
19 {% block book_rows %}
20 {% for book in books %}
21 <tr style="background-color:{% cycle "#E3E4FA" "#FCDFFF" "#E9CFEC" "#C8BBBE" %};" ><td>{{ book.author }}</td><td>{{ book.title }}</td><td>{{ book.genre }}</td><td>{% range book.rating %}<img src="{% media_finder "star.png" %}" />{% endrange %}</td></tr>
22 {% empty %}
23 <tr><td><div>No Books here!</div></td></tr>
24 {% endfor %}
25 {% endblock %}