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

moved png

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