From: <sy...@us...> - 2007-10-11 17:47:10
|
Update of /cvsroot/tikiwiki/tiki/templates In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv20826/templates Modified Files: tiki-show_page.tpl tiki-edit_structure.tpl Log Message: [MOD]structure: can also set a watch from the edit_structure page Index: tiki-show_page.tpl =================================================================== RCS file: /cvsroot/tikiwiki/tiki/templates/tiki-show_page.tpl,v retrieving revision 1.128 retrieving revision 1.129 diff -u -d -r1.128 -r1.129 --- tiki-show_page.tpl 8 Oct 2007 13:28:30 -0000 1.128 +++ tiki-show_page.tpl 11 Oct 2007 17:47:09 -0000 1.129 @@ -49,9 +49,9 @@ {/if} {if $structure == 'y' and $tiki_p_watch_structure eq 'y'} {if $user_watching_structure ne 'y'} - <a href="tiki-index.php?page={$page|escape:"url"}&watch_event=structure_page_changed&watch_object={$page_info.page_ref_id}&watch_action=add_desc&structure={$home_info.pageName|escape:'url'}">{html_image file='pics/icons/eye_arrow_down.png' border='0' alt='{tr}Monitor the Sub-Structure{/tr}' title='{tr}Monitor the Sub-Structure{/tr}'}</a> + <a href="tiki-index.php?page={$page|escape:"url"}&watch_event=structure_changed&watch_object={$page_info.page_ref_id}&watch_action=add_desc&structure={$home_info.pageName|escape:'url'}">{html_image file='pics/icons/eye_arrow_down.png' border='0' alt='{tr}Monitor the Sub-Structure{/tr}' title='{tr}Monitor the Sub-Structure{/tr}'}</a> {else} - <a href="tiki-index.php?page={$page|escape:"url"}&watch_event=structure_page_changed&watch_object={$page_info.page_ref_id}&watch_action=remove_desc&structure={$home_info.pageName|escape:'url'}">{html_image file='pics/icons/no_eye_arrow_down.png' border='0' alt='{tr}Stop Monitoring the Sub-Structure{/tr}' title='{tr}Stop Monitoring the Sub-Structure{/tr}'}</a> + <a href="tiki-index.php?page={$page|escape:"url"}&watch_event=structure_changed&watch_object={$page_info.page_ref_id}&watch_action=remove_desc&structure={$home_info.pageName|escape:'url'}">{html_image file='pics/icons/no_eye_arrow_down.png' border='0' alt='{tr}Stop Monitoring the Sub-Structure{/tr}' title='{tr}Stop Monitoring the Sub-Structure{/tr}'}</a> {/if} {/if} {/if} Index: tiki-edit_structure.tpl =================================================================== RCS file: /cvsroot/tikiwiki/tiki/templates/tiki-edit_structure.tpl,v retrieving revision 1.39 retrieving revision 1.40 diff -u -d -r1.39 -r1.40 --- tiki-edit_structure.tpl 4 Oct 2007 22:17:40 -0000 1.39 +++ tiki-edit_structure.tpl 11 Oct 2007 17:47:10 -0000 1.40 @@ -60,6 +60,13 @@ {if $subtree[ix].flag == 'L'}<img src="pics/icons/lock.png" border="0" height="16" width="16" alt="locked" title="locked by {$subtree[ix].user}" /> {else}<a class="link" href='tiki-editpage.php?page={$subtree[ix].pageName|escape:"url"}'><img border='0' title='{tr}Edit{/tr}' alt='{tr}Edit{/tr}' src='pics/icons/page_edit.png' height='16' width='16' /></a>{/if} {/if} + {if $tiki_p_watch_structure eq 'y'} + {if !$subtree[ix].event} + <a href="tiki-edit_structure.php?page_ref_id={$subtree[ix].page_ref_id}&watch_object={$subtree[ix].page_ref_id}&watch_action=add&page={$subtree[ix].pageName|escape:"url"}">{html_image file='pics/icons/eye_arrow_down.png' border='0' alt='{tr}Monitor the Sub-Structure{/tr}' title='{tr}Monitor the Sub-Structure{/tr}'}</a> + {else} + <a href="tiki-edit_structure.php?page_ref_id={$subtree[ix].page_ref_id}&watch_object={$subtree[ix].page_ref_id}&watch_action=remove">{html_image file='pics/icons/no_eye_arrow_down.png' border='0' alt='{tr}Stop Monitoring the Sub-Structure{/tr}' title='{tr}Stop Monitoring the Sub-Structure{/tr}'}</a> + {/if} + {/if} </td> <td class="heading"> <a class='link' href='tiki-edit_structure.php?page_ref_id={$subtree[ix].page_ref_id}'><b>{$subtree[ix].pageName}{if $subtree[ix].page_alias} ({$subtree[ix].page_alias}){/if}</b></a> @@ -78,6 +85,13 @@ {if $subtree[ix].flag == 'L'}<img src="pics/icons/lock.png" border="0" height="16" width="16" alt="locked" title="locked by {$subtree[ix].user}" /> {else}<a class="link" href='tiki-editpage.php?page={$subtree[ix].pageName|escape:"url"}'><img border='0' title='{tr}Edit{/tr}' alt='{tr}Edit{/tr}' src='pics/icons/page_edit.png' height='16' width='16' /></a>{/if} {/if} + {if $tiki_p_watch_structure eq 'y'} + {if !$subtree[ix].event} + <a href="tiki-edit_structure.php?page_ref_id={$subtree[ix].page_ref_id}&watch_object={$subtree[ix].page_ref_id}&watch_action=add&page={$subtree[ix].pageName|escape:"url"}">{html_image file='pics/icons/eye_arrow_down.png' border='0' alt='{tr}Monitor the Sub-Structure{/tr}' title='{tr}Monitor the Sub-Structure{/tr}'}</a> + {else} + <a href="tiki-edit_structure.php?page_ref_id={$subtree[ix].page_ref_id}&watch_object={$subtree[ix].page_ref_id}&watch_action=remove">{html_image file='pics/icons/no_eye_arrow_down.png' border='0' alt='{tr}Stop Monitoring the Sub-Structure{/tr}' title='{tr}Stop Monitoring the Sub-Structure{/tr}'}</a> + {/if} + {/if} {if $editable == 'y'}<a class='link' href='tiki-edit_structure.php?page_ref_id={$subtree[ix].page_ref_id}&remove={$subtree[ix].page_ref_id}'><img src='pics/icons/cross.png' border='0' alt='{tr}Delete{/tr}' title='{tr}Delete{/tr}' width='16' height='16' style="margin-right:20px;"/></a>{/if} </td> <td {if $page_ref_id eq $subtree[ix].page_ref_id}style="border-style:dotted; border-width:1px; border-color:gray;"{/if}> |