Added list styling

parent d3e819d6
......@@ -9,11 +9,16 @@
{{ author.bio }} <br>
Books by {{ author.first_name }} {{ author.last_name }} I love:
</p>
{% for work in author.works.all %}
<a href="{{ work.get_absolute_url }}">{{ work.title }}</a> <br>
{% endfor %}
<ul>
{% for work in author.works.all %}
<li>
<a href="{{ work.get_absolute_url }}">{{ work.title }}</a> <br>
</li>
{% endfor %}
</ul>
<br>
<a href="http://127.0.0.1:8000/home/">Home</a>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a href="http://127.0.0.1:8000/books/">Books</a>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a href="http://127.0.0.1:8000/authors/">Authors</a>
......
......@@ -3,10 +3,15 @@
{% block title %} My Favorite Authors {% endblock %}
{% block header %} Lance's Favorite Authors: {% endblock %}
{% block content %}
{% for author in author_list %}
<a href="{{ author.get_absolute_url }}">{{ author.first_name }} {{ author.last_name }}</a> <br>
{% endfor %}
<a href="http://127.0.0.1:8000/books/">Books</a>
<ul>
{% for author in author_list %}
<li>
<a href="{{ author.get_absolute_url }}">{{ author.first_name }} {{ author.last_name }}</a> <br>
</li>
{% endfor %}
</ul>
<a href="http://127.0.0.1:8000/home/">Home</a>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a href="http://127.0.0.1:8000/authors/">Authors</a>
<a href="http://127.0.0.1:8000/books/">Books</a>
{% endblock %}
......@@ -3,10 +3,15 @@
{% block title %} My Favorite Books {% endblock %}
{% block header %} Lance's Favorite Books: {% endblock %}
{% block content %}
{% for book in book_list %}
<a href="{{ book.get_absolute_url }}">{{ book.title }}</a> <br>
{% endfor %}
<a href="http://127.0.0.1:8000/books/">Books</a>
<ul>
{% for book in book_list %}
<li>
<a href="{{ book.get_absolute_url }}">{{ book.title }}</a> <br>
</li>
{% endfor %}
</ul>
<a href="http://127.0.0.1:8000/home/">Home</a>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a href="http://127.0.0.1:8000/authors/">Authors</a>
{% endblock %}
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