Mercurial > hg > decoupage
diff 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 diff
--- a/decoupage/templates/index.html Sun Jan 17 19:49:04 2010 -0500 +++ b/decoupage/templates/index.html Mon Feb 08 11:10:54 2010 -0500 @@ -10,10 +10,16 @@ </head> <body> <xi:include py:if="include" href="${include}"/> - <ul> + <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']} + <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>