462d1e6130
- Added "Add Page" to menu. - Added "New Page" page.
13 lines
550 B
Mako
13 lines
550 B
Mako
<%inherit file="/base.mako"/>
|
|
<%include file="/flash.mako"/>
|
|
<div class="page">
|
|
% if c.current_user and c.current_user.id == c.page.user.id and c.current_user.has_permission(u'Edit My Pages'):
|
|
<h2 class="title">${c.page.title} <span class="page-edit">[<a href="${h.url_for(controller=u'page', action=u'edit', id=c.page.id)}">Edit</a>]</span></h2>
|
|
% else:
|
|
<h2 class="title">${c.page.title}</h2>
|
|
% endif
|
|
<div class="entry">
|
|
${h.literal(c.page.body)}
|
|
</div>
|
|
</div>
|
|
|