Commit 9a748701 authored by Rafa Mendoza's avatar Rafa Mendoza

moved png

parent f8bb7663
......@@ -16,4 +16,4 @@
</ul>
{% endblock %}
{% block footer %}<a href="/home">Home</a> -- <a href="/books">Books</a>{% endblock %}
\ No newline at end of file
{% block footer %}<a href="/bookshelf/home">Home</a> -- <a href="/bookshelf/books">Books</a>{% endblock %}
\ No newline at end of file
......@@ -5,18 +5,18 @@
{% block content %}
<h1>{{ author.first_name }} {{ author.last_name }}</h1>
<h3>{{ author.age }}</h3>
<h3>{{ author.nationality }}</h3>
<h3>{{ author.bio }}</h3>
<h3>Age: {{ author.age }}</h3>
<h3>Nationality: {{ author.nationality }}</h3>
<h3>Bio: {{ author.bio }}</h3>
<br>
<h2> Books by {{ author.first_name }} {{ author.last_name }} I love:</h2>
<ul>
{% for book in author.books_set.all %}
<li>
<a href="{{ books.get_absolute_url }}">{{ book.title }}</a>
<a href="{{ book.get_absolute_url }}">{{ book.title }}</a>
</li>
{% endfor %}
</ul>
{% endblock %}
{% block footer %}<a href="/home">Home</a> -- <a href="/books">Books</a> -- <a href="/author">Authors</a>{% endblock %}
\ No newline at end of file
{% block footer %}<a href="/bookshelf/home">Home</a> -- <a href="/bookshelf/books">Books</a> -- <a href="/bookshelf/author">Authors</a>{% endblock %}
\ No newline at end of file
......@@ -2,7 +2,7 @@
<html lang="en">
<head>
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="/templates/css/styles.css ">
<title>{% block title %} {% endblock %}</title>
</head>
......
{% extends 'base.html' %}
{% load static %}
{% block title %} My Favorite Books{% endblock %}
{% block title %} My Favorite Books {% endblock %}
{% block content %}
......@@ -9,8 +9,8 @@
<ul>
{% for book in books_list %}
<li>
<a href="{{ books.get_absolute_url}}">
{{ books.title }}
<a href="{{ book.get_absolute_url }}">
{{ book.title }}
</a>
</li>
{% endfor %}
......@@ -18,4 +18,4 @@
{% endblock %}
{% block footer %}<a href="/home">Home</a> -- <a href="/author">Authors</a>{% endblock %}
\ No newline at end of file
{% block footer %}<a href="/bookshelf/home">Home</a> -- <a href="/bookshelf/author">Authors</a>{% endblock %}
\ No newline at end of file
......@@ -6,12 +6,12 @@
{% block content %}
<h1>{{ books.title }}</h1>
<h2><a href="{{ books.author.get_absolute_url }}">{{ books.author.first_name }} {{ books.author.last_name }}</a></h2>
<h3>{{ books.publisher }}</h3>
<h3>{{ books.year_published }}</h3>
<h3>{{ books.ISBN }}</h3>
<p>{{ books.blurb }}</p>
<h2>Author: <a href="{{ books.author.get_absolute_url }}">{{ books.author.first_name }} {{ books.author.last_name }}</a></h2>
<h3>Publisher: {{ books.publisher }}</h3>
<h3>Year Published: {{ books.year_published }}</h3>
<h3>ISBN: {{ books.isbn }}</h3>
<p>Blurb: {{ books.blurb }}</p>
{% endblock %}
{% block footer %}<a href="/home">Home</a> -- <a href="/books">Books</a> -- <a href="/author">Authors</a>{% endblock %}
\ No newline at end of file
{% block footer %}<a href="/bookshelf/home">Home</a> -- <a href="/bookshelf/books">Books</a> -- <a href="/bookshelf/author">Authors</a>{% endblock %}
\ No newline at end of file
......@@ -5,9 +5,8 @@
{% block content %}
<h2>Welcome to Rafa's Database of Favorite Books and Authors!</h2>
<br>
<p>Not gonna lie, I don't really enjoy reading. Books makes me sleepy...
So, the books that I do enjoy are exceptionally good! Take my word for it. </p>
{% endblock %}
{% block footer %}<a href="/books">Books</a> -- <a href="/author">Authors</a>{% endblock %}
\ No newline at end of file
{% block footer %}<a href="/bookshelf/books">Books</a> -- <a href="/bookshelf/author">Authors</a>{% endblock %}
\ 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