Projects/worblehat-old
Projects
/
worblehat-old
Archived
12
0
Fork 0
This repository has been archived on 2024-07-04. You can view files and clone it, but cannot push or open issues or pull requests.
worblehat-old/python/web/templates/book/view.html

55 lines
1.8 KiB
HTML
Raw Normal View History

{% extends "base/main.html" %}
{%block title%}
{{ book.title }}
{% endblock %}
{% block content %}
{% if book.thumbnail %}
<span class="img">
<img src="/media/{{ book.thumbnail }}" alt="{{ book.title }}">
</span>
{% endif %}
<h2>{{ book.title }}</h2>
2011-03-05 21:30:03 +01:00
{% if book.subtitle %}
<h3>{{ book.subtitle }}</h3>
2011-03-05 21:30:03 +01:00
{% endif %}
<!---
<span class="key">Title:</span> {{ book.title }} <br>
{% if book.subtitle %}
<span class="key">Subtitle:</span> {{ book.subtitle }} <br>
{% endif %}
2011-03-05 21:30:03 +01:00
{% for person in people %}
<span class="key">{{ person.relation }}:</span> <a href=/person/{{person.person.id}}>{{ person.person.first_name }} {{ person.person.last_name }}</a> <br>
2011-03-05 21:30:03 +01:00
{% endfor %}
---!>
{% for relation, persons in contributors.iteritems %}
<span class="key">{{ relation }}{% if persons.0 != 1 and relation != 'Medvirkende' %}e{% endif %}:</span>
{% for person in persons.1 %}
<a href=/person/{{person.person.id}}>{{ person.person.first_name }} {{ person.person.last_name }}</a>{% if not forloop.last %}, {% endif %}
{% endfor %}
<br>
{% endfor %}
{% if book.category %}
<span class="key">Kategori:</span> {{ book.category }} <br>
{% endif %}
{% if book.shelves %}
<span class="key">Hylle:</span> {{ book.shelves }} <br>
{% endif %}
{% if book.published_year %}
<span class="key">År:</span> {{ book.published_year }} <br>
{% endif %}
{% if book.edition %}
<span class="key">Utgave:</span> {{ book.edition }} <br>
{% endif %}
{% if book.num_pages %}
<span class="key">Antall sider:</span> {{ book.num_pages }} <br>
{% endif %}
{% if book.series %}
<span class="key">Serie:</span> {{ book.series }} <br>
{% endif %}
{% if book.description %}
<span class="key">Beskrivelse:</span> {{ book.description }} <br>
{% endif %}
<span class="key">ISBN:</span> {{ book.isbn }} <br>
{% endblock %}