Har plassert bokhyllene på framsida (#14). Trodde de var der allerede, men tydeligvis ikke.

This commit is contained in:
2011-03-07 12:39:05 +00:00
parent 3969954144
commit 25215718ee
2 changed files with 12 additions and 5 deletions

View File

@@ -11,14 +11,14 @@ Her kan du søke etter bøker til din hjertens lyst, eller gå til hyllene:
{% for shelf in shelf_lists %}
<span class="img">
<table border="1" class="shelf" >
<caption class="caption">Hylle {% if forloop.last %}B{% else %}A{% endif %}</caption>
{% for row in shelf.1 %}
<caption class="caption">Hylle {{ shelf.shelf_name }}</caption>
{% for row in shelf.shelf_list %}
<tr>
{% for column in row %}
<td>
<td {% for category in column %}{% if category.id == highlight_string %}class="highlight"{% endif %}{% endfor %}>
<table>
{% for category in column %}
<tr><td><a href="/kategori/{{ category.id }}">{{ category }}</a></td></tr>
<tr><td {% if category.id == highlight_string %}class="highlight"{% endif %}><a href="/kategori/{{ category.id }}">{{ category }}</a></td></tr>
{% endfor %}
</table>
</td>