<ul>
    {if !$opentask->is_private || $curr_user_id==$opentask->todo_id}
        {include file="r_basic/functionmenuitem.tpl" title=$i.opentasks_curr_ical_download
            icon="ics" action="usComm.windowOpen('{site_url url="/start/open/opentasks/ical/`$right_xjxcookie`/{$opentask->id}"}');"}
        {include file="r_basic/functionmenuitem.tpl" title=$i.basic_edit_addi
            icon="edit_simple" action="basicForm.edit_addi.open('opentasks', '{$opentask->id}');"}
    {/if}
            
    {if $curr_user_id==$opentask->todo_id}
        {if $opentask->is_new}
            {include file="r_basic/functionmenuitem.tpl" title=$i.opentasks_confirm_read
                icon="not_read" action="opentasks.set_read('{$opentask->id}', 1);"}
        {else}
            {include file="r_basic/functionmenuitem.tpl" title=$i.opentasks_set_unread
                icon="read" action="opentasks.set_read('{$opentask->id}', 0);"}
        {/if}
    {/if}

    {if $opentask->is_done}
        {include file="r_basic/functionmenuitem.tpl" title=$i.opentasks_set_notdone
            icon="done" action="opentasks.set_done('{$opentask->id}', 0);"}
    {else}
        {include file="r_basic/functionmenuitem.tpl" title=$i.opentasks_confirm_done
            icon="not_done" action="opentasks.set_done('{$opentask->id}', 1);"}
    {/if}

    {if !$opentask->is_private || $curr_user_id==$opentask->todo_id}
        {include file="r_basic/functionmenuitem.tpl" title=$i.opentasks_duplicate
            icon="copy" action="opentasks.duplicate('{$opentask->id}', true);"}

        {include file="r_basic/functionmenuitem.tpl" title=$i.opentasks_emailsend icon="email"
            action="{emailgroup emails=$opta_emails
                opentask=$opentask type='to'}"}
    {/if}

    {if $opentask->parent_id}
        {include file="r_basic/functionmenuitem.tpl" title=$i.opentasks_view_parent
            icon="parent" action="opentasks.edit('{$opentask->parent_id}');"}
    {/if}
</ul>