Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
lance_santuyo_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
Lance Dominic B. Santuyo
lance_santuyo_reading
Commits
c3741859
Commit
c3741859
authored
Mar 30, 2023
by
Lance Dominic B. Santuyo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Edited the templates so that they use styles.css
parent
870f109a
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
64 additions
and
26 deletions
+64
-26
author_details.html
...reading/bookshelf/templates/bookshelf/author_details.html
+5
-1
authors.html
...antuyo_reading/bookshelf/templates/bookshelf/authors.html
+13
-7
book_details.html
...o_reading/bookshelf/templates/bookshelf/book_details.html
+9
-2
books.html
..._santuyo_reading/bookshelf/templates/bookshelf/books.html
+15
-8
home.html
...e_santuyo_reading/bookshelf/templates/bookshelf/home.html
+6
-1
base.html
lance_santuyo_reading/templates/base.html
+16
-7
No files found.
lance_santuyo_reading/bookshelf/templates/bookshelf/author_details.html
View file @
c3741859
{% extends 'base.html' %}
{% block title %} {{ author.first_name }} {{ author.last_name }} {% endblock %}
{% block header %} {{ author.first_name }} {{ author.last_name }} {% endblock %}
{% block content %}
<p>
{{ author.age }}
<br>
...
...
@@ -12,11 +14,13 @@
<ul>
{% for work in author.works.all %}
<li>
<a
href=
"{{ work.get_absolute_url }}"
>
{{ work.title }}
</a>
<br>
<a
href=
"{{ work.get_absolute_url }}"
class =
"item"
>
{{ work.title }}
</a>
<br>
</li>
{% endfor %}
</ul>
{% endblock %}
{% block navbar %}
<a
href=
"http://localhost:8000/home/"
>
Home
</a>
<a
href=
"http://localhost:8000/books/"
>
Books
</a>
...
...
lance_santuyo_reading/bookshelf/templates/bookshelf/authors.html
View file @
c3741859
{% extends 'base.html' %}
{% block title %} My Favorite Authors {% endblock %}
{% block header %} Lance's Favorite Authors: {% endblock %}
{% block content %}
<ul>
{% for author in author_list %}
<li>
<a
href=
"{{ author.get_absolute_url }}"
>
{{ author.first_name }} {{ author.last_name }}
</a>
<br>
</li>
{% endfor %}
</ul>
<div
id =
"object_bar"
>
<ul
id =
"object_list"
>
{% for author in author_list %}
<li>
<a
href=
"{{ author.get_absolute_url }}"
class =
"item"
>
{{ author.first_name }} {{ author.last_name }}
</a>
<br>
</li>
{% endfor %}
</ul>
</div>
{% endblock %}
{% block navbar %}
<a
href=
"http://localhost:8000/home/"
>
Home
</a>
<a
href=
"http://localhost:8000/books/"
>
Books
</a>
...
...
lance_santuyo_reading/bookshelf/templates/bookshelf/book_details.html
View file @
c3741859
{% extends 'base.html' %}
{% block title %} {{ books.title }} {% endblock %}
{% block header %} {{ books.title }} {% endblock %}
{% block content %}
<p>
<a
href=
"{{ books.author.get_absolute_url }}"
>
<li>
<a
href=
"{{ books.author.get_absolute_url }}"
class =
"item"
>
{{ books.author.first_name }} {{ books.author.last_name }}
</a>
<br>
</li>
{{ books.publisher }}
<br>
{{ books.year_published }}
<br>
{{ books.ISBN }}
<br>
{{ books.blurb }}
<br>
</p>
{% endblock %}
{% block navbar %}
<a
href=
"http://localhost:8000/home/"
>
Home
</a>
<a
href=
"http://localhost:8000/books/"
>
Books
</a>
<a
href=
"http://localhost:8000/authors/"
>
Authors
</a>
{% endblock %}
{% endblock %}
\ No newline at end of file
lance_santuyo_reading/bookshelf/templates/bookshelf/books.html
View file @
c3741859
{% extends 'base.html' %}
{% block title %} My Favorite Books {% endblock %}
{% block header %} Lance's Favorite Books: {% endblock %}
{% block content %}
<ul>
{% for book in book_list %}
<li>
<a
href=
"{{ book.get_absolute_url }}"
>
{{ book.title }}
</a>
<br>
</li>
{% endfor %}
</ul>
<div
id =
"object_container"
>
<ul
id =
"object_list"
>
{% for book in book_list %}
<li>
<a
href=
"{{ book.get_absolute_url }}"
class =
"item"
>
{{ book.title }}
</a>
<br>
</li>
{% endfor %}
</ul>
</div>
{% endblock %}
{% block navbar %}
<a
href=
"http://localhost:8000/home/"
>
Home
</a>
<a
href=
"http://localhost:8000/authors/"
>
Authors
</a>
{% endblock %}
{% endblock %}
\ No newline at end of file
lance_santuyo_reading/bookshelf/templates/bookshelf/home.html
View file @
c3741859
{% extends 'base.html' %}
{% block title %} My Favorite Books
&
Authors {% endblock %}
{% block header %} Welcome to Lance's Database of Favorite Books and Authors! {% endblock %}
{% block content %}
<p>
Hello, I'm Lance! This is a short collection of my favorite books and authors. While I'm open to most types
of books, I particularly enjoy fantasy books, especially those with magic!
</p>
{% endblock %}
{% block navbar %}
<a
href=
"http://localhost:8000/books/"
>
Books
</a>
<a
href=
"http://localhost:8000/authors/"
>
Authors
</a>
{% endblock %}
{% endblock %}
\ No newline at end of file
lance_santuyo_reading/templates/base.html
View file @
c3741859
<!DOCTYPE html>
{% load static %}
<html
lang=
"en"
>
<link
rel=
"stylesheet"
href=
"{% static 'styles.css' %}"
>
<head>
<title>
{% block title %} Title {% endblock %}
</title>
</head>
<div
id =
"main"
>
<body>
<h1>
{% block header %} Header {% endblock %}
</h1>
<h1>
{% block header %} Header {% endblock %}
</h1>
<body>
{% block content %} Content {% endblock %}
</body>
<div
id =
"content"
>
{% block content %} Content {% endblock %}
</div>
<div
id =
"navbar"
>
{% block navbar %} Navigation bar {% endblock %}
</div>
</body>
</div>
</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