<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:xi="http://www.w3.org/2001/XInclude"
      xmlns:py="http://genshi.edgewall.org/">
    <xi:include href="layout.html" />

    <head>
        <title>Poll details</title>
    </head>
    <body>
        <h1>Poll: ${poll.title}</h1>
        <ul>
            <li>Author: ${poll.author}</li>
            <li>Created: ${poll.get_creation_time_string()}</li>
            <li>Description: ${poll.description}</li>
            <li>Public URL: <a href="${poll.get_url()}" title="link of this poll">${poll.get_url()}</a></li>
            <li>Administrative URL: <a href="${poll.get_admin_url()}" title="link for managing this poll">${poll.get_admin_url()}</a> (here)</li>
            <li py:if="poll.get_settings()">Settings:<ul>
                <li py:for="key, value in poll.get_settings().items()">${key}: ${value}</li>
            </ul></li>
            <li><a href="${poll.get_edit_url()}" title="edit this poll">Edit this poll</a></li>
            <li><a href="${poll.get_delete_url()}" title="delete this poll">Delete this poll</a></li>
        </ul>
    </body>
</html>