2010-01-15 20:55:30 +00:00
|
|
|
<!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">
|
|
|
|
<head>
|
|
|
|
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
|
|
|
<title>${c.page_title}</title>
|
|
|
|
<meta name="keywords" content="" />
|
|
|
|
<meta name="description" content="" />
|
2010-01-27 07:26:47 +00:00
|
|
|
<link href="${h.url_for(controller=u'feed', action=u'atom')}" type="application/atom+xml" rel="alternate" title="Sitewide ATOM Feed" />
|
|
|
|
<link href="${h.url_for(controller=u'feed', action=u'rss')}" type="application/rss+xml" rel="alternate" title="Sitewide RSS Feed" />
|
2010-01-18 21:15:24 +00:00
|
|
|
<link href="${h.url_for('/styles/style.css')}" rel="stylesheet" type="text/css" media="screen" />
|
2010-01-21 21:40:15 +00:00
|
|
|
% for script in c.scripts:
|
|
|
|
<script src="/scripts/${script}" type="text/javascript"></script>
|
|
|
|
% endfor
|
|
|
|
% if c.jsvalidation:
|
|
|
|
<script src="/scripts/${c.jsvalidation}" type="text/javascript"></script>
|
|
|
|
% endif
|
|
|
|
% if c.jsinit:
|
|
|
|
<script src="/scripts/${c.jsinit}" type="text/javascript"></script>
|
|
|
|
% endif
|
2010-01-15 20:55:30 +00:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div id="header">
|
|
|
|
<h1><a href="${h.url_for('/')}" title="${c.blog_title}">${c.blog_title}</a></h1>
|
|
|
|
<h2>${c.blog_slogan}</h2>
|
|
|
|
</div>
|
|
|
|
<div id="menu">
|
|
|
|
<ul>
|
|
|
|
<li><a href="${h.url_for('/')}">Home</a></li>
|
|
|
|
% for page in c.pages:
|
|
|
|
<li><a href="${page.url}">${page.name}</a></li>
|
|
|
|
% endfor
|
2010-01-18 20:16:46 +00:00
|
|
|
% if c.current_user:
|
2010-01-19 20:44:25 +00:00
|
|
|
% if c.current_user.has_permission('Add Posts'):
|
2010-02-06 22:03:29 +00:00
|
|
|
<li><a href="${h.url_for(controller=u'post', action=u'new')}">New Post</a></li>
|
|
|
|
<li><a href="${h.url_for(controller=u'post', action=u'draft')}">Draft Posts</a></li>
|
2010-01-19 20:44:25 +00:00
|
|
|
% endif
|
2010-02-06 22:03:29 +00:00
|
|
|
<li><a href="${h.url_for(controller=u'account', action=u'logout')}">Logout</a></li>
|
2010-01-31 13:45:20 +00:00
|
|
|
<li>Logged in as <em>${c.current_user.nick}</em></li>
|
2010-01-18 20:16:46 +00:00
|
|
|
% else:
|
2010-02-06 22:03:29 +00:00
|
|
|
<li><a href="${h.url_for(controller=u'account', action=u'login')}">Login</a></li>
|
2010-01-18 20:16:46 +00:00
|
|
|
% endif
|
2010-01-15 20:55:30 +00:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
<hr />
|
|
|
|
<div id="page">
|
|
|
|
<div id="content">
|
|
|
|
${next.body()}
|
|
|
|
</div>
|
|
|
|
<%include file="/sidebar.mako"/>
|
|
|
|
<div style="clear: both;"> </div>
|
|
|
|
</div>
|
|
|
|
<hr />
|
|
|
|
<div id="footer">
|
|
|
|
<p>Copyright © 2010 Raoul and Hannah Snyman. Powered by ScribeEngine. Design by <a href="http://www.freecsstemplates.org/">Free CSS Templates</a>.</p>
|
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html>
|