Mercurial > hg > decoupage
comparison 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 |
comparison
equal
deleted
inserted
replaced
26:f306089d6def | 32:983c13e1b71f |
---|---|
8 <title>${title or path}</title> | 8 <title>${title or path}</title> |
9 <link py:for="sheet in css" rel="stylesheet" type="text/css" href="${sheet}"/> | 9 <link py:for="sheet in css" rel="stylesheet" type="text/css" href="${sheet}"/> |
10 </head> | 10 </head> |
11 <body> | 11 <body> |
12 <xi:include py:if="include" href="${include}"/> | 12 <xi:include py:if="include" href="${include}"/> |
13 <ul> | 13 <h1 py:if="title">${title}</h1> |
14 <ul id="listing"> | |
14 <li py:if="request.path_info.strip('/')"><a href="..">..</a></li> | 15 <li py:if="request.path_info.strip('/')"><a href="..">..</a></li> |
15 <li py:for="f in files"> | 16 <li py:for="f in files"> |
16 <a href="${f['path']}">${f.get('title', f['description']) or f['name']}</a><span py:if="'title' in f and f['description']">: ${f['description']} | 17 <a href="${f['path']}"> |
18 ${f.get('title', f['description']) or f['name']}</a><span py:if="'title' in f and f['description']">: ${f['description']} | |
19 </span> | |
20 <span py:if="'links' in f" py:for="link in f['links']" | |
21 class="link"> | |
22 <a href="link['link']">${link['text']}</a> | |
17 </span> | 23 </span> |
18 </li> | 24 </li> |
19 </ul> | 25 </ul> |
20 </body> | 26 </body> |
21 </html> | 27 </html> |