Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
1
184424-Santos-Lab1-CSCI-40
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
Kirby Ezekiel Santos
184424-Santos-Lab1-CSCI-40
Commits
1f47f006
Commit
1f47f006
authored
Mar 07, 2020
by
Kirby Ezekiel Santos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added the pages for the heroes
parent
4a8109c4
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
24 additions
and
9 deletions
+24
-9
urls.py
heroes/urls.py
+6
-0
views.py
heroes/views.py
+9
-0
detail_cloud.html
templates/detail_cloud.html
+2
-2
detail_jester.html
templates/detail_jester.html
+2
-2
detail_sunflowey.html
templates/detail_sunflowey.html
+2
-2
willowisp_home_page.html
templates/willowisp_home_page.html
+3
-3
No files found.
heroes/urls.py
View file @
1f47f006
...
@@ -2,7 +2,13 @@ from django.contrib import admin
...
@@ -2,7 +2,13 @@ from django.contrib import admin
from
django.urls
import
path
from
django.urls
import
path
from
.views
import
go_to_home_page
from
.views
import
go_to_home_page
from
.views
import
go_to_cloud_page
from
.views
import
go_to_jester_page
from
.views
import
go_to_sunflowey_page
urlpatterns
=
[
urlpatterns
=
[
path
(
'heroes'
,
go_to_home_page
),
path
(
'heroes'
,
go_to_home_page
),
path
(
'hero/cloud'
,
go_to_cloud_page
),
path
(
'hero/jester'
,
go_to_jester_page
),
path
(
'hero/sunflowey'
,
go_to_sunflowey_page
),
]
]
heroes/views.py
View file @
1f47f006
...
@@ -3,3 +3,12 @@ from django.shortcuts import render
...
@@ -3,3 +3,12 @@ from django.shortcuts import render
# Create your views here.
# Create your views here.
def
go_to_home_page
(
request
):
def
go_to_home_page
(
request
):
return
render
(
request
,
"willowisp_home_page.html"
)
return
render
(
request
,
"willowisp_home_page.html"
)
def
go_to_cloud_page
(
request
):
return
render
(
request
,
"detail_cloud.html"
)
def
go_to_jester_page
(
request
):
return
render
(
request
,
"detail_jester.html"
)
def
go_to_sunflowey_page
(
request
):
return
render
(
request
,
"detail_sunflowey.html"
)
templates/detail_cloud.html
View file @
1f47f006
<!DOCTYPE html>
<!DOCTYPE html>
<html>
<html>
<head>
<head>
<title>
Detail - Cloud
</title>
<title
id =
"cloudTitle"
>
Detail - Cloud
</title>
</head>
</head>
<body>
<body>
<img
src=
"./cloud.png"
style=
"width: 10vw;"
/>
<img
src=
"./cloud.png"
style=
"width: 10vw;"
/>
<h1>
Detail - Cloud
</h1>
<h1
id =
"cloudHeader"
>
Detail - Cloud
</h1>
<dl>
<dl>
<dt>
Health Points
</dt><dd>
600
</dd>
<dt>
Health Points
</dt><dd>
600
</dd>
<dt>
Base Attack Damage
</dt><dd>
57
</dd>
<dt>
Base Attack Damage
</dt><dd>
57
</dd>
...
...
templates/detail_jester.html
View file @
1f47f006
<!DOCTYPE html>
<!DOCTYPE html>
<html>
<html>
<head>
<head>
<title>
Detail - Jester
</title>
<title
id =
"jesterTitle"
>
Detail - Jester
</title>
</head>
</head>
<body>
<body>
<img
src=
"./jester.png"
style=
"width: 10vw;"
/>
<img
src=
"./jester.png"
style=
"width: 10vw;"
/>
<h1>
Detail - Jester
</h1>
<h1
id =
"jesterHeader"
>
Detail - Jester
</h1>
<dl>
<dl>
<dt>
Health Points
</dt><dd>
660
</dd>
<dt>
Health Points
</dt><dd>
660
</dd>
<dt>
Base Attack Damage
</dt><dd>
64
</dd>
<dt>
Base Attack Damage
</dt><dd>
64
</dd>
...
...
templates/detail_sunflowey.html
View file @
1f47f006
<!DOCTYPE html>
<!DOCTYPE html>
<html>
<html>
<head>
<head>
<title>
Detail - Sunflowey
</title>
<title
id =
"sunfloweyTitle"
>
Detail - Sunflowey
</title>
</head>
</head>
<body>
<body>
<img
src=
"./sunflowey.png"
style=
"width: 10vw;"
/>
<img
src=
"./sunflowey.png"
style=
"width: 10vw;"
/>
<h1>
Detail - Sunflowey
</h1>
<h1
id =
sunfloweyHeader
>
Detail - Sunflowey
</h1>
<dl>
<dl>
<dt>
Health Points
</dt><dd>
650
</dd>
<dt>
Health Points
</dt><dd>
650
</dd>
<dt>
Base Attack Damage
</dt><dd>
43
</dd>
<dt>
Base Attack Damage
</dt><dd>
43
</dd>
...
...
templates/willowisp_home_page.html
View file @
1f47f006
...
@@ -9,21 +9,21 @@
...
@@ -9,21 +9,21 @@
<br>
<br>
<img
src=
"./cloud.png"
style=
"width: 10vw;"
/>
<img
src=
"./cloud.png"
style=
"width: 10vw;"
/>
<
h2
id =
"cloudName"
>
Cloud
</h2
>
<
a
href =
"hero/cloud"
><h2
id =
"cloudName"
>
Cloud
</h2></a
>
<dl>
<dl>
<dt>
Health Points
</dt><dd
id =
"cloudHealth"
>
600
</dd>
<dt>
Health Points
</dt><dd
id =
"cloudHealth"
>
600
</dd>
<dt>
Base Attack Damage
</dt><dd
id =
"cloudAttack"
>
57
</dd>
<dt>
Base Attack Damage
</dt><dd
id =
"cloudAttack"
>
57
</dd>
</dl>
</dl>
<img
src=
"./jester.png"
style=
"width: 10vw;"
/>
<img
src=
"./jester.png"
style=
"width: 10vw;"
/>
<
h2
id =
"jesterName"
>
Jester
</h2
>
<
a
href =
"hero/jester"
><h2
id =
"jesterName"
>
Jester
</h2></a
>
<dl>
<dl>
<dt>
Health Points
</dt><dd
id =
"jesterHealth"
>
660
</dd>
<dt>
Health Points
</dt><dd
id =
"jesterHealth"
>
660
</dd>
<dt>
Base Attack Damage
</dt><dd
id =
"jesterAttack"
>
64
</dd>
<dt>
Base Attack Damage
</dt><dd
id =
"jesterAttack"
>
64
</dd>
</dl>
</dl>
<img
src=
"./sunflowey.png"
style=
"width: 10vw;"
/>
<img
src=
"./sunflowey.png"
style=
"width: 10vw;"
/>
<
h2
id =
"sunfloweyName"
>
Sunflowey
</h2
>
<
a
href =
"hero/sunflowey"
><h2
id =
"sunfloweyName"
>
Sunflowey
</h2></a
>
<dl>
<dl>
<dt>
Health Points
</dt><dd
id =
"sunfloweyHealth"
>
650
</dd>
<dt>
Health Points
</dt><dd
id =
"sunfloweyHealth"
>
650
</dd>
<dt>
Base Attack Damage
</dt><dd
id =
"sunfloweyAttack"
>
43
</dd>
<dt>
Base Attack Damage
</dt><dd
id =
"sunfloweyAttack"
>
43
</dd>
...
...
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