Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
esguerra_lab1
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
James Esguerra
esguerra_lab1
Commits
576f6251
Commit
576f6251
authored
Mar 16, 2021
by
James Esguerra
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added function to render 'key' template
parent
f995d5a7
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
30 additions
and
7 deletions
+30
-7
urls.cpython-38.pyc
pages/__pycache__/urls.cpython-38.pyc
+0
-0
views.cpython-38.pyc
pages/__pycache__/views.cpython-38.pyc
+0
-0
urls.py
pages/urls.py
+2
-1
views.py
pages/views.py
+4
-0
base.html
templates/base.html
+5
-5
home2.html
templates/home2.html
+1
-1
key.html
templates/key.html
+18
-0
No files found.
pages/__pycache__/urls.cpython-38.pyc
View file @
576f6251
No preview for this file type
pages/__pycache__/views.cpython-38.pyc
View file @
576f6251
No preview for this file type
pages/urls.py
View file @
576f6251
...
@@ -4,5 +4,6 @@ from . import views
...
@@ -4,5 +4,6 @@ from . import views
urlpatterns
=
[
urlpatterns
=
[
path
(
'home/'
,
views
.
ShowHome
,
name
=
'home'
),
path
(
'home/'
,
views
.
ShowHome
,
name
=
'home'
),
path
(
'profile/'
,
views
.
ShowProfile
,
name
=
'profile'
)
path
(
'profile/'
,
views
.
ShowProfile
,
name
=
'profile'
),
path
(
'key/'
,
views
.
ShowKey
,
name
=
'key'
)
]
]
pages/views.py
View file @
576f6251
...
@@ -17,3 +17,7 @@ def ShowHome(request):
...
@@ -17,3 +17,7 @@ def ShowHome(request):
def
ShowProfile
(
request
):
def
ShowProfile
(
request
):
return
render
(
request
,
'profile.html'
,
{
'name'
:
name
})
return
render
(
request
,
'profile.html'
,
{
'name'
:
name
})
def
ShowKey
(
request
):
return
render
(
request
,
'key.html'
)
templates/base.html
View file @
576f6251
...
@@ -14,19 +14,19 @@
...
@@ -14,19 +14,19 @@
<br>
<br>
<div
id=
'navbar'
>
<div
id=
'navbar'
>
<div>
<div>
<a
href=
'/home'
>
Home
</a>
<a
href=
'/home'
>
Home
</a>
</div>
</div>
<div>
<div>
<a
href=
'/profile'
>
Profile
</a>
<a
href=
'/profile'
>
Profile
</a>
</div>
</div>
<div>
<div>
<a
href=
'/key'
>
Key
</a>
<a
href=
'/key'
>
Key
</a>
</div>
</div>
<div>
<div>
<a
href=
'/this_week'
>
This Week
</a>
<a
href=
'/this_week'
>
This Week
</a>
</div>
</div>
<div>
<div>
<a
href=
'/today'
>
Today
</a>
<a
href=
'/today'
>
Today
</a>
</div>
</div>
</div>
</div>
</header>
</header>
...
...
templates/home2.html
View file @
576f6251
...
@@ -6,6 +6,6 @@
...
@@ -6,6 +6,6 @@
{% block content %}
{% block content %}
<h1>
Hello, {{ name }}! Today is going to be a great day!
</h1>
<h1>
Hello, {{ name }}! Today is going to be a great day!
</h1>
{% endblock %}
{% endblock %}
templates/key.html
0 → 100644
View file @
576f6251
{% extends 'base.html' %}
{% block title %} Key {% endblock %}
{% block header %} Key {% endblock %}
{% block content %}
<p>
• Tasks: things to do
</p>
<p>
- Notes: things you don't want to forget
</p>
<p>
○ Events: noteworth moments in time
</p>
<br>
<p>
• Task incomplete
</p>
<p>
X Task complete
</p>
{% endblock %}
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