Commit 558526b8 authored by Ysabella Panghulan's avatar Ysabella Panghulan

added author details view template

parent ade695d4
{%extends 'base.html'%}
{% block title %}{{ object }}{% endblock %}
{% block header %}
<h2>{{ object }}</h2>
{% endblock %}
{% block body %}
<div class="author-content">
{% block content %}
<h3>{{ object.age }}</h3>
<h3>{{ object.nationality }}</h3>
<p>{{ object.bio }}</p>
<h3>Books by {{ object }} I love:</h3>
<div class="book-list">
<ul>
{% for book in object.books %}
<li><a href="{{ book.get_absolute_url }}">{{ book }}</a></li>
{% endfor %}
</ul>
</div>
<div class="links">
<ul>
<li><a href="/home">Home</a></li>
<li><a href="/books">Books</a></li>
<li><a href="/authors">Authors</a></li>
</ul>
</div>
{% endblock %}
</div>
{% endblock %}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment