Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
joeiyucoco_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
Joei Yucoco
joeiyucoco_reading
Commits
6326bbe6
Commit
6326bbe6
authored
Mar 28, 2023
by
Joei Yucoco
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
implemented templates/views/urls so that the website works & has all the details
parent
3d02691a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
8 deletions
+29
-8
author_details.html
...reading/bookshelf/templates/bookshelf/author_details.html
+16
-3
authors.html
...yucoco_reading/bookshelf/templates/bookshelf/authors.html
+2
-2
book_details.html
...o_reading/bookshelf/templates/bookshelf/book_details.html
+10
-2
home.html
joeiyucoco_reading/bookshelf/templates/bookshelf/home.html
+1
-1
No files found.
joeiyucoco_reading/bookshelf/templates/bookshelf/author_details.html
View file @
6326bbe6
<!DOCTYPE html>
<!DOCTYPE html>
{% extends 'base.html' %}
{% extends 'base.html' %}
{% block title %}
My Favorite Books and Authors
{% endblock %}
{% block title %}
{{object}}
{% endblock %}
{% block content %}
{% block content %}
<h1>
Hello author details
</h1>
<h1>
{{object}}
</h1>
<h2>
{{object}}
</h2>
<h3>
{{object.age}}
</h3>
<h3>
{{object.nationality}}
</h3>
<h3>
{{object.bio}}
</h3>
<h2>
Books by {{object}} I love:
</h2>
<ul>
{% for entry in object.books_set.all %}
<li>
<a
href=
"{{ entry.get_absolute_detail_url }}"
>
{{ entry }}
</a>
</li>
{% endfor %}
</ul>
<h3>
<h3>
<a
href=
"{{ object.get_absolute_home_url }}"
>
<a
href=
"{{ object.get_absolute_home_url }}"
>
...
...
joeiyucoco_reading/bookshelf/templates/bookshelf/authors.html
View file @
6326bbe6
<!DOCTYPE html>
<!DOCTYPE html>
{% extends 'base.html' %}
{% extends 'base.html' %}
{% block title %}My Favorite
Books and
Authors{% endblock %}
{% block title %}My Favorite Authors{% endblock %}
{% block content %}
{% block content %}
<h1>
Hello a
uthors
</h1>
<h1>
Joei's Favorite A
uthors
</h1>
<ul>
<ul>
{% for object in object_list %}
{% for object in object_list %}
<li>
<li>
...
...
joeiyucoco_reading/bookshelf/templates/bookshelf/book_details.html
View file @
6326bbe6
...
@@ -2,8 +2,16 @@
...
@@ -2,8 +2,16 @@
{% extends 'base.html' %}
{% extends 'base.html' %}
{% block title %}{{ object }}{% endblock %}
{% block title %}{{ object }}{% endblock %}
{% block content %}
{% block content %}
<h1>
Hello book details
</h1>
<h1>
{{object}}
</h1>
<h2>
{{object}}
</h2>
<h3>
<a
href=
"{{ object.author.get_absolute_detail_url }}"
>
{{object.author}}
</a>
</h3>
<h3>
{{object.publisher}}
</h3>
<h3>
{{object.year_published}}
</h3>
<h3>
{{object.ISBN}}
</h3>
<h3>
{{object.blurb}}
</h3>
<h3>
<h3>
<a
href=
"{{ object.get_absolute_home_url }}"
>
<a
href=
"{{ object.get_absolute_home_url }}"
>
...
...
joeiyucoco_reading/bookshelf/templates/bookshelf/home.html
View file @
6326bbe6
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<center>
<center>
<h1>
Welcome to Joei's Database of
<br>
<h1>
Welcome to Joei's Database of
<br>
Favorite Books and Authors
</h1>
Favorite Books and Authors
!
</h1>
<h3>
I like stuff that aren't boring
</h3>
<h3>
I like stuff that aren't boring
</h3>
<br>
<br>
...
...
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