view bitsyblog/templates/blog.html @ 11:ebe8dc33c871

stubbing more markup
author k0s <k0scist@gmail.com>
date Tue, 06 Oct 2009 22:08:12 -0400
parents 93a4557e15c1
children fbf8f198ef67
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 />
    </py:for>

  </head>

  <body>
    <xi:include href="navigation.html">
      
      <div py:for="entry in blog"
           id="${entry.datestamp()}" class="blog-entry">
        <a name="${entry.datestamp()}" />
        
        <div class="subject">
          <a href="TODO">${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>