Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
addysalto_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
Mary Adelaide A. Salto
addysalto_reading
Commits
27be1865
Commit
27be1865
authored
Mar 28, 2023
by
Mary Adelaide A. Salto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Created the templates for the needed web pages
parent
e475c65f
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
130 additions
and
0 deletions
+130
-0
author_details.html
...reading/bookshelf/templates/bookshelf/author_details.html
+34
-0
authors.html
addysalto_reading/bookshelf/templates/bookshelf/authors.html
+24
-0
book_details.html
...o_reading/bookshelf/templates/bookshelf/book_details.html
+28
-0
books.html
addysalto_reading/bookshelf/templates/bookshelf/books.html
+24
-0
home.html
addysalto_reading/bookshelf/templates/bookshelf/home.html
+20
-0
No files found.
addysalto_reading/bookshelf/templates/bookshelf/author_details.html
0 → 100644
View file @
27be1865
{% extends 'base.html' %}
{% load static %}
{% block title %}
{{ object }}
{% endblock %}
{% block heading %}
<h1>
{{ object }}
</h1>
{% endblock %}
{% block content %}
<p>
{{ object.age }}
</p>
<p>
{{ object.nationality }}
</p>
<p>
{{ object.bio }}
</p>
<p>
Books by {{ object }} I love:
</p>
<ul>
{% for book in books %}
{% if book.author == object %}
<li>
<a
href=
"{{ book.get_absolute_url }}"
>
{{ book.title }}
</a>
</li>
{% endif %}
{% endfor %}
</ul>
{% endblock %}
{% block footer %}
<a
href=
"{% url 'bookshelf:home' %}"
>
Home
</a>
<a
href=
"{% url 'bookshelf:books-list' %}"
>
Books
</a>
<a
href=
"{% url 'bookshelf:authors-list' %}"
>
Authors
</a>
{% endblock %}
\ No newline at end of file
addysalto_reading/bookshelf/templates/bookshelf/authors.html
0 → 100644
View file @
27be1865
{% extends 'base.html' %}
{% load static %}
{% block title %}My Favorite Authors{% endblock %}
{% block heading %}
<h1>
Addy's Favorite Authors:
</h1>
{% endblock %}
{% block content %}
<ul>
{% for object in object_list %}
<li>
<a
href=
"{{ object.get_absolute_url }}"
>
{{ object }}
</a>
</li>
{% endfor %}
</ul>
{% endblock %}
{% block footer %}
<a
href=
"{% url 'bookshelf:home' %}"
>
Home
</a>
<a
href=
"{% url 'bookshelf:books-list' %}"
>
Books
</a>
{% endblock %}
\ No newline at end of file
addysalto_reading/bookshelf/templates/bookshelf/book_details.html
0 → 100644
View file @
27be1865
{% extends 'base.html' %}
{% load static %}
{% block title %}
{{ object.title }}
{% endblock %}
{% block heading %}
<h1>
{{ object.title }}
</h1>
{% endblock %}
{% block content %}
<p>
<a
href=
"{{ object.author.get_absolute_url }}"
>
{{ object.author }}
</a>
</p>
<p>
{{ object.publisher }}
</p>
<p>
{{ object.year_published }}
</p>
<p>
{{ object.ISBN }}
</p>
<p>
{{ object.blurb }}
</p>
{% endblock %}
{% block footer %}
<a
href=
"{% url 'bookshelf:home' %}"
>
Home
</a>
<a
href=
"{% url 'bookshelf:books-list' %}"
>
Books
</a>
<a
href=
"{% url 'bookshelf:authors-list' %}"
>
Authors
</a>
{% endblock %}
\ No newline at end of file
addysalto_reading/bookshelf/templates/bookshelf/books.html
0 → 100644
View file @
27be1865
{% extends 'base.html' %}
{% load static %}
{% block title %}My Favorite Books{% endblock %}
{% block heading %}
<h1>
Addy's Favorite Books:
</h1>
{% endblock %}
{% block content %}
<ul>
{% for object in object_list %}
<li>
<a
href=
"{{ object.get_absolute_url }}"
>
{{ object.title }}
</a>
</li>
{% endfor %}
</ul>
{% endblock %}
{% block footer %}
<a
href=
"{% url 'bookshelf:home' %}"
>
Home
</a>
<a
href=
"{% url 'bookshelf:authors-list' %}"
>
Authors
</a>
{% endblock %}
\ No newline at end of file
addysalto_reading/bookshelf/templates/bookshelf/home.html
0 → 100644
View file @
27be1865
{% extends 'base.html' %}
{% load static %}
{% block title %}My Favorite Books
&
Authors{% endblock %}
{% block heading %}
<h1>
Welcome to Addy's Database of Favorite Books and Authors!
</h1>
{% endblock %}
{% block content %}
<p>
In this database, you can see Addy's most-loved books!
She enjoys books of different themes and genres.
Some revolve around romance, self-discovery, and self-improvement.
While the others are more heavy, such as books under thriller, crime, and mystery.
</p>
{% endblock %}
{% block footer %}
<a
href=
"{% url 'bookshelf:books-list' %}"
>
Books
</a>
<a
href=
"{% url 'bookshelf:authors-list' %}"
>
Authors
</a>
{% endblock %}
\ 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