Created
December 9, 2017 17:18
-
-
Save RedGhoul/faecb7ca6f2ec12c5720d493ade0ec54 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
{% load staticfiles %} | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Django Level Two</title> | |
<link rel="stylesheet" href="{% static "css/mystyle.css" %}"/> | |
</head> | |
<body> | |
<h1>YOLO LIFE</h1> | |
<h1>Here are your acces records</h1> | |
<div class="djangotwo"> | |
{% if access_records %} | |
<table> | |
<thead> | |
<th>Site Name</th> | |
<th>Date Accessed</th> | |
</thead> | |
{% for acc in access_records %} | |
<tr> | |
<td> | |
{{ acc.name }} | |
</td> | |
<td> | |
{{ acc.date }} | |
</td> | |
</tr> | |
{% endfor %} | |
</table> | |
{% else %} | |
<p>NO ACCESS RECORDS FOUND</p> | |
{% endif %} | |
</div> | |
<img src="{% static "images/b.jpg" %}" alt="Uh Oh, didn't show !"> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment