Commit cc650762 authored by Jan Ericsson Ong Ang's avatar Jan Ericsson Ong Ang

edited author and book templates

parent d7b47230
...@@ -7,13 +7,9 @@ ...@@ -7,13 +7,9 @@
<p>{{ author.age }}</p> <p>{{ author.age }}</p>
<p>{{ author.nationality }}</p> <p>{{ author.nationality }}</p>
<p>{{ author.bio }}</p> <p>{{ author.bio }}</p>
<p>{{ author.age }}</p>
<p>Books by {{ author.first_name }} {{ author.last_name }} I love</p> <p>Books by {{ author.first_name }} {{ author.last_name }} I love</p>
<a href="/books/1/details">Home</a><br> <a href="/books/1/details">Home</a><br>
<a href="/books/2/details">Home</a><br>
<a href="/books/3/details">Home</a><br>
<a href="/homepage/">Home</a>&nbsp;&nbsp; <a href="/homepage/">Home</a>&nbsp;&nbsp;
<a href="/books/">Books</a>&nbsp;&nbsp; <a href="/books/">Books</a>&nbsp;&nbsp;
......
{% extends 'base.html' %}
{% block title %}My Favorite Authors{% endblock %}
{% block header %}Jan's Favorite Authors:{% endblock %}
{% block content %}
{% for author in authors %}
<a href="/author/{{ author.pk }}/details/">{{ author.first_name }} {{ author.last_name }}</a>
{% endfor %}
<br>
<a href="/homepage/">Home</a>&nbsp;&nbsp;
<a href="/books/">Books</a>
{% endblock %}
\ No newline at end of file
{% extends 'base.html' %}
{% block title %}My Favorite Books{% endblock %}
{% block header %}Jan's Favorite Books:{% endblock %}
{% block content %}
{% for book in books %}
<a href="/books/{{ book.pk }}/details/">{{ book.title }}</a>
{% endfor %}
<br>
<a href="/homepage/">Home</a>&nbsp;&nbsp;
<a href="/authors/">Authors</a>
{% 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