46 lines
1.4 KiB
HTML
46 lines
1.4 KiB
HTML
{% 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>
|
|
{% if book.subtitle %}
|
|
<h3>{{ book.subtitle }}</h3>
|
|
{% endif %}
|
|
{% 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 %}
|