{% extends "layout.html" %}
{% block head %}
	{{ super() }}
	<title>{{ site_name }} - Poll #{{ pid }} results</title>
{% endblock %}
{% block body %}
<div id="container">
	<h1>{{ title }}</h1>
    <div id="barcontainer">
		{% for id, q in q_dict.items() %}
		<div>{{ q }}</div>
		<div id="bar" style="width: {{ resp_dict.get(id, 0) }}%;">{{ resp_dict.get(id, 0) }}%</div>
		{% endfor %}
    </div>
    <h1>{{ total_votes }} vote(s)</h1>
</div>
{% endblock %}
