Commit a790e2ad authored by thisLexic's avatar thisLexic

image of hero in detail page shows up now using direct url to the image

parent 28356ebe
Pipeline #840 failed with stages
{% load static %}
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<title id='title'>Detail - Cloud</title> <title id='title'>Detail - Cloud</title>
</head> </head>
<body> <body>
<img src="./cloud.png" style="width: 10vw;" /> <img src="https://opengameart.org/sites/default/files/styles/medium/public/bigvioletcloud_0.png" style="width: 10vw;" />
<h1 id='heading'>Detail - Cloud</h1> <h1 id='heading'>Detail - Cloud</h1>
<dl> <dl>
<dt>Health Points</dt><dd>600</dd> <dt>Health Points</dt><dd>600</dd>
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<title>Detail - Jester</title> <title>Detail - Jester</title>
</head> </head>
<body> <body>
<img src="./jester.png" style="width: 10vw;"/> <img src="https://opengameart.org/sites/default/files/styles/medium/public/jester.png" style="width: 10vw;"/>
<h1>Detail - Jester</h1> <h1>Detail - Jester</h1>
<dl> <dl>
<dt>Health Points</dt><dd>660</dd> <dt>Health Points</dt><dd>660</dd>
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<title>Detail - Sunflowey</title> <title>Detail - Sunflowey</title>
</head> </head>
<body> <body>
<img src="./sunflowey.png" style="width: 10vw;" /> <img src="https://opengameart.org/sites/default/files/styles/medium/public/sunflower_plant_enemy_game_character_sprites.jpg" style="width: 10vw;" />
<h1>Detail - Sunflowey</h1> <h1>Detail - Sunflowey</h1>
<dl> <dl>
<dt>Health Points</dt><dd>650</dd> <dt>Health Points</dt><dd>650</dd>
......
...@@ -5,21 +5,21 @@ ...@@ -5,21 +5,21 @@
</head> </head>
<body> <body>
<h1><a href="/heroes/cloud" id="cName">Cloud</a></h1> <h1><a href="/hero/cloud" id="cName">Cloud</a></h1>
<dl> <dl>
<dt>Health Points</dt><dd id="cHealth">600</dd> <dt>Health Points</dt><dd id="cHealth">600</dd>
<dt>Base Attack Damage</dt><dd id="cAttack">57</dd> <dt>Base Attack Damage</dt><dd id="cAttack">57</dd>
</dl> </dl>
<h1><a href="/heroes/jester" id="jName">Jester</a></h1> <h1><a href="/hero/jester" id="jName">Jester</a></h1>
<dl> <dl>
<dt>Health Points</dt><dd id="jHealth">660</dd> <dt>Health Points</dt><dd id="jHealth">660</dd>
<dt>Base Attack Damage</dt><dd id="jAttack">64</dd> <dt>Base Attack Damage</dt><dd id="jAttack">64</dd>
</dl> </dl>
<h1><a href="/heroes/sunflowey" id="sName">Sunflowey</a></h1> <h1><a href="/hero/sunflowey" id="sName">Sunflowey</a></h1>
<dl> <dl>
<dt>Health Points</dt><dd id="sHealth">650</dd> <dt>Health Points</dt><dd id="sHealth">650</dd>
<dt>Base Attack Damage</dt><dd id="sAttack">43</dd> <dt>Base Attack Damage</dt><dd id="sAttack">43</dd>
......
import unittest
from django.urls import resolve from django.urls import resolve
from selenium import webdriver from selenium import webdriver
import unittest
from .views import home_page from .views import home_page
......
...@@ -3,7 +3,7 @@ from .views import home_page, cloud, jester, sunflowey ...@@ -3,7 +3,7 @@ from .views import home_page, cloud, jester, sunflowey
urlpatterns = [ urlpatterns = [
url(r'^$', home_page, name = 'home_page'), url(r'^$', home_page, name = 'home_page'),
url(r'^heroes$', home_page, name = 'home_page'), url(r'^heroes/$', home_page, name = 'home_page'),
url(r'^hero/cloud$', cloud, name = 'cloud'), url(r'^hero/cloud$', cloud, name = 'cloud'),
url(r'^hero/jester$', jester, name = 'jester'), url(r'^hero/jester$', jester, name = 'jester'),
url(r'^hero/sunflowey$', sunflowey, name = 'sunflowey'), url(r'^hero/sunflowey$', sunflowey, name = 'sunflowey'),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment