Skip to content
Snippets Groups Projects
Commit 47f13ce2 authored by Joseph Walton-Rivers's avatar Joseph Walton-Rivers
Browse files

use json for tables

parent ffd17ae4
No related branches found
No related tags found
No related merge requests found
Pipeline #
{
"feedback": [
{
"criteria": "thing",
"mark": "?",
"maxMark": 25,
"feedback": ""
"assignments": [
{
"name": "feedback_sheet",
"feedback": [{
"criteria": "thing",
"mark": "?",
"maxMark": 25,
"feedback": ""
}]
}
]
}
{
"assignments": {
"Week 1": [
{
"name": "1",
"topic": "Recap",
"links": {
}
},
{
"name": "2 AM",
"topic": "Proc Gen",
"links": {
}
},
{
"name": "2 PM",
"topic": "Flappy Bird & Practical",
"links": {
}
},
{
"name": "3",
"topic": "Game Design Hack",
"links": {
}
},
{
"name": "4 AM",
"topic": "Game Design Hack",
"links": {
}
},
{
"name": "4 PM",
"topic": "Play Testing",
"links": {
}
},
{
"name": "5",
"topic": "Game Balance and Assignment",
"links": {
}
}
],
"Week 2": [
{
"name": "1",
"topic": "",
"links": {
}
},
{
"name": "2",
"topic": "AI Experiments and candidate games",
"links": {
}
},
{
"name": "3",
"topic": "User Testing",
"links": {
}
},
{
"name": "4",
"topic": "Report & Presnetation",
"links": {
}
},
{
"name": "5 AM",
"topic": "Report & presentation",
"links": {
}
},
{
"name": "5 PM",
"topic": "Group Presentations",
"links": {
}
}
]
}
}
{% extends "_base.html" %}
{% block content %}
<h2>Week 1</h2>
<table class="table table-striped">
<thead>
<tr>
<th>Session</th>
<th>Topic</th>
<th>Downloads</th>
</tr>
</thead>
<tbody>
<tr>
<th>1</td>
<td>Recap</td>
<td>
<ul class="list-inline">
<a href="#">PDF</a>
</ul>
</td>
</tr>
<tr>
<th>2 AM</td>
<td>Prodedural Generation</td>
<td>
<ul class="list-inline">
<a href="#">PDF</a>
</ul>
</td>
</tr>
<tr>
<th>2 PM</td>
<td>Flappy Bird &amp; Pratical</td>
<td>
<ul class="list-inline">
<a href="#">PDF</a>
</ul>
</td>
</tr>
<tr>
<th>3</td>
<td>Game Design Hack</td>
<td>
<ul class="list-inline">
<a href="#">PDF</a>
<a href="#">Starter</a>
</ul>
</td>
</tr>
<tr>
<th>4 AM</td>
<td>Game Design Hack</td>
<td>
<ul class="list-inline">
<a href="#">PDF</a>
</ul>
</td>
</tr>
<tr>
<th>4 PM</td>
<td>Play Testing</td>
<td>
<ul class="list-inline">
<a href="#">PDF</a>
<!-- <a href="#">Games</a> -->
</ul>
</td>
</tr>
<tr>
<th>5</td>
<td>Game Balance and Assignment</td>
<td>
<ul class="list-inline">
<a href="#">PDF</a>
</ul>
</td>
</tr>
</tbody>
</table>
<h2>Week 2</h2>
{% for (key, data) in assignments.items() %}
<h2>{{key}}</h2>
<table class="table table-striped">
<thead>
<tr>
......@@ -96,67 +13,21 @@
</tr>
</thead>
<tbody>
{% for session in data %}
<tr>
<th>1</td>
<td></td>
<td>
<ul class="list-inline">
<a href="#">PDF</a>
</ul>
</td>
</tr>
<tr>
<th>2</td>
<td>AI Experiments &amp; candidate games</td>
<td>
<ul class="list-inline">
<a href="#">PDF</a>
</ul>
</td>
</tr>
<tr>
<th>3</td>
<td>User Testing</td>
<td>
<ul class="list-inline">
<a href="#">PDF</a>
</ul>
</td>
</tr>
<tr>
<th>4</td>
<td>Report &amp; presnetation</td>
<td>
<ul class="list-inline">
<a href="#">PDF</a>
</ul>
</td>
</tr>
<tr>
<th>5 AM</td>
<td>Report &amp; presnetation</td>
<td>
<ul class="list-inline">
<a href="#">PDF</a>
</ul>
</td>
</tr>
<tr>
<th>5 PM</td>
<td>Group Presentations</td>
<th>{{ session.name }}</td>
<td>{{ session.topic }}</td>
<td>
<ul class="list-inline">
<a href="#">PDF</a>
{% for (title, link) in session.links.items() %}
<a href="{{link}}">{{title}}</a>
{% endfor %}
</ul>
</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endfor %}
{% endblock %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment