Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
rafa_mendoza_reading
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Rafa Mendoza
rafa_mendoza_reading
Commits
9a748701
Commit
9a748701
authored
Mar 29, 2023
by
Rafa Mendoza
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
moved png
parent
f8bb7663
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
18 additions
and
19 deletions
+18
-19
.DS_Store
bookshelf/templates/.DS_Store
+0
-0
author.html
bookshelf/templates/author.html
+1
-1
author_details.html
bookshelf/templates/author_details.html
+5
-5
base.html
bookshelf/templates/base.html
+1
-1
books.html
bookshelf/templates/books.html
+4
-4
books_details.html
bookshelf/templates/books_details.html
+6
-6
shrek.png
bookshelf/templates/css/shrek.png
+0
-0
home.html
bookshelf/templates/home.html
+1
-2
No files found.
bookshelf/templates/.DS_Store
0 → 100644
View file @
9a748701
File added
bookshelf/templates/author.html
View file @
9a748701
...
@@ -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
bookshelf/templates/author_details.html
View file @
9a748701
...
@@ -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=
"{{ book
s
.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
bookshelf/templates/base.html
View file @
9a748701
...
@@ -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>
...
...
bookshelf/templates/books.html
View file @
9a748701
{% 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=
"{{ book
s.get_absolute_url
}}"
>
<a
href=
"{{ book
.get_absolute_url
}}"
>
{{ book
s
.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
bookshelf/templates/books_details.html
View file @
9a748701
...
@@ -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
bookshelf/templates/shrek.png
→
bookshelf/templates/
css/
shrek.png
View file @
9a748701
File moved
bookshelf/templates/home.html
View file @
9a748701
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment