{if not empty($diff_style) and (($old and $new && $old.version !== $new.version) or not empty($diffdata))} {if (not isset($translation_mode) or $translation_mode ne 'y') and empty($hide_version_info)}

{tr _0=$old.version _1=$new.version}Comparing version %0 with version %1{/tr}

{/if}
{if isset($translation_mode) and $translation_mode eq 'n'} {if $old.comment || $new.comment} {/if} {if $old.description != $new.description} {/if} {/if} {if $diff_style eq "sideview"} {/if} {if $smarty.request.oldver_idx + 1 eq $smarty.request.newver_idx or $smarty.request.oldver_idx eq $smarty.request.newver_idx} {else} {/if} {if $diff_style eq 'unidiff'} {/if} {if $diff_style neq 'unidiff' && $diff_style neq 'sideview'} {if $diffdata}{$diffdata}{else}{/if} {/if}
{tr}Version:{/tr} {$old.version}{if $old.version == $info.version} ({tr}Current{/tr}){/if} {tr}Version:{/tr} {$new.version}{if $new.version == $info.version} ({tr}Current{/tr}){/if}
{$old.user|userlink} - {$old.lastModif|tiki_short_datetime} {$new.user|userlink} - {$new.lastModif|tiki_short_datetime}
{if $old.comment}{$old.comment}{else} {/if} {if $new.comment}{$new.comment}{else} {/if}
{if $old.description}{$old.description}{else} {/if} {if $new.description}{$new.description}{else} {/if}
{$old.data}
{$new.data}
{if isset($show_all_versions) and $show_all_versions eq "n"} {pagination_links cant=$ver_cant offset=$smarty.request.bothver_idx offset_arg="bothver_idx" itemname="{tr}Session{/tr}" show_numbers="n"}{/pagination_links} {else} {pagination_links cant=$ver_cant offset=$smarty.request.bothver_idx offset_arg="bothver_idx" itemname="{tr}Version{/tr}" show_numbers="n"}{/pagination_links} {/if} {if isset($show_all_versions) and $show_all_versions eq "n"} {pagination_links cant=$ver_cant offset=$smarty.request.oldver_idx offset_arg="oldver_idx" itemname="{tr}Old Session{/tr}" show_numbers="n"}{/pagination_links} {else} {pagination_links cant=$ver_cant offset=$smarty.request.oldver_idx offset_arg="oldver_idx" itemname="{tr}Old Version{/tr}" show_numbers="n"}{/pagination_links} {/if} {if isset($show_all_versions) and $show_all_versions eq "n"} {pagination_links cant=$ver_cant offset=$smarty.request.newver_idx offset_arg="newver_idx" itemname="{tr}New Session{/tr}" show_numbers="n"}{/pagination_links} {else} {pagination_links cant=$ver_cant offset=$smarty.request.newver_idx offset_arg="newver_idx" itemname="{tr}New Version{/tr}" show_numbers="n"}{/pagination_links} {/if}
{if $diffdata} {section name=ix loop=$diffdata} {if $diffdata[ix].type == "diffheader"} {assign var="oldd" value=$diffdata[ix].old} {assign var="newd" value=$diffdata[ix].new}
@@ {tr}-Lines: {$oldd} changed to +Lines: {$newd}{/tr} @@
{elseif $diffdata[ix].type == "diffdeleted"}
{section name=iy loop=$diffdata[ix].data} {if not $smarty.section.iy.first}
{/if} - {$diffdata[ix].data[iy]} {/section}
{elseif $diffdata[ix].type == "diffadded"}
{section name=iy loop=$diffdata[ix].data} {if not $smarty.section.iy.first}
{/if} + {$diffdata[ix].data[iy]} {/section}
{elseif $diffdata[ix].type == "diffbody"}
{section name=iy loop=$diffdata[ix].data} {if not $smarty.section.iy.first}
{/if} {$diffdata[ix].data[iy]} {/section}
{/if} {/section} {else}
{tr}Versions are identical{/tr}
{/if}
{tr}Versions are identical{/tr}
{if not $hide_example_wikidiff_plugin_syntax} {if $prefs.wikiplugin_wikidiff eq 'y' and $old} {remarksbox type='tip' title='{tr}Example wikidiff plugin syntax{/tr}'} {ldelim}wikidiff object_id="{$page}" oldver="{$old.version}" newver="{$new.version}" diff_style="{$diff_style}" show_version_info="{if empty($hide_version_info)}y{else}n{/if}"{rdelim} {/remarksbox} {/if} {/if} {/if}