This repository has been archived on 2024-11-20. You can view files and clone it, but cannot push or open issues or pull requests.
old-scribeengine/scribeengine/templates/page/view.mako
Raoul Snyman 462d1e6130 - Merged adminmenu and account.
- Added "Add Page" to menu.
- Added "New Page" page.
2010-03-11 23:18:40 +02:00

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>