Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cheskahung_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
Cheska Hung
cheskahung_reading
Commits
9eff115d
Commit
9eff115d
authored
Mar 28, 2023
by
Cheska Hung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed links
parent
717a9d5f
Pipeline
#3049
canceled with stages
Changes
6
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
24 additions
and
10 deletions
+24
-10
authors.html
templates/authors.html
+4
-2
authors_details.html
templates/authors_details.html
+7
-4
base.html
templates/base.html
+1
-3
books.html
templates/books.html
+6
-0
books_details.html
templates/books_details.html
+3
-1
home.html
templates/home.html
+3
-0
No files found.
templates/authors.html
View file @
9eff115d
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
{% load static %}
{% load static %}
{% block content %}
{% block content %}
<title>
My Favorite Books
</title>
<h1>
Cheska's Favorite Authors:
</h1>
<h1>
Cheska's Favorite Authors:
</h1>
{% for Author in object_list %}
{% for Author in object_list %}
...
@@ -12,7 +13,8 @@
...
@@ -12,7 +13,8 @@
</a>
</a>
</li>
</li>
{% endfor %}
{% endfor %}
<br><br>
<a
href=
"/books"
>
Books
</a>
<a
href=
"/home"
>
Home
</a>
{% endblock content %}
{% endblock content %}
\ No newline at end of file
templates/authors_details.html
View file @
9eff115d
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
{% load static %}
{% load static %}
{% block content %}
{% block content %}
<title>
{{object.first_name}}{{object.last_name}}
</title>
<h1>
{{object.first_name}}{{object.last_name}}
</h1>
<h1>
{{object.first_name}}{{object.last_name}}
</h1>
<h2>
{{object.age}}
</h2>
<h2>
{{object.age}}
</h2>
<h2>
{{object.nationality}}
</h2>
<h2>
{{object.nationality}}
</h2>
...
@@ -16,8 +16,11 @@
...
@@ -16,8 +16,11 @@
</a>
</a>
</li>
</li>
{% endfor %}
{% endfor %}
<br><br>
<h2>
Books by {{object.first_name}}{{object.last_name}} that I love:
</h2>
<br><br>
<a
href=
"/books"
>
Books
</a>
<a
href=
"/authors"
>
Authors
</a>
<a
href=
"/home"
>
Home
</a>
{% endblock content %}
{% endblock content %}
\ No newline at end of file
templates/base.html
View file @
9eff115d
...
@@ -5,9 +5,7 @@
...
@@ -5,9 +5,7 @@
{% block content %}
{% block content %}
{% endblock content %}
<br>
{% endblock content %}
<br>
<a
href=
"/books"
>
Books
</a>
<a
href=
"/authors"
>
authors
</a>
<a
href=
"/home"
>
home
</a>
</body>
</body>
...
...
templates/books.html
View file @
9eff115d
{% extends "base.html" %}
{% extends "base.html" %}
{% block content %}
{% block content %}
<title>
My Favorite Books
</title>
<h1>
Cheska's Favorite Books
</h1>
{% for Books in object_list %}
{% for Books in object_list %}
<li>
<li>
<a
href=
"{% url 'books-detail' Books.pk %}"
>
<a
href=
"{% url 'books-detail' Books.pk %}"
>
...
@@ -8,4 +10,8 @@
...
@@ -8,4 +10,8 @@
</a>
</a>
</li>
</li>
{% endfor %}
{% endfor %}
<br><br>
<a
href=
"/authors"
>
Authors
</a>
<a
href=
"/home"
>
Home
</a>
{% endblock content %}
{% endblock content %}
\ No newline at end of file
templates/books_details.html
View file @
9eff115d
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
{% load static %}
{% load static %}
{% block content %}
{% block content %}
<title>
{{object.title}}
</title>
<h1>
{{object.title}}
</h1>
<h1>
{{object.title}}
</h1>
<h2>
{{object.author}}
</h2>
<h2>
{{object.author}}
</h2>
<h2>
{{object.publisher}}
</h2>
<h2>
{{object.publisher}}
</h2>
...
@@ -11,5 +11,7 @@
...
@@ -11,5 +11,7 @@
<h2>
{{object.ISBN}}
</h2>
<h2>
{{object.ISBN}}
</h2>
<h2>
{{object.blurb}}
</h2>
<h2>
{{object.blurb}}
</h2>
<a
href=
"/books"
>
Books
</a>
<a
href=
"/authors"
>
Authors
</a>
<a
href=
"/home"
>
Home
</a>
<a
href=
"/home"
>
Home
</a>
{% endblock content %}
{% endblock content %}
\ No newline at end of file
templates/home.html
View file @
9eff115d
...
@@ -9,5 +9,8 @@
...
@@ -9,5 +9,8 @@
<body>
<body>
I like reading fantasy novels
I like reading fantasy novels
</body>
</body>
<br><br>
<a
href=
"/books"
>
Books
</a>
<a
href=
"/authors"
>
Authors
</a>
{% endblock content %}
{% endblock content %}
\ 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