Commit 27d7e4c4 authored by KaoruSawade's avatar KaoruSawade

Edited authors and per author pages to reflect specs (edited authors title and...

Edited authors and per author pages to reflect specs (edited authors title and made per author book list into links)
parent 79e44495
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
<h3>Books by {{ author.first_name }} {{ author.last_name }} I love: <h3>Books by {{ author.first_name }} {{ author.last_name }} I love:
<ul> <ul>
{%for book in book_list%} {%for book in book_list%}
<li>{{ book.title }}</li> <li><a href={{ book.get_absolute_url }}>{{ book.title }}</a></li>
{% endfor %} {% endfor %}
</ul> </ul>
{% endblock %} {% endblock %}
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
<ul class="navbarList"> <ul class="navbarList">
<li class="navbarItem"><a href="/home">Home</a></li> <li class="navbarItem"><a href="/home">Home</a></li>
<li class="navbarItem"><a href="/books">Books</a></li> <li class="navbarItem"><a href="/books">Books</a></li>
<li class="navbarItem"><a href="/authors">Authors</a></li>
</ul> </ul>
{% endblock %} {% endblock %}
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
{% load static %} {% load static %}
{% block title %}My Favorite Authors{% endblock %} {% block title %}My Favorite Authors{% endblock %}
{% block content %} {% block content %}
<h2>{{name}}'s Database of Favorite Books and Authors:</h2> <h2>{{name}}'s Favorite Authors:</h2>
<ul> <ul>
{% for author in author_list %} {% for author in author_list %}
<li><a href="{{ author.get_absolute_url }}">{{ author.first_name }} {{ author.last_name }}</a></li> <li><a href="{{ author.get_absolute_url }}">{{ author.first_name }} {{ author.last_name }}</a></li>
......
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