Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CSCI40D Lab 1 Enriquez
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
R E
CSCI40D Lab 1 Enriquez
Commits
f73b2076
Commit
f73b2076
authored
Mar 07, 2020
by
R E
☃
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add heroes pages
parent
efd767f6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
2 deletions
+31
-2
home.html
heroes/templates/home.html
+16
-1
urls.py
heroes/urls.py
+5
-1
views.py
heroes/views.py
+10
-0
No files found.
heroes/templates/home.html
View file @
f73b2076
<!DOCTYPE html>
<html>
<head>
<title>
The Will of the Wisps Wiki
</title>
</head>
<body>
<header><h1>
The Will of the Wisps Wiki
</h1></header>
<ul>
<li><a
href=
"hero/cloud"
>
<h2>
Cloud
</h2></a><dl>
<dt><b>
Health Points
</b>
600
</dt>
<dt><b>
Base Attack Damage
</b>
57
</dt>
</dl></li>
<li><a
href=
"hero/jester"
>
<h2>
Jester
</h2></a><dl>
<dt><b>
Health Points
</b>
660
</dt>
<dt><b>
Base Attack Damage
</b>
64
</dt>
</dl></li>
<li><a
href=
"hero/sunflowey"
>
<h2>
Sunflowey
</h2></a><dl>
<dt><b>
Health Points
</b>
650
</dt>
<dt><b>
Base Attack Damage
</b>
43
</dt>
</dl></li>
</ul>
</body>
</html>
\ No newline at end of file
heroes/urls.py
View file @
f73b2076
from
django.conf.urls
import
url
from
.views
import
HomeView
from
.views
import
HomeView
,
CloudView
,
JesterView
,
SunfloweyView
urlpatterns
=
[
url
(
r'^$'
,
HomeView
.
as_view
(),
name
=
'home'
),
url
(
r'^heroes$'
,
HomeView
.
as_view
(),
name
=
'home'
),
url
(
r'^hero/cloud$'
,
CloudView
.
as_view
(),
name
=
'cloud'
),
url
(
r'^hero/jester$'
,
JesterView
.
as_view
(),
name
=
'jester'
),
url
(
r'^hero/sunflowey$'
,
SunfloweyView
.
as_view
(),
name
=
'sunflowey'
),
]
heroes/views.py
View file @
f73b2076
...
...
@@ -2,3 +2,13 @@ from django.views.generic.base import TemplateView
class
HomeView
(
TemplateView
):
template_name
=
'home.html'
class
CloudView
(
TemplateView
):
template_name
=
'detail_cloud.html'
class
JesterView
(
TemplateView
):
template_name
=
'detail_jester.html'
class
SunfloweyView
(
TemplateView
):
template_name
=
'detail_sunflowey.html'
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