{!# $Id: templates.sql,v 1.37 2003/07/06 12:50:43 glen Exp $
### Copyright (c)2001-2003, Broadpool, LLC. All rights reserved. See LICENSE.txt for details.
### This stuff generates material for editing a page; it is only
### generated if the current user is an editor of the document
### it generates nothing otherwise.
#!}
{!if editor(doc_owner_id)
    '<div class="edit">
     <p class="editor">
        <a href="{site_path}/edit.php?id={doc_id}">Edit {doc_type_display}</a>
        {sep} <a href="{site_path}/delete.php?id={doc_id}">Delete {doc_type_display}</a>
     </p>
     </div>'
!}