2010-01-15 20:55:30 +00:00
|
|
|
<div id="sidebar">
|
|
|
|
<ul>
|
|
|
|
<li id="search">
|
2010-02-18 07:02:46 +00:00
|
|
|
<form id="searchform" method="get" action="/search">
|
2010-01-15 20:55:30 +00:00
|
|
|
<div>
|
2010-02-22 20:46:35 +00:00
|
|
|
<input type="text" name="q" id="s" size="15" value="${c.querystring}" />
|
2010-01-15 20:55:30 +00:00
|
|
|
<br />
|
2010-02-17 21:10:21 +00:00
|
|
|
<input type="submit" value="Search" />
|
2010-01-15 20:55:30 +00:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</li>
|
|
|
|
<li id="calendar">
|
|
|
|
<h2>Calendar</h2>
|
|
|
|
<div id="calendar_wrap">
|
|
|
|
<%include file="/calendar.mako"/>
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
% if len(c.categories) > 0:
|
|
|
|
<li>
|
|
|
|
<h2>Categories</h2>
|
|
|
|
<ul>
|
|
|
|
% for category in c.categories:
|
2010-01-18 22:29:50 +00:00
|
|
|
<li><a href="${h.url_for(controller='category', action=category.url)}" title="${category.name}">${category.name}</a> (${len(category.posts)}) </li>
|
2010-01-15 20:55:30 +00:00
|
|
|
% endfor
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
% endif
|
2010-03-11 21:18:40 +00:00
|
|
|
<li>
|
2010-03-25 06:05:09 +00:00
|
|
|
<h2>Meta</h2>
|
2010-03-11 21:18:40 +00:00
|
|
|
<ul>
|
|
|
|
% if c.current_user:
|
2010-03-25 06:05:09 +00:00
|
|
|
<li>
|
|
|
|
Account
|
|
|
|
<ul>
|
|
|
|
<li><a href="${h.url_for(controller=u'account')}">My Details</a></li>
|
|
|
|
<li><a href="${h.url_for(controller=u'account', action=u'password')}">My Password</a></li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
% if c.current_user.has_permission([u'Add Posts', u'Add Pages', u'Edit My Posts', u'Edit My Pages']):
|
|
|
|
<li>
|
|
|
|
Content
|
|
|
|
<ul>
|
|
|
|
% if c.current_user.has_permission(u'Add Posts'):
|
|
|
|
<li><a href="${h.url_for(controller=u'post', action=u'new')}">New Post</a></li>
|
2010-03-11 21:18:40 +00:00
|
|
|
% endif
|
2010-03-25 06:05:09 +00:00
|
|
|
% if c.current_user.has_permission(u'Add Pages'):
|
|
|
|
<li><a href="${h.url_for(controller=u'page', action=u'new')}">New Page</a></li>
|
2010-03-11 21:18:40 +00:00
|
|
|
% endif
|
2010-03-25 06:05:09 +00:00
|
|
|
% if c.current_user.has_permission(u'Edit My Posts'):
|
|
|
|
<li><a href="${h.url_for(controller=u'post', action=u'draft')}">Draft Posts</a></li>
|
|
|
|
% endif
|
|
|
|
</ul>
|
|
|
|
</li>
|
2010-03-11 21:18:40 +00:00
|
|
|
% endif
|
|
|
|
<li><a href="${h.url_for(controller=u'account', action=u'logout')}">Logout</a></li>
|
|
|
|
% else:
|
|
|
|
<li><a href="${h.url_for(controller=u'account', action=u'login')}">Login</a></li>
|
|
|
|
% endif
|
|
|
|
</ul>
|
|
|
|
</li>
|
2010-01-15 20:55:30 +00:00
|
|
|
</ul>
|
|
|
|
<div style="clear: both; height: 40px;"> </div>
|
|
|
|
</div>
|