{% extends "base.html" %}
{% block content %}
<div class="starter-template">
	{% if msg %}
		<div class="alert alert-danger" role="alert">{{msg}}</div>
	{% endif %}
	<legend>Dashboard</legend>
	<div class="alert alert-success">Each STL file saved by support generator, or files placed in NanoSlicer folder gets processed automatically and zip file containing frames of the processed file saved inside the same folder. </div>
	<br>

	<table width="100%">
		<tr><th>File<th>Status</tr>
		{% for file in processing %}
			<tr>
				<td>{{file}}<td>Being Processed
			</tr>
		{% endfor %}
		{% for file in completed %}
			<tr>
				<td>{{file}}<td>Completed
			</tr>
		{% endfor %}
	</table>
</div>
<script>
	setTimeout(function(){
	   window.location.reload(1);
	}, 5000);
</script>
{% endblock %}