Commit 9eff115d authored by Cheska Hung's avatar Cheska Hung

fixed links

parent 717a9d5f
Pipeline #3049 canceled with stages
......@@ -3,6 +3,7 @@
{% load static %}
{% block content %}
<title> My Favorite Books</title>
<h1>Cheska's Favorite Authors:</h1>
{% for Author in object_list %}
......@@ -12,7 +13,8 @@
</a>
</li>
{% endfor %}
<br><br>
<a href="/books">Books</a>
<a href="/home">Home</a>
{% endblock content %}
\ No newline at end of file
......@@ -3,7 +3,7 @@
{% load static %}
{% block content %}
<title>{{object.first_name}}{{object.last_name}}</title>
<h1>{{object.first_name}}{{object.last_name}}</h1>
<h2>{{object.age}}</h2>
<h2>{{object.nationality}}</h2>
......@@ -16,8 +16,11 @@
</a>
</li>
{% endfor %}
<br><br>
<h2>Books by {{object.first_name}}{{object.last_name}} that I love:</h2>
<br><br>
<a href="/books">Books</a>
<a href="/authors">Authors</a>
<a href="/home">Home</a>
{% endblock content %}
\ No newline at end of file
......@@ -5,9 +5,7 @@
{% block content %}
{% endblock content %}<br>
<a href="/books">Books</a>
<a href="/authors">authors</a>
<a href="/home">home</a>
</body>
......
{% extends "base.html" %}
{% block content %}
<title> My Favorite Books</title>
<h1>Cheska's Favorite Books</h1>
{% for Books in object_list %}
<li>
<a href="{% url 'books-detail' Books.pk %}">
......@@ -8,4 +10,8 @@
</a>
</li>
{% endfor %}
<br><br>
<a href="/authors">Authors</a>
<a href="/home">Home</a>
{% endblock content %}
\ No newline at end of file
......@@ -3,7 +3,7 @@
{% load static %}
{% block content %}
<title>{{object.title}}</title>
<h1>{{object.title}}</h1>
<h2>{{object.author}}</h2>
<h2>{{object.publisher}}</h2>
......@@ -11,5 +11,7 @@
<h2>{{object.ISBN}}</h2>
<h2>{{object.blurb}}</h2>
<a href="/books">Books</a>
<a href="/authors">Authors</a>
<a href="/home">Home</a>
{% endblock content %}
\ No newline at end of file
......@@ -9,5 +9,8 @@
<body>
I like reading fantasy novels
</body>
<br><br>
<a href="/books">Books</a>
<a href="/authors">Authors</a>
{% endblock content %}
\ No newline at end of file
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