Mercurial > hg > decoupage
changeset 11:fad6fa9037a5
template improvements
author | k0s <k0scist@gmail.com> |
---|---|
date | Fri, 25 Dec 2009 01:11:38 -0500 |
parents | a328cc9d2c74 |
children | 9f91acf9874c |
files | decoupage/templates/index.html |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/decoupage/templates/index.html Fri Dec 25 01:03:06 2009 -0500 +++ b/decoupage/templates/index.html Fri Dec 25 01:11:38 2009 -0500 @@ -10,8 +10,10 @@ <body> <ul> <li py:if="request.path_info.strip('/')"><a href="..">..</a></li> - <li py:for="f in files"><a href="${f['path']}">${f['description'] or f['name']}</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> + </li> </ul> </body> </html>