Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
neptunesy_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
Star Neptune R. Sy
neptunesy_reading
Commits
7b92e6d9
Commit
7b92e6d9
authored
Mar 30, 2023
by
Star Neptune R. Sy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
css is done
parent
42b799e7
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
78 additions
and
34 deletions
+78
-34
urls.cpython-39.pyc
neptunesy_reading/bookshelf/__pycache__/urls.cpython-39.pyc
+0
-0
formatt.css
neptunesy_reading/bookshelf/static/formatt.css
+40
-0
base.html
neptunesy_reading/bookshelf/templates/base.html
+5
-3
authors.html
neptunesy_reading/bookshelf/templates/bookshelf/authors.html
+4
-4
authors_details.html
...eading/bookshelf/templates/bookshelf/authors_details.html
+10
-9
book_detais.html
...sy_reading/bookshelf/templates/bookshelf/book_detais.html
+12
-10
books.html
neptunesy_reading/bookshelf/templates/bookshelf/books.html
+3
-3
booksView.html
...nesy_reading/bookshelf/templates/bookshelf/booksView.html
+2
-2
formatt.css
neptunesy_reading/bookshelf/templates/formatt.css
+0
-3
urls.py
neptunesy_reading/bookshelf/urls.py
+1
-0
settings.cpython-39.pyc
...ing/neptunesy_reading/__pycache__/settings.cpython-39.pyc
+0
-0
settings.py
neptunesy_reading/neptunesy_reading/settings.py
+1
-0
No files found.
neptunesy_reading/bookshelf/__pycache__/urls.cpython-39.pyc
View file @
7b92e6d9
No preview for this file type
neptunesy_reading/bookshelf/static/formatt.css
0 → 100644
View file @
7b92e6d9
body
{
background-color
:
rgb
(
235
,
124
,
84
)
}
#additional
{
padding
:
10px
;
background-color
:
whitesmoke
;
font-family
:
Verdana
,
Geneva
,
Tahoma
,
sans-serif
;
box-shadow
:
0px
2px
10px
0px
rgb
(
80
,
37
,
21
);
margin-left
:
10%
;
margin-right
:
10%
;
text-align
:
center
;
border-style
:
double
;
border-radius
:
5px
;
border-color
:
rgb
(
117
,
54
,
31
);
border-width
:
10px
;
}
div
.content
{
padding
:
10px
;
background-color
:
whitesmoke
;
font-family
:
Verdana
,
Geneva
,
Tahoma
,
sans-serif
;
box-shadow
:
50px
;
margin-left
:
20%
;
margin-right
:
20%
;
text-align
:
center
;
border-style
:
solid
;
border-radius
:
5px
;
border-color
:
rgb
(
117
,
54
,
31
);
border-width
:
2px
;
padding-bottom
:
20px
;
}
a
.navBtn
{
padding
:
10px
;
border-radius
:
5px
;
border-color
:
rgb
(
117
,
54
,
31
);
border-width
:
2px
;
border-style
:
groove
;
}
\ No newline at end of file
neptunesy_reading/bookshelf/templates/base.html
View file @
7b92e6d9
{% load static %}
<head>
<link
rel=
"stylesheet"
href=
"
formatt.css
"
>
<link
rel=
"stylesheet"
href=
"
{% static '/formatt.css' %}
"
>
<title>
{% block title %}{% endblock %}
</title>
</head>
<body>
<h1>
{% block additional %}{% endblock %}
</h1>
<div>
{% block content %}{% endblock %}
</div>
<h1
id=
"additional"
>
{% block additional %}{% endblock %}
</h1>
<div
class=
"content"
>
{% block content %}{% endblock %}
</div>
</body>
neptunesy_reading/bookshelf/templates/bookshelf/authors.html
View file @
7b92e6d9
...
...
@@ -7,12 +7,12 @@
{% block content %}
<ul>
{% for author in object_list %}
<li><a
href=
"{{author.get_absolute_url}}/details/"
>
{{ author.first_name }}{{ author.last_name }}
<li><a
href=
"{{author.get_absolute_url}}/details/"
>
{{ author.first_name }}
{{ author.last_name }}
{% endfor %}
</ul>
<br><br>
<div>
<a
href=
"/home"
>
Home
</a>
<a
href=
"/books"
>
Books
</a>
<a
class=
"navBtn"
href=
"/home"
>
Home
</a>
<a
class=
"navBtn"
href=
"/books"
>
Books
</a>
</div>
{% endblock %}
neptunesy_reading/bookshelf/templates/bookshelf/authors_details.html
View file @
7b92e6d9
...
...
@@ -5,11 +5,11 @@
{% block additional %} {{object.first_name}} {{object.last_name}} {% endblock %}
{% block content%}
<ul>
<li>
{{object.age}}
<li>
{{object.nationality}}
<li>
{{object.bio}}
</ul>
<b>
Age:
</b>
{{object.age}}
<br>
<b>
Nationality:
</b>
{{object.nationality}}
<br>
<b>
Biography:
</b>
{{object.bio}}
<br>
<div>
<p>
Books by {{object.first_name}} {{object.last_name}} I love:
</p>
...
...
@@ -18,10 +18,11 @@
<li>
<a
href=
"/books/{{aBook.get_absolute_url}}/details/"
>
{{aBook.title}}
</a></li>
{% endfor %}
</ul>
<div>
<a
href=
"/home"
>
Home
</a>
<a
href=
"/books"
>
Books
</a>
<a
href=
"/authors"
>
Authors
</a>
\
<br><br>
<div>
<a
class=
"navBtn"
href=
"/home"
>
Home
</a>
<a
class=
"navBtn"
href=
"/books"
>
Books
</a>
<a
class=
"navBtn"
href=
"/authors"
>
Authors
</a>
</div>
</div>
{% endblock %}
neptunesy_reading/bookshelf/templates/bookshelf/book_detais.html
View file @
7b92e6d9
...
...
@@ -5,17 +5,19 @@
{% block additional %} {{ object.title }} {% endblock %}
{% block content %}
<ul>
<li>
{{ object.author }}
</li>
<li>
{{ object.publisher}}
</li>
<li>
{{ object.year_published}}
</li>
<li>
{{ object.ISBN}}
</li>
<li>
{{ object.blurb}}
</li>
</ul>
<b>
Author:
</b>
<a
href=
"/authors/{{object.get_absolute_url}}/details/"
>
{{ object.author }}
</a>
<br>
<b>
Publisher:
</b>
{{ object.publisher}}
<br>
<b>
Year published:
</b>
{{ object.year_published}}
<br>
<b>
ISBN:
</b>
{{ object.ISBN}}
<br>
<b>
Blurb:
</b>
{{ object.blurb}}
<br>
<br><br>
<div>
<a
href=
"/home"
>
Home
</a>
<a
href=
"/books"
>
Books
</a>
<a
href=
"/authors"
>
Authors
</a>
<a
class=
"navBtn"
href=
"/home"
>
Home
</a>
<a
class=
"navBtn"
href=
"/books"
>
Books
</a>
<a
class=
"navBtn"
href=
"/authors"
>
Authors
</a>
{% endblock %}
neptunesy_reading/bookshelf/templates/bookshelf/books.html
View file @
7b92e6d9
...
...
@@ -9,9 +9,9 @@
<li><a
href=
"{{obj.get_absolute_url}}/details/"
>
{{ obj.title }}
</a></li>
{% endfor %}
</ul>
<br><br>
<div>
<a
href=
"/home"
>
Home
</a>
<a
href=
"/authors"
>
Authors
</a>
<a
class=
"navBtn"
href=
"/home"
>
Home
</a>
<a
class=
"navBtn"
href=
"/authors"
>
Authors
</a>
</div>
{% endblock %}
\ No newline at end of file
neptunesy_reading/bookshelf/templates/bookshelf/booksView.html
View file @
7b92e6d9
...
...
@@ -9,7 +9,7 @@
</ol>
<div>
<a
href=
"/home"
>
Home
</a>
<a
href=
"/authors"
>
Authors
</a>
<a
class=
"navBtn"
href=
"/home"
>
Home
</a>
<a
class=
"navBtn"
href=
"/authors"
>
Authors
</a>
</div>
{% endblock %}
\ No newline at end of file
neptunesy_reading/bookshelf/templates/formatt.css
deleted
100644 → 0
View file @
42b799e7
div
.uh
{
}
\ No newline at end of file
neptunesy_reading/bookshelf/urls.py
View file @
7b92e6d9
# bookshelf/urls.py
from
django.urls
import
path
from
.views
import
(
homeView
,
BooksView
,
BooksDetail
,
AuthorView
,
AuthorDetail
)
from
django.conf.urls.static
import
static
urlpatterns
=
[
path
(
'home/'
,
homeView
,
name
=
'home'
),
...
...
neptunesy_reading/neptunesy_reading/__pycache__/settings.cpython-39.pyc
View file @
7b92e6d9
No preview for this file type
neptunesy_reading/neptunesy_reading/settings.py
View file @
7b92e6d9
...
...
@@ -123,6 +123,7 @@ USE_TZ = True
# https://docs.djangoproject.com/en/3.2/howto/static-files/
STATIC_URL
=
'/static/'
STATIC_ROOT
=
os
.
path
.
join
(
BASE_DIR
,
'static'
)
# Default primary key field type
# https://docs.djangoproject.com/en/3.2/ref/settings/#default-auto-field
...
...
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