Mercurial > hg > bitsyblog
view bitsyblog/templates/blog.html @ 13:fbf8f198ef67
template additions
author | k0s <k0scist@gmail.com> |
---|---|
date | Wed, 07 Oct 2009 17:19:47 -0400 |
parents | ebe8dc33c871 |
children | 36698624435b |
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>${user} - ${site_name}</title> <py:for each="index, sheet in stylesheets"> <link href="${link(request, ('css', sheet)" type="text/css" rel="${index and 'alternate stylesheet' or 'stylesheet'}" title="sheet.rsplit('.', 1)[0]"/> </py:for> </head> <body> <!-- nav links --> <xi:include href="navigation.html"> <div py:if="n_links == 0 or not len(blog)" class="navigation"> <ul> </ul> </div> <!-- blog entries --> <div py:for="entry in blog" id="${entry.datestamp()}" class="blog-entry"> <a name="${entry.datestamp()}" /> <div class="subject"> <a href="${'foo'}">${subject}</a> <em py:if="entry.privacy == secret and role == 'friend'"> secret </em> </div> ${body} <div py:if="role == 'author'"> <!-- privacy settings --> <form action="TODO" method="post"> <span title="viewable to everyone">public<input checked type="radio" name="privacy" value="public"/></span> <span title="viewable only to your friends">secret<input type="radio" name="privacy" value="secret"/></span> <span title="viewable only to you">private<input type="radio" name="privacy" value="private"/></span> <input type="submit" name="submit" value="Change Privacy" /> </form> <!-- mangled URL --> <div> <span title="${'You can give this URL so people may see this %s post without logging in' % entry.privacy}">Mangled URL:</span> <a href="TODO">${'TODO'}</a> </div> </div> </div> </body> </html>