<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:py="http://genshi.edgewall.org/"
      xmlns:xi="http://www.w3.org/2001/XInclude">
  <xi:include href="master.html" />
  <xi:include href="misc/paginate.html" />
<head>
	<link rel="stylesheet" type="text/css" media="screen" href="${tg.url('/css/progress.css')}" />
	<title>$model listing</title>
</head>
<body>
	<div id="content" style="margin-left: 20px;">
		<h2>$model Listing</h2>
		<span style="float: right;"><a href="docs">$model Docs</a></span>
	    <a href="new">New</a> $model
	    <span py:if="tmpl_context.paginators and tmpl_context.paginators.value_list.page_count > 1"
		      py:strip="True"
	          py:content="paginate_nav(tmpl_context.paginators.value_list)"/>
			${XML(tmpl_context.widget(value=[line_formater(v) for v in value_list], action='../'+model.lower()+'s.json'))}
	    <span py:if="tmpl_context.paginators and tmpl_context.paginators.value_list.page_count > 1"
		      py:strip="True"
	          py:content="paginate_nav(tmpl_context.paginators.value_list)"/>
	</div>
</body>
</html>
