{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}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} | {else}{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}|||||
|
{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}
{elseif $diffdata[ix].type == "diffadded"}
{/if} - {$diffdata[ix].data[iy]} {/section}
{section name=iy loop=$diffdata[ix].data}
{if not $smarty.section.iy.first}
{elseif $diffdata[ix].type == "diffbody"}
{/if} + {$diffdata[ix].data[iy]} {/section}
{section name=iy loop=$diffdata[ix].data}
{if not $smarty.section.iy.first}
{/if}
{/section}
{else}
{/if} {$diffdata[ix].data[iy]} {/section} {tr}Versions are identical{/tr}
{/if}
|
|||||||
| {tr}Versions are identical{/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}