Added list styling

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