Commit 215eac48 authored by justin's avatar justin

Added HTML class names for easier CSS styling

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