{title}{tr}Approve page changes in staging:{/tr} {$page|escape}{/title}

<div class="navbar">
	{assign var=thispage value=$page|escape:url}
	{button href="tiki-index.php?page=$thispage" _text="{tr}View page{/tr}"}
</div>

<div class="simplebox highlight">
	{icon _id=accept alt="{tr}Page has been approved{/tr}" style="vertical-align:middle"} {tr}Page has been approved{/tr}
</div>


{if $staging_atts|count >= 1 || $atts|count >=1}
	{if  count($staging_atts) >= 1}
		<h2>{tr}New attachments{/tr}</h2>
		{include file="attachments.tpl" atts=$staging_atts target='_blank' attach_box="n"}
	{/if}
	{if count($atts) >= 1}
		<h2>{tr}Old attachments{/tr}</h2>
		{include file="attachments.tpl" atts=$atts target='_blank'  attach_box="n"}
	{/if}
{/if}

<h2>{tr}History{/tr}</h2>
{tr}Changes from the following versions under staging have been merged into the approved version{/tr} 
<br />
{cycle values="odd,even" print=false}
<table>
<tr>
<th>{tr}Date{/tr}</th>
<th>{tr}User{/tr}</th>
{if $prefs.feature_wiki_history_ip ne 'n'}<th>{tr}IP{/tr}</th>{/if}
<th>{tr}Comment{/tr}</th>
<th>{tr}Version{/tr}</th>
<th>{tr}Action{/tr}</th>
</tr><tr>
<td class="{cycle advance=false}">{$staging_info.lastModif|tiki_short_datetime}</td>
{if $tiki_p_wiki_view_author ne 'n'}<td class="{cycle advance=false}">{$staging_info.user}</td>{/if}
{if $prefs.feature_wiki_history_ip ne 'n'}<td class="{cycle advance=false}">{$staging_info.ip}</td>{/if}
<td class="{cycle advance=false}">{if $staging_info.comment}{$staging_info.comment}{else}&nbsp;{/if}</td>
<td class="{cycle advance=false} button">{$staging_info.version}<br />{tr}Current{/tr}</td>
<td class="{cycle} button">&nbsp;<a class="link" href="tiki-pagehistory.php?page={$staging_page|escape:"url"}&amp;preview={$staging_info.version}" title="{tr}View{/tr}" target="_blank">v</a>
{if $tiki_p_wiki_view_source eq "y" and $prefs.feature_source eq "y"}
&nbsp;<a class="link" href="tiki-pagehistory.php?page={$staging_page|escape:"url"}&amp;source={$staging_info.version}" title="{tr}Source{/tr}" target="_blank">s</a>
{/if}
</td>
{section name=hist loop=$history}
<tr>
<td class="{cycle advance=false}">{$history[hist].lastModif|tiki_short_datetime}</td>
{if $tiki_p_wiki_view_author ne 'n'}<td class="{cycle advance=false}">{$history[hist].user}</td>{/if}
{if $prefs.feature_wiki_history_ip ne 'n'}<td class="{cycle advance=false}">{$history[hist].ip}</td>{/if}
<td class="{cycle advance=false}">{if $history[hist].comment}{$history[hist].comment}{else}&nbsp;{/if}</td>
<td class="{cycle advance=false} button">{$history[hist].version}</td>
<td class="{cycle} button">
&nbsp;<a class="link" href="tiki-pagehistory.php?page={$staging_page|escape:"url"}&amp;preview={$history[hist].version}" title="{tr}View{/tr}" target="_blank">v</a>
{if $tiki_p_wiki_view_source eq "y" and $prefs.feature_source eq "y"}
&nbsp;<a class="link" href="tiki-pagehistory.php?page={$staging_page|escape:"url"}&amp;source={$history[hist].version}" title="{tr}Source{/tr}" target="_blank">s</a>
{/if}
</td>
</tr>
{/section}
</table>
