Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
lance_santuyo_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
Lance Dominic B. Santuyo
lance_santuyo_reading
Commits
9ed1f145
Commit
9ed1f145
authored
Mar 29, 2023
by
Lance Dominic B. Santuyo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added list styling
parent
d3e819d6
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
13 deletions
+28
-13
author_details.html
...reading/bookshelf/templates/bookshelf/author_details.html
+9
-4
authors.html
...antuyo_reading/bookshelf/templates/bookshelf/authors.html
+10
-5
books.html
..._santuyo_reading/bookshelf/templates/bookshelf/books.html
+9
-4
No files found.
lance_santuyo_reading/bookshelf/templates/bookshelf/author_detail.html
→
lance_santuyo_reading/bookshelf/templates/bookshelf/author_detail
s
.html
View file @
9ed1f145
...
@@ -9,11 +9,16 @@
...
@@ -9,11 +9,16 @@
{{ author.bio }}
<br>
{{ author.bio }}
<br>
Books by {{ author.first_name }} {{ author.last_name }} I love:
Books by {{ author.first_name }} {{ author.last_name }} I love:
</p>
</p>
<ul>
{% for work in author.works.all %}
{% for work in author.works.all %}
<li>
<a
href=
"{{ work.get_absolute_url }}"
>
{{ work.title }}
</a>
<br>
<a
href=
"{{ work.get_absolute_url }}"
>
{{ work.title }}
</a>
<br>
</li>
{% endfor %}
{% endfor %}
</ul>
<br>
<a
href=
"http://127.0.0.1:8000/home/"
>
Home
</a>
<a
href=
"http://127.0.0.1:8000/books/"
>
Books
</a>
<a
href=
"http://127.0.0.1:8000/books/"
>
Books
</a>
<a
href=
"http://127.0.0.1:8000/authors/"
>
Authors
</a>
<a
href=
"http://127.0.0.1:8000/authors/"
>
Authors
</a>
...
...
lance_santuyo_reading/bookshelf/templates/bookshelf/author
_list
.html
→
lance_santuyo_reading/bookshelf/templates/bookshelf/author
s
.html
View file @
9ed1f145
...
@@ -3,10 +3,15 @@
...
@@ -3,10 +3,15 @@
{% block title %} My Favorite Authors {% endblock %}
{% block title %} My Favorite Authors {% endblock %}
{% block header %} Lance's Favorite Authors: {% endblock %}
{% block header %} Lance's Favorite Authors: {% endblock %}
{% block content %}
{% block content %}
<ul>
{% for author in author_list %}
{% for author in author_list %}
<li>
<a
href=
"{{ author.get_absolute_url }}"
>
{{ author.first_name }} {{ author.last_name }}
</a>
<br>
<a
href=
"{{ author.get_absolute_url }}"
>
{{ author.first_name }} {{ author.last_name }}
</a>
<br>
</li>
{% endfor %}
{% endfor %}
<a
href=
"http://127.0.0.1:8000/books/"
>
Books
</a>
</ul>
<a
href=
"http://127.0.0.1:8000/home/"
>
Home
</a>
<a
href=
"http://127.0.0.1:8000/
authors/"
>
Author
s
</a>
<a
href=
"http://127.0.0.1:8000/
books/"
>
Book
s
</a>
{% endblock %}
{% endblock %}
lance_santuyo_reading/bookshelf/templates/bookshelf/books
_list
.html
→
lance_santuyo_reading/bookshelf/templates/bookshelf/books.html
View file @
9ed1f145
...
@@ -3,10 +3,15 @@
...
@@ -3,10 +3,15 @@
{% block title %} My Favorite Books {% endblock %}
{% block title %} My Favorite Books {% endblock %}
{% block header %} Lance's Favorite Books: {% endblock %}
{% block header %} Lance's Favorite Books: {% endblock %}
{% block content %}
{% block content %}
<ul>
{% for book in book_list %}
{% for book in book_list %}
<li>
<a
href=
"{{ book.get_absolute_url }}"
>
{{ book.title }}
</a>
<br>
<a
href=
"{{ book.get_absolute_url }}"
>
{{ book.title }}
</a>
<br>
</li>
{% endfor %}
{% endfor %}
<a
href=
"http://127.0.0.1:8000/books/"
>
Books
</a>
</ul>
<a
href=
"http://127.0.0.1:8000/home/"
>
Home
</a>
<a
href=
"http://127.0.0.1:8000/authors/"
>
Authors
</a>
<a
href=
"http://127.0.0.1:8000/authors/"
>
Authors
</a>
{% endblock %}
{% endblock %}
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