Source

Chronr / chronr / chronr / templates / base / base-index.mako

## -*- coding: utf-8 -*-
<?xml version="1.0" encoding="UTF-8"?>
<!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" xml:lang="en">
<head>
  <title>Chronr - ${self.title()}</title>
  <link rel="stylesheet" type="text/css" media="screen" href="${url('/css/style.css')}" />
  <link rel="apple-touch-icon" href="/images/apple-touch-icon.png" />

  ${self.head()}
</head>

<body>
  <div id="header">
    <a href="/"><div id="banner"></div></a>
    <div id="pageLogin">
    % if h.user():
        Welcome <a href="/people/${h.user().user_name}">${h.user().display_name or h.user().user_name}</a>.
        <a href="/account/logout">Logout</a> 
    % else:
      <a href="/account/register">Register</a> |
      <a href="/account/login?came_from=${h.url_for()}">Login</a>
    % endif
    </div>  <!-- id="user_login" -->
    <span class="banner_text">Shared Event Engine</span>
  </div>  <!-- id="header" -->

  <div class="clearingdiv" />
  
  ${h.flash.render("flash_container")|n}

  ${next.body()}

  <div id="footer">
    <p><a href="/about">About</a> | <a href="http://dev.chronr.com/">Developers</a></p>
    <p>Copyright &copy; 2008-2009 <a href="http://chrismiles.info/">Chris Miles</a>. All rights reserved.</p>
    <p>Version ?</p>
  </div>  <!-- id="footer" -->

  <script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
  </script>
  <script type="text/javascript">
  _uacct = "UA-121474-5";
  urchinTracker();
  </script>
</body>

<%def name="head()"></%def>