From: Chris W. <la...@us...> - 2004-10-02 22:38:59
|
Update of /cvsroot/openinteract/OpenInteract2/pkg/base_page/template In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13015/template Modified Files: edit_document_box.tmpl Log Message: OIN-64: ensure that we don't display empty links when we don't have access to a 'page' variable Index: edit_document_box.tmpl =================================================================== RCS file: /cvsroot/openinteract/OpenInteract2/pkg/base_page/template/edit_document_box.tmpl,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** edit_document_box.tmpl 10 Jun 2003 04:17:19 -0000 1.4 --- edit_document_box.tmpl 2 Oct 2004 22:38:34 -0000 1.5 *************** *** 1,6 **** [%- DEFAULT theme = OI.theme_properties; new_url = OI.make_url( ACTION = 'page', ! TASK = 'display_add' ); ! edit_url = OI.make_url( ACTION = 'page', TASK = 'display_form', location = page.location ); --- 1,9 ---- [%- DEFAULT theme = OI.theme_properties; new_url = OI.make_url( ACTION = 'page', ! TASK = 'display_add' ); -%] ! [% theme.bullet %] <a href="[% new_url %]">Create a new document</a><br> ! [% IF page %] ! ! [%- edit_url = OI.make_url( ACTION = 'page', TASK = 'display_form', location = page.location ); *************** *** 12,20 **** TASK = 'display', object_class = page_info.class, ! object_id = page.location ); ! -%] ! [% theme.bullet %] <a href="[% new_url %]">Create a new document</a><br> Following actions apply to the document onscreen<br> [% theme.bullet %] <a href="[% edit_url %]">Edit this document</a><br> [% theme.bullet %] <a href="[% remove_url %]">Remove this document</a><br> [% theme.bullet %] <a href="[% security_url %]">Check document security</a> --- 15,23 ---- TASK = 'display', object_class = page_info.class, ! object_id = page.location ); -%] Following actions apply to the document onscreen<br> [% theme.bullet %] <a href="[% edit_url %]">Edit this document</a><br> [% theme.bullet %] <a href="[% remove_url %]">Remove this document</a><br> [% theme.bullet %] <a href="[% security_url %]">Check document security</a> + + [% END %] \ No newline at end of file |