add basic videoob-web frontend

This commit is contained in:
Christophe Benz 2010-04-27 11:32:24 +02:00
commit c39f9d177e
5 changed files with 169 additions and 0 deletions

View file

@ -0,0 +1,16 @@
## -*- coding: utf-8 -*-
<%def name="title()" filter="trim">
Videoob Web
</%def>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
<head>
<title>${self.title()}</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
${next.body()}
</body>
</html>

View file

@ -0,0 +1,20 @@
## -*- coding: utf-8 -*-
<%inherit file="base.mako"/>
<%def name="body()">
<h1>Videoob Web</h1>
<div id="search">
<form action="/" method="get">
<label for="q">Search pattern:</label>
<input id="q" type="text" name="q" value="${form_data['q']}" />
<input type="submit" value="Search" />
</form>
</div>
<div id="results">
% for backend, items in results.iteritems():
<h2>${backend}</h2>
${items}
% endfor
</div>
</%def>