{* * commit.tpl * gitphp: A PHP git repository browser * Component: Commit view template * * Copyright (C) 2009 Christopher Han *}
{* Commit header *} {if $parent} {$title} {if $commitref} {$commitref} {/if} {else} {$title} {/if}
{* Commit data *} {foreach from=$parents item=par} {/foreach}
author {$author}
{$adrfc2822} ({if $adhourlocal < 6}{/if}{$adhourlocal}:{$adminutelocal}{if $adhourlocal < 6}{/if} {$adtzlocal})
committer {$committer}
{$cdrfc2822} ({$cdhourlocal}:{$cdminutelocal} {$cdtzlocal})
commit {$id}
tree {$tree}
parent {$par}
{foreach from=$comment item=line} {$line}
{/foreach}
{if $difftreesize > 11} {$difftreesize} files changed: {/if}
{* Loop and show files changed *} {section name=difftree loop=$difftreelines} {if $difftreelines[difftree].status == "A"} {elseif $difftreelines[difftree].status == "D"} {elseif $difftreelines[difftree].status == "M" || $difftreelines[difftree].status == "T"} {elseif $difftreelines[difftree].status == "R"} {/if} {/section}
{$difftreelines[difftree].file} [new {$difftreelines[difftree].to_filetype}{if $difftreelines[difftree].isreg} with mode: {$difftreelines[difftree].to_mode_cut}{/if}] {$difftreelines[difftree].file} [deleted {$difftreelines[difftree].from_filetype}] {if $difftreelines[difftree].to_id != $difftreelines[difftree].from_id} {$difftreelines[difftree].file} {else} {$difftreelines[difftree].file} {/if} {if $difftreelines[difftree].from_mode != $difftreelines[difftree].to_mode} [changed{$difftreelines[difftree].modechange}]{/if} {$difftreelines[difftree].to_file} [moved from {$difftreelines[difftree].from_file} with {$difftreelines[difftree].similarity}% similarity{$difftreelines[difftree].simmodechg}]