Mercurial > hg > decoupage
view decoupage/templates/index.html @ 32:983c13e1b71f
included a links formatter; restructure index template
author | k0s <k0scist@gmail.com> |
---|---|
date | Mon, 08 Feb 2010 11:10:54 -0500 |
parents | d2e519a2f13c |
children | e384d4569ac3 |
line wrap: on
line source
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:py="http://genshi.edgewall.org/" xmlns:xi="http://www.w3.org/2001/XInclude"> <head> <title>${title or path}</title> <link py:for="sheet in css" rel="stylesheet" type="text/css" href="${sheet}"/> </head> <body> <xi:include py:if="include" href="${include}"/> <h1 py:if="title">${title}</h1> <ul id="listing"> <li py:if="request.path_info.strip('/')"><a href="..">..</a></li> <li py:for="f in files"> <a href="${f['path']}"> ${f.get('title', f['description']) or f['name']}</a><span py:if="'title' in f and f['description']">: ${f['description']} </span> <span py:if="'links' in f" py:for="link in f['links']" class="link"> <a href="link['link']">${link['text']}</a> </span> </li> </ul> </body> </html>