Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
sharmchua_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
Sharmaine Chua
sharmchua_reading
Commits
e8fa2405
Commit
e8fa2405
authored
Mar 30, 2023
by
Sharmaine Chua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added css file and added bg color in base.html
parent
a434192c
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
78 additions
and
42 deletions
+78
-42
author_details.html
...reading/bookshelf/templates/bookshelf/author_details.html
+16
-11
authors.html
sharmchua_reading/bookshelf/templates/bookshelf/authors.html
+12
-8
book_details.html
...a_reading/bookshelf/templates/bookshelf/book_details.html
+14
-10
books.html
sharmchua_reading/bookshelf/templates/bookshelf/books.html
+10
-6
home.html
sharmchua_reading/bookshelf/templates/bookshelf/home.html
+8
-6
style.css
sharmchua_reading/static/css/style.css
+17
-0
base.html
sharmchua_reading/templates/base.html
+1
-1
No files found.
sharmchua_reading/bookshelf/templates/bookshelf/author_details.html
View file @
e8fa2405
...
@@ -9,8 +9,11 @@
...
@@ -9,8 +9,11 @@
Nationality: {{ object.nationality }}
<br>
Nationality: {{ object.nationality }}
<br>
Bio:
<br>
Bio:
<br>
{{ object.bio }}
<br>
<br>
{{ object.bio }}
<br>
<br>
</h3>
<h2>
Books by {{ object }} I love:
<br>
Books by {{ object }} I love:
<br>
</h2>
<h3>
{% for books in object.books_set.all %}
{% for books in object.books_set.all %}
<a
href=
"{{ books.get_absolute_url }}"
>
<a
href=
"{{ books.get_absolute_url }}"
>
<li>
<li>
...
@@ -22,14 +25,16 @@
...
@@ -22,14 +25,16 @@
{# the links to other html files #}
{# the links to other html files #}
<center>
<center>
<div
class=
"btn"
>
<a
href=
"../../home"
>
<a
href=
"../../home"
>
<button
type=
"button"
>
Home
</button>
<button
type=
"button"
><p>
Home
</p>
</button>
</a>
</a>
<a
href=
"../../books"
>
<a
href=
"../../books"
>
<button
type=
"button"
>
Books
</button>
<button
type=
"button"
><p>
Books
</p>
</button>
</a>
</a>
<a
href=
"../../authors"
>
<a
href=
"../../authors"
>
<button
type=
"button"
>
Authors
</button>
<button
type=
"button"
><p>
Authors
</p>
</button>
</a>
</a>
</div>
</center>
</center>
{% endblock %}
{% endblock %}
\ No newline at end of file
sharmchua_reading/bookshelf/templates/bookshelf/authors.html
View file @
e8fa2405
...
@@ -4,22 +4,26 @@
...
@@ -4,22 +4,26 @@
{% block content %}
{% block content %}
<h1>
Sharm's Favorite Authors:
</h1>
<h1>
Sharm's Favorite Authors:
</h1>
{% for object in object_list %}
{% for object in object_list %}
<p>
<a
href=
"{{ object.get_absolute_url }}"
>
<a
href=
"{{ object.get_absolute_url }}"
>
<li>
<li>
{{ object }}
{{ object }}
</li>
</li>
</a>
</a>
</p>
{% endfor %}
{% endfor %}
<br><br><br>
<br><br><br>
{# the links to other html files #}
{# the links to other html files #}
<div
class=
"btn"
>
<center>
<center>
<a
href=
"../home"
>
<a
href=
"../home"
>
<button
type=
"button"
>
Home
</button>
<button
type=
"button"
><p>
Home
</p>
</button>
</a>
</a>
<a
href=
"../books"
>
<a
href=
"../books"
>
<button
type=
"button"
>
Books
</button>
<button
type=
"button"
><p>
Books
</p>
</button>
</a>
</a>
</center>
</center>
</div>
{% endblock %}
{% endblock %}
\ No newline at end of file
sharmchua_reading/bookshelf/templates/bookshelf/book_details.html
View file @
e8fa2405
...
@@ -4,12 +4,14 @@
...
@@ -4,12 +4,14 @@
{% block title %} {{ object.title }} {% endblock %}
{% block title %} {{ object.title }} {% endblock %}
{% block content %}
{% block content %}
<h1>
{{ object.title }}
</h1>
<h1>
{{ object.title }}
</h1>
<h
3
>
<h
2
>
by
by
<a
href =
{{
object
.
author
.
get_absolute_url
}}
>
<a
href =
{{
object
.
author
.
get_absolute_url
}}
>
{{ object.author }}
{{ object.author }}
</a>
</a>
<br>
<br>
</h2>
<h3>
Publisher: {{ object.publisher }}
<br>
Publisher: {{ object.publisher }}
<br>
Year Published: {{ object.year_published }}
<br>
Year Published: {{ object.year_published }}
<br>
ISBN: {{ object.ISBN }}
<br>
ISBN: {{ object.ISBN }}
<br>
...
@@ -18,14 +20,16 @@
...
@@ -18,14 +20,16 @@
{# the links to other html files #}
{# the links to other html files #}
<center>
<center>
<div
class=
"btn"
>
<a
href=
"../../home"
>
<a
href=
"../../home"
>
<button
type=
"button"
>
Home
</button>
<button
type=
"button"
><p>
Home
</p>
</button>
</a>
</a>
<a
href=
"../../books"
>
<a
href=
"../../books"
>
<button
type=
"button"
>
Books
</button>
<button
type=
"button"
><p>
Books
</p>
</button>
</a>
</a>
<a
href=
"../../authors"
>
<a
href=
"../../authors"
>
<button
type=
"button"
>
Authors
</button>
<button
type=
"button"
><p>
Authors
</p>
</button>
</a>
</a>
</div>
</center>
</center>
{% endblock %}
{% endblock %}
\ No newline at end of file
sharmchua_reading/bookshelf/templates/bookshelf/books.html
View file @
e8fa2405
...
@@ -10,22 +10,26 @@
...
@@ -10,22 +10,26 @@
{% block content %}
{% block content %}
<h1>
Sharm's Favorite Books:
</h1>
<h1>
Sharm's Favorite Books:
</h1>
{% for object in object_list %}
{% for object in object_list %}
<p>
<a
href=
"{{ object.get_absolute_url }}"
>
<a
href=
"{{ object.get_absolute_url }}"
>
<li>
<li>
{{ object.title }}
{{ object.title }}
</li>
</li>
</a>
</a>
</p>
{% endfor %}
{% endfor %}
<br><br><br>
<br><br><br>
{# the links to other html files #}
{# the links to other html files #}
<center>
<center>
<div
class =
btn""
>
<a
href=
"../home"
>
<a
href=
"../home"
>
<button
type=
"button"
>
Home
</button>
<button
type=
"button"
><p>
Home
</p>
</button>
</a>
</a>
<a
href=
"../authors"
>
<a
href=
"../authors"
>
<button
type=
"button"
>
Authors
</button>
<button
type=
"button"
><p>
Authors
</p>
</button>
</a>
</a>
</div
"
>
</center>
</center>
{% endblock %}
{% endblock %}
\ No newline at end of file
sharmchua_reading/bookshelf/templates/bookshelf/home.html
View file @
e8fa2405
...
@@ -11,11 +11,13 @@
...
@@ -11,11 +11,13 @@
<br><br><br><br><br>
<br><br><br><br><br>
{# the links to other html files #}
{# the links to other html files #}
<div
class =
"btn"
>
<a
href=
"../books"
>
<a
href=
"../books"
>
<button
type=
"button"
>
Books
</button>
<button
type=
"button"
><p>
Books
</p>
</button>
</a>
</a>
<a
href=
"../authors"
>
<a
href=
"../authors"
>
<button
type=
"button"
>
Authors
</button>
<button
type=
"button"
><p>
Authors
</p>
</button>
</a>
</a>
</div>
</center>
</center>
{% endblock %}
{% endblock %}
\ No newline at end of file
sharmchua_reading/static/css/style.css
0 → 100644
View file @
e8fa2405
h1
{
font-family
:
"Lucida Sans"
,
"Lucida Sans Regular"
,
"Lucida Grande"
,
"Lucida Sans Unicode"
,
Geneva
,
Verdana
,
sans-serif
;
color
:
#afcaff
;
}
h2
{
font-family
:
"Lucida Sans"
,
"Lucida Sans Regular"
,
"Lucida Grande"
,
"Lucida Sans Unicode"
,
Geneva
,
Verdana
,
sans-serif
;
}
h3
{
font-family
:
"Lucida Sans"
,
"Lucida Sans Regular"
,
"Lucida Grande"
,
"Lucida Sans Unicode"
,
Geneva
,
Verdana
,
sans-serif
;
}
p
{
font-family
:
"Lucida Sans"
,
"Lucida Sans Regular"
,
"Lucida Grande"
,
"Lucida Sans Unicode"
,
Geneva
,
Verdana
,
sans-serif
;
}
\ No newline at end of file
sharmchua_reading/templates/base.html
View file @
e8fa2405
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<link
rel=
"stylesheet"
href=
"style.css"
>
<link
rel=
"stylesheet"
href=
"style.css"
>
<title>
{% block title %}My Favorite Books and Authors{% endblock %}
</title>
<title>
{% block title %}My Favorite Books and Authors{% endblock %}
</title>
</head>
</head>
<body>
<body
style =
"background-color: #8ecced;"
>
<div
id=
"content"
>
<div
id=
"content"
>
{% block content %}{% endblock %}
{% block content %}{% endblock %}
</div>
</div>
...
...
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