{* DO NOT EDIT THIS FILE! Use an override template instead. *}
{let content_version=fetch("content","version",hash("object_id",$item.content.content_object_id,"version_id",$item.content.content_object_version,))
     item_text=""
     object_name=cond( and( is_set( $content_version.name ), $content_version.name ),
                       $content_version.name,
                       "The content object %1 [deleted]"|i18n( 'design/standard/collaboration/handler/view/line/ezapprove',,
                                                               array( concat( $item.content.content_object_id ) ) ) )}
{switch match=$item.data_int3}
{case match=0}
    {section show=$item.is_creator}
        {set item_text="%1 awaits approval by editor"|i18n('design/standard/collaboration/handler/view/line/ezapprove',,array(concat("<i>",$object_name|wash,"</i>")))}
    {section-else}
        {set item_text="%1 awaits your approval"|i18n('design/standard/collaboration/handler/view/line/ezapprove',,array(concat("<i>",$object_name|wash,"</i>")))}
    {/section}
{/case}
{case match=1}
    {set item_text="%1 was approved for publishing"|i18n('design/standard/collaboration/handler/view/line/ezapprove',,array(concat("<i>",$object_name|wash,"</i>")))}
{/case}
{case in=array(2,3)}
    {set item_text="%1 was not approved for publishing"|i18n('design/standard/collaboration/handler/view/line/ezapprove',,array(concat("<i>",$object_name|wash,"</i>")))}
{/case}
{case/}
{/switch}
<p class="{$:item_class}"><a class="{$:item_class}" href={concat("collaboration/item/full/",$:item.id)|ezurl}>{$item_text}</a></p>
{/let}