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
Show 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
from
django.urls
import
path
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
=
[
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
# Create your views here.
def
go_to_home_page
(
request
):
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>
<html>
<head>
<title>
Detail - Cloud
</title>
<title
id =
"cloudTitle"
>
Detail - Cloud
</title>
</head>
<body>
<img
src=
"./cloud.png"
style=
"width: 10vw;"
/>
<h1>
Detail - Cloud
</h1>
<h1
id =
"cloudHeader"
>
Detail - Cloud
</h1>
<dl>
<dt>
Health Points
</dt><dd>
600
</dd>
<dt>
Base Attack Damage
</dt><dd>
57
</dd>
...
...
templates/detail_jester.html
View file @
1f47f006
<!DOCTYPE html>
<html>
<head>
<title>
Detail - Jester
</title>
<title
id =
"jesterTitle"
>
Detail - Jester
</title>
</head>
<body>
<img
src=
"./jester.png"
style=
"width: 10vw;"
/>
<h1>
Detail - Jester
</h1>
<h1
id =
"jesterHeader"
>
Detail - Jester
</h1>
<dl>
<dt>
Health Points
</dt><dd>
660
</dd>
<dt>
Base Attack Damage
</dt><dd>
64
</dd>
...
...
templates/detail_sunflowey.html
View file @
1f47f006
<!DOCTYPE html>
<html>
<head>
<title>
Detail - Sunflowey
</title>
<title
id =
"sunfloweyTitle"
>
Detail - Sunflowey
</title>
</head>
<body>
<img
src=
"./sunflowey.png"
style=
"width: 10vw;"
/>
<h1>
Detail - Sunflowey
</h1>
<h1
id =
sunfloweyHeader
>
Detail - Sunflowey
</h1>
<dl>
<dt>
Health Points
</dt><dd>
650
</dd>
<dt>
Base Attack Damage
</dt><dd>
43
</dd>
...
...
templates/willowisp_home_page.html
View file @
1f47f006
...
...
@@ -9,21 +9,21 @@
<br>
<img
src=
"./cloud.png"
style=
"width: 10vw;"
/>
<
h2
id =
"cloudName"
>
Cloud
</h2
>
<
a
href =
"hero/cloud"
><h2
id =
"cloudName"
>
Cloud
</h2></a
>
<dl>
<dt>
Health Points
</dt><dd
id =
"cloudHealth"
>
600
</dd>
<dt>
Base Attack Damage
</dt><dd
id =
"cloudAttack"
>
57
</dd>
</dl>
<img
src=
"./jester.png"
style=
"width: 10vw;"
/>
<
h2
id =
"jesterName"
>
Jester
</h2
>
<
a
href =
"hero/jester"
><h2
id =
"jesterName"
>
Jester
</h2></a
>
<dl>
<dt>
Health Points
</dt><dd
id =
"jesterHealth"
>
660
</dd>
<dt>
Base Attack Damage
</dt><dd
id =
"jesterAttack"
>
64
</dd>
</dl>
<img
src=
"./sunflowey.png"
style=
"width: 10vw;"
/>
<
h2
id =
"sunfloweyName"
>
Sunflowey
</h2
>
<
a
href =
"hero/sunflowey"
><h2
id =
"sunfloweyName"
>
Sunflowey
</h2></a
>
<dl>
<dt>
Health Points
</dt><dd
id =
"sunfloweyHealth"
>
650
</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