Commit 215eac48 authored by justin's avatar justin

Added HTML class names for easier CSS styling

parent 03e3540e
......@@ -5,7 +5,7 @@
<div class="author-details">
<h1>{{ object }}</h1>
<ul>
<ul class="more-details">
<li>{{ object.age }}</li>
<li>{{ object.nationality }}</li>
<li>{{ object.bio }}</li>
......@@ -13,7 +13,7 @@
</div>
<div class="author-books">
<h1>Books by {{ object }} I love</h1>
<h1>Books by {{ object }} I love:</h1>
<ul>
{% for book in object.books_set.all %}
<a href="{{book.get_absolute_url}}"><li>{{book.title}}</li></a>
......@@ -21,7 +21,7 @@
</ul>
</div>
<ul>
<ul class="footer">
<li><a href="/home">Home</a></li>
<li><a href="/books">Books</a></li>
<li><a href="/authors">Authors</a></li>
......
......@@ -10,7 +10,7 @@
{% endfor %}
</ul>
<ul>
<ul class="footer">
<li><a href="/home">Home</a></li>
<li><a href="/books">Books</a></li>
</ul>
......
......@@ -5,7 +5,7 @@
<div class="book-details">
<h1>{{ object.title }}</h1>
<ul>
<ul class="more-details">
<a href="{{object.author.get_absolute_url}}"><li>{{ object.author }}</li></a>
<li>{{ object.publisher }}</li>
<li>{{ object.year_published }}</li>
......@@ -14,7 +14,7 @@
</ul>
</div>
<ul>
<ul class="footer">
<li><a href="/home">Home</a></li>
<li><a href="/books">Books</a></li>
<li><a href="/authors">Authors</a></li>
......
......@@ -3,14 +3,14 @@
{% block title %} My Favorite Books {% endblock %}
{% block content %}
<h1>Justin' Favorite Books</h1>
<h1>Justin's Favorite Books</h1>
<ul>
{% for object in object_list %}
<a href="{{object.get_absolute_url}}"><li>{{object.title}}</li></a>
{% endfor %}
</ul>
<ul>
<ul class="footer">
<li><a href="/home">Home</a></li>
<li><a href="/authors">Authors</a></li>
</ul>
......
......@@ -6,7 +6,7 @@
love reading horror, biographies, and more. Thanks!
</p>
<ul>
<ul class="footer">
<li><a href="/books">Books</a></li>
<li><a href="/authors">Authors</a></li>
</ul>
......
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