Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
rjconanan_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
Raul Jarod Conanan
rjconanan_reading
Commits
14b42b3c
Commit
14b42b3c
authored
Mar 28, 2023
by
RJC
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changed url endpoints for detail views and modified html files to accomodate
parent
e6ea1985
Pipeline
#3048
failed with stages
Changes
5
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
6 deletions
+6
-6
author_detail.html
bookshelf/templates/bookshelf/author_detail.html
+1
-1
authors.html
bookshelf/templates/bookshelf/authors.html
+1
-1
book_detail.html
bookshelf/templates/bookshelf/book_detail.html
+1
-1
books.html
bookshelf/templates/bookshelf/books.html
+1
-1
urls.py
bookshelf/urls.py
+2
-2
No files found.
bookshelf/templates/bookshelf/author_detail.html
View file @
14b42b3c
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
<p>
{{ authors.bio }}
</p><br>
<p>
{{ authors.bio }}
</p><br>
<h2>
Books by {{ authors.first_name }} {{ authors.last_name }} I love
<3:
</
h2
>
<h2>
Books by {{ authors.first_name }} {{ authors.last_name }} I love
<3:
</
h2
>
{% for books in authors.books.all %}
{% for books in authors.books.all %}
<a
href=
"http://127.0.0.1:8000/books/{{ books.pk }}"
>
{{ books.title }}
</a><br>
<a
href=
"http://127.0.0.1:8000/books/{{ books.pk }}
/details/
"
>
{{ books.title }}
</a><br>
{% endfor %}
{% endfor %}
<br>
<br>
<a
href=
"http://127.0.0.1:8000/homepage/"
>
Home
</a>
<a
href=
"http://127.0.0.1:8000/homepage/"
>
Home
</a>
...
...
bookshelf/templates/bookshelf/authors.html
View file @
14b42b3c
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
{% block header %}RJ's Favorite Authors{% endblock %}
{% block header %}RJ's Favorite Authors{% endblock %}
{% block content %}
{% block content %}
{% for authors in authors %}
{% for authors in authors %}
<a
href=
"http://127.0.0.1:8000/authors/{{ authors.pk }}"
>
{{ authors.first_name }} {{ authors.last_name }}
</a><br>
<a
href=
"http://127.0.0.1:8000/authors/{{ authors.pk }}
/details/
"
>
{{ authors.first_name }} {{ authors.last_name }}
</a><br>
{% endfor %}
{% endfor %}
<br>
<br>
<a
href=
"http://127.0.0.1:8000/homepage/"
>
Home
</a>
<a
href=
"http://127.0.0.1:8000/homepage/"
>
Home
</a>
...
...
bookshelf/templates/bookshelf/book_detail.html
View file @
14b42b3c
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
{% block title %}{{ books.title }}{% endblock %}
{% block title %}{{ books.title }}{% endblock %}
{% block header %}{{ books.title }}{% endblock %}
{% block header %}{{ books.title }}{% endblock %}
{% block content %}
{% block content %}
<a
href=
"http://127.0.0.1:8000/authors/{{ books.author.pk }}"
>
{{ books.author }}
</a><br>
<a
href=
"http://127.0.0.1:8000/authors/{{ books.author.pk }}
/details/
"
>
{{ books.author }}
</a><br>
<p>
{{ books.publisher }}
</p><br>
<p>
{{ books.publisher }}
</p><br>
<p>
{{ books.year_published }}
</p><br>
<p>
{{ books.year_published }}
</p><br>
<p>
{{ books.ISBN }}
</p><br>
<p>
{{ books.ISBN }}
</p><br>
...
...
bookshelf/templates/bookshelf/books.html
View file @
14b42b3c
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
{% block header %}RJ's Favorite Books{% endblock %}
{% block header %}RJ's Favorite Books{% endblock %}
{% block content %}
{% block content %}
{% for books in books %}
{% for books in books %}
<a
href=
"http://127.0.0.1:8000/books/{{ books.pk }}"
>
{{ books.title }}
</a><br>
<a
href=
"http://127.0.0.1:8000/books/{{ books.pk }}
/details/
"
>
{{ books.title }}
</a><br>
{% endfor %}
{% endfor %}
<br>
<br>
<a
href=
"http://127.0.0.1:8000/homepage/"
>
Home
</a>
<a
href=
"http://127.0.0.1:8000/homepage/"
>
Home
</a>
...
...
bookshelf/urls.py
View file @
14b42b3c
...
@@ -4,7 +4,7 @@ from .views import HomePageView, BookListView, BookDetailView, AuthorListView, A
...
@@ -4,7 +4,7 @@ from .views import HomePageView, BookListView, BookDetailView, AuthorListView, A
urlpatterns
=
[
urlpatterns
=
[
path
(
'homepage/'
,
HomePageView
.
as_view
()),
path
(
'homepage/'
,
HomePageView
.
as_view
()),
path
(
'books/'
,
BookListView
.
as_view
()),
path
(
'books/'
,
BookListView
.
as_view
()),
path
(
'books/<int:pk>/'
,
BookDetailView
.
as_view
()),
path
(
'books/<int:pk>/
details/
'
,
BookDetailView
.
as_view
()),
path
(
'authors/'
,
AuthorListView
.
as_view
()),
path
(
'authors/'
,
AuthorListView
.
as_view
()),
path
(
'authors/<int:pk>/'
,
AuthorDetailView
.
as_view
()),
path
(
'authors/<int:pk>/
details/
'
,
AuthorDetailView
.
as_view
()),
]
]
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