Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
carlosoarde_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
Carlos Gabriel Oarde
carlosoarde_reading
Commits
5cab9d3b
Commit
5cab9d3b
authored
Mar 28, 2023
by
KaoruSawade
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Created books_list and books_detail templates
parent
88da925f
Pipeline
#3051
canceled with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
0 deletions
+37
-0
books_detail.html
...e_reading/bookshelf/templates/bookshelf/books_detail.html
+19
-0
books_list.html
...rde_reading/bookshelf/templates/bookshelf/books_list.html
+18
-0
No files found.
carlosoarde_reading/bookshelf/templates/bookshelf/books_detail.html
0 → 100644
View file @
5cab9d3b
{% extends 'base.html' %}
{% load static %}
{% block title %}{{ book.title }}{% endblock %}
{% block content %}
<h2>
{{ book.title }}
</h2>
<p><a
href=
{{
author
.
get_absolute_url
}}
>
{{ author.first_name }} {{ author.last_name }}
</a></p>
<p>
{{ book.publisher }}
</p>
<p>
{{ book.year_published }}
</p>
<p>
{{ book.ISBN }}
</p>
<p>
{{ book.blurb }}
</p>
{% endblock %}
{% block navbar %}
<ul
class=
"navbarList"
>
<li
class=
"navbarItem"
><a
href=
"/home"
>
Home
</a></li>
<li
class=
"navbarItem"
><a
href=
"/books"
>
Books
</a></li>
<li
class=
"navbarItem"
><a
href=
"/authors"
>
Authors
</a></li>
</ul>
{% endblock %}
carlosoarde_reading/bookshelf/templates/bookshelf/books_list.html
0 → 100644
View file @
5cab9d3b
{% extends 'base.html' %}
{% load static %}
{% block title %}My Favorite Books{% endblock %}
{% block content %}
<h2>
{{name}}'s Favorite Books:
</h2>
<ul>
{% for book in books_list %}
<li><a
href=
"{{ book.get_absolute_url }}"
>
{{ book.title }}
</a></li>
{% endfor %}
</ul>
{% endblock %}
{% block navbar %}
<ul
class=
"navbarList"
>
<li
class=
"navbarItem"
><a
href=
"/home"
>
Home
</a></li>
<li
class=
"navbarItem"
><a
href=
"/authors"
>
Authors
</a></li>
</ul>
{% 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