Skip to content

Instantly share code, notes, and snippets.

@RedGhoul
Created December 9, 2017 17:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RedGhoul/faecb7ca6f2ec12c5720d493ade0ec54 to your computer and use it in GitHub Desktop.
Save RedGhoul/faecb7ca6f2ec12c5720d493ade0ec54 to your computer and use it in GitHub Desktop.
<!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