Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
javing_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
John Aidan Vincent M. Ng
javing_reading
Commits
ed5ebb70
Commit
ed5ebb70
authored
Mar 27, 2023
by
Javi Ng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
finished navigation bar, created CSS stylesheet
parent
aaa111b1
Changes
12
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
73 additions
and
12 deletions
+73
-12
views.cpython-310.pyc
javing_reading/bookshelf/__pycache__/views.cpython-310.pyc
+0
-0
author_details.html
...reading/bookshelf/templates/bookshelf/author_details.html
+10
-4
authors.html
javing_reading/bookshelf/templates/bookshelf/authors.html
+5
-0
book_details.html
...g_reading/bookshelf/templates/bookshelf/book_details.html
+10
-4
books.html
javing_reading/bookshelf/templates/bookshelf/books.html
+5
-0
home.html
javing_reading/bookshelf/templates/bookshelf/home.html
+6
-0
settings.cpython-310.pyc
...ading/javing_reading/__pycache__/settings.cpython-310.pyc
+0
-0
settings.py
javing_reading/javing_reading/settings.py
+1
-0
background.png
javing_reading/static/background.png
+0
-0
bulletpoint.png
javing_reading/static/bulletpoint.png
+0
-0
style.css
javing_reading/static/style.css
+25
-0
base.html
javing_reading/templates/base.html
+11
-4
No files found.
javing_reading/bookshelf/__pycache__/views.cpython-310.pyc
View file @
ed5ebb70
No preview for this file type
javing_reading/bookshelf/templates/bookshelf/author_details.html
View file @
ed5ebb70
...
...
@@ -3,11 +3,11 @@
{% block content %}
<h1>
{{ object }}
</h1>
<h2>
{{ object.age }}
</h2>
{{ object.nationalism
}}
<br>
{{ object.bio }}
<br>
<br>
<h2>
{{ object.age }}
years old
</h2>
<b>
Nationality:
</b>
{{ object.nationality
}}
<br>
<b>
Biography:
</b>
{{ object.bio }}
<br>
<br>
Books by {{ object }} I love:
<b>
Books by {{ object }} I love:
</b>
<ul>
{% for book in object.booklist.all %}
<li>
...
...
@@ -19,3 +19,9 @@
</ul>
{% endblock %}
{% block table %}
<td><a
href =
'../../home'
>
Home
</a></td>
<td><a
href =
'../../books'
>
Books
</a></td>
<td><a
href =
'../../authors'
>
Authors
</a></td>
{% endblock %}
\ No newline at end of file
javing_reading/bookshelf/templates/bookshelf/authors.html
View file @
ed5ebb70
...
...
@@ -14,3 +14,8 @@
</ul>
{% endblock %}
{% block table %}
<td><a
href =
'../home'
>
Home
</a></td>
<td><a
href =
'../books'
>
Books
</a></td>
{% endblock %}
\ No newline at end of file
javing_reading/bookshelf/templates/bookshelf/book_details.html
View file @
ed5ebb70
...
...
@@ -8,9 +8,15 @@
{{ object.author }}
</a>
</h2>
{{ object.publisher }}
<br>
Published
{{ object.year_published}}
<br>
<br>
ISBN
{{ object.ISBN }}
<br>
<br>
{{ object.blurb }}
<br>
<b>
Publisher:
</b>
{{ object.publisher }}
<br>
<b>
Published
</b>
{{ object.year_published}}
<br>
<br>
<b>
ISBN
</b>
{{ object.ISBN }}
<br>
<br>
<b>
Blurb:
</b>
{{ object.blurb }}
<br>
{% endblock %}
{% block table %}
<td><a
href =
'../../home'
>
Home
</a></td>
<td><a
href =
'../../books'
>
Books
</a></td>
<td><a
href =
'../../authors'
>
Authors
</a></td>
{% endblock %}
\ No newline at end of file
javing_reading/bookshelf/templates/bookshelf/books.html
View file @
ed5ebb70
...
...
@@ -14,3 +14,8 @@
</ul>
{% endblock %}
{% block table %}
<td><a
href =
'../home'
>
Home
</a></td>
<td><a
href =
'../authors'
>
Authors
</a></td>
{% endblock %}
\ No newline at end of file
javing_reading/bookshelf/templates/bookshelf/home.html
View file @
ed5ebb70
{% extends 'base.html' %}
{% load static %}
{% block content %}
<h1>
Welcome to Javi's Database of Favorite Books and Authors!
</h1>
Admittedly, half of the books are dummy data or jokes and the other half are actual books I've read.
I like to think that the jokes are also reflective of my personality though.
{% endblock %}
{% block table %}
<td><a
href =
'../books'
>
Books
</a></td>
<td><a
href =
'../authors'
>
Authors
</a></td>
{% endblock %}
\ No newline at end of file
javing_reading/javing_reading/__pycache__/settings.cpython-310.pyc
View file @
ed5ebb70
No preview for this file type
javing_reading/javing_reading/settings.py
View file @
ed5ebb70
...
...
@@ -122,6 +122,7 @@ USE_TZ = True
# https://docs.djangoproject.com/en/3.2/howto/static-files/
STATIC_URL
=
'/static/'
STATICFILES_DIRS
=
[
os
.
path
.
join
(
BASE_DIR
,
'static'
)]
# Default primary key field type
# https://docs.djangoproject.com/en/3.2/ref/settings/#default-auto-field
...
...
javing_reading/static/background.png
0 → 100644
View file @
ed5ebb70
517 KB
javing_reading/static/bulletpoint.png
0 → 100644
View file @
ed5ebb70
1.04 KB
javing_reading/static/style.css
0 → 100644
View file @
ed5ebb70
h1
{
font-family
:
'Courier New'
;
}
table
{
width
:
100%
;
background-color
:
bisque
;
border
:
2px
solid
;
}
td
{
text-align
:
center
;
padding
:
5px
;
border
:
2px
solid
;
}
ul
{
list-style-image
:
url('bulletpoint.png')
;
}
body
{
background-image
:
url(background.png)
;
background-position
:
right
bottom
;
background-repeat
:
no-repeat
;
}
\ No newline at end of file
javing_reading/templates/base.html
View file @
ed5ebb70
<html
lang=
"en"
>
{% load static %}
<head>
<link
rel=
"stylesheet"
href=
"style.css"
>
<link
rel=
"stylesheet"
href=
" {% static '/style.css' %} "
>
<title>
{% block title %}My Favorite Books and Authors{% endblock %}
</title>
{% block styles %}{% endblock %}
</head>
<body>
<div
id=
"content"
>
{% block content %}{% endblock %}
</div>
{% block scripts %}{% endblock %}
<br>
<table>
<tr>
{% block table %}{% endblock %}
</table>
</tr>
</body>
</html>
\ 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