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

fixed links

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