Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jaysonlim_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
Jayson Lim
jaysonlim_reading
Commits
87e27b95
Commit
87e27b95
authored
Apr 26, 2023
by
Jayson Lim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Finalized the templates, configured urls, and applied basic CSS styling
parent
78a9b85c
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
3 deletions
+12
-3
views.cpython-39.pyc
jaysonlim_reading/bookshelf/__pycache__/views.cpython-39.pyc
+0
-0
authors.html
jaysonlim_reading/bookshelf/templates/bookshelf/authors.html
+1
-0
home.html
jaysonlim_reading/bookshelf/templates/bookshelf/home.html
+6
-2
views.py
jaysonlim_reading/bookshelf/views.py
+5
-1
db.sqlite3
jaysonlim_reading/db.sqlite3
+0
-0
No files found.
jaysonlim_reading/bookshelf/__pycache__/views.cpython-39.pyc
View file @
87e27b95
No preview for this file type
jaysonlim_reading/bookshelf/templates/bookshelf/authors.html
View file @
87e27b95
...
@@ -11,6 +11,7 @@
...
@@ -11,6 +11,7 @@
h1
,
ul
,
a
{
h1
,
ul
,
a
{
color
:
white
;
color
:
white
;
}
}
</style>
</style>
<h1>
Jayson's Favorite Authors:
</h1>
<h1>
Jayson's Favorite Authors:
</h1>
<ul>
<ul>
...
...
jaysonlim_reading/bookshelf/templates/bookshelf/home.html
View file @
87e27b95
...
@@ -26,8 +26,12 @@
...
@@ -26,8 +26,12 @@
<p
style=
"font-size: 20px"
>
I enjoy the works of: George R.R. Martin, Robert Ludlum, J.K. Rowling, Dan Brown,
<p
style=
"font-size: 20px"
>
I enjoy the works of: George R.R. Martin, Robert Ludlum, J.K. Rowling, Dan Brown,
John Grisham, Tom Clancy, and J.R.R. Tolkien.
</p>
John Grisham, Tom Clancy, and J.R.R. Tolkien.
</p>
<div
style=
"display: flex; justify-content: space-between;"
>
<div
style=
"display: flex; justify-content: space-between;"
>
<a
href=
"{% url 'bookshelf:books' %}"
>
Books
</a>
<a
href=
"{% url 'bookshelf:books' %}"
style=
"margin-bottom: 20px;"
>
Books
</a>
<a
href=
"{% url 'bookshelf:authors' %}"
>
Authors
</a>
<a
href=
"{% url 'bookshelf:authors' %}"
style=
"margin-bottom: 20px;"
>
Authors
</a>
</div>
<div
style=
"display: flex; justify-content: space-between;"
>
<a
href=
"{% url 'bookshelf:books-create' %}"
>
Add Book
</a>
<a
href=
"{% url 'bookshelf:authors-create' %}"
>
Add Author
</a>
</div>
</div>
{% endblock %}
{% endblock %}
\ No newline at end of file
jaysonlim_reading/bookshelf/views.py
View file @
87e27b95
...
@@ -10,7 +10,11 @@ from django.urls import reverse, reverse_lazy
...
@@ -10,7 +10,11 @@ from django.urls import reverse, reverse_lazy
def
home_view
(
request
):
def
home_view
(
request
):
authors_url
=
reverse
(
'bookshelf:authors'
)
authors_url
=
reverse
(
'bookshelf:authors'
)
books_url
=
reverse
(
'bookshelf:books'
)
books_url
=
reverse
(
'bookshelf:books'
)
context
=
{
'authors_url'
:
authors_url
,
'books_url'
:
books_url
}
authors_create_url
=
reverse
(
'bookshelf:authors-create'
)
books_create_url
=
reverse
(
'bookshelf:books-create'
)
context
=
{
'authors_url'
:
authors_url
,
'books_url'
:
books_url
,
'authors_create_url'
:
authors_create_url
,
'books_create_url'
:
books_create_url
}
return
render
(
request
,
'bookshelf/home.html'
,
context
)
return
render
(
request
,
'bookshelf/home.html'
,
context
)
class
BooksListView
(
ListView
):
class
BooksListView
(
ListView
):
...
...
jaysonlim_reading/db.sqlite3
View file @
87e27b95
No preview for this file type
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