Switch to gettext for i18n
[gitphp.git] / templates / blame.tpl
blob:a/templates/blame.tpl -> blob:b/templates/blame.tpl
{* {*
* blame.tpl * blame.tpl
* gitphp: A PHP git repository browser * gitphp: A PHP git repository browser
* Component: Blame view template * Component: Blame view template
* *
* Copyright (C) 2010 Christopher Han <xiphux@gmail.com> * Copyright (C) 2010 Christopher Han <xiphux@gmail.com>
*} *}
   
{include file='header.tpl'} {include file='header.tpl'}
   
<div class="page_nav"> <div class="page_nav">
{include file='nav.tpl' treecommit=$commit} {include file='nav.tpl' treecommit=$commit}
<br /> <br />
<a href="{$SCRIPT_NAME}?p={$project->GetProject()|urlencode}&a=blob_plain&h={$blob->GetHash()}&f={$blob->GetPath()}">{$resources->GetResource('plain')}</a> | <a href="{$SCRIPT_NAME}?p={$project->GetProject()|urlencode}&a=blob_plain&h={$blob->GetHash()}&f={$blob->GetPath()}">{t}plain{/t}</a> |
{if $commit->GetHash() != $head->GetHash()} {if $commit->GetHash() != $head->GetHash()}
<a href="{$SCRIPT_NAME}?p={$project->GetProject()|urlencode}&a=blame&hb=HEAD&f={$blob->GetPath()}">{$resources->GetResource('HEAD')}</a> <a href="{$SCRIPT_NAME}?p={$project->GetProject()|urlencode}&a=blame&hb=HEAD&f={$blob->GetPath()}">{t}HEAD{/t}</a>
{else} {else}
{$resources->GetResource('HEAD')} {t}HEAD{/t}
{/if} {/if}
| blame | blame
<br /> <br />
</div> </div>
   
{include file='title.tpl' titlecommit=$commit} {include file='title.tpl' titlecommit=$commit}
   
{include file='path.tpl' pathobject=$blob target='blob'} {include file='path.tpl' pathobject=$blob target='blob'}
<div class="page_body"> <div class="page_body">
{if $geshi} {if $geshi}
{$geshihead} {$geshihead}
<td class="ln de1" id="blameData"> <td class="ln de1" id="blameData">
{include file='blamedata.tpl'} {include file='blamedata.tpl'}
</td> </td>
{$geshibody} {$geshibody}
{$geshifoot} {$geshifoot}
{else} {else}
<table class="code"> <table class="code">
{foreach from=$blob->GetData(true) item=blobline name=blob} {foreach from=$blob->GetData(true) item=blobline name=blob}
{assign var=blamecommit value=$blame[$smarty.foreach.blob.iteration]} {assign var=blamecommit value=$blame[$smarty.foreach.blob.iteration]}
{if $blamecommit} {if $blamecommit}
{cycle values="light,dark" assign=rowclass} {cycle values="light,dark" assign=rowclass}
{/if} {/if}
<tr class="{$rowclass}"> <tr class="{$rowclass}">
<td class="date"> <td class="date">
{if $blamecommit} {if $blamecommit}
<a href="{$SCRIPT_NAME}?p={$project->GetProject()|urlencode}&a=commit&h={$blamecommit->GetHash()}" title="{$blamecommit->GetTitle()}" class="commitTip">{$blamecommit->GetAuthorEpoch()|date_format:"%F %X"}</a> <a href="{$SCRIPT_NAME}?p={$project->GetProject()|urlencode}&a=commit&h={$blamecommit->GetHash()}" title="{$blamecommit->GetTitle()}" class="commitTip">{$blamecommit->GetAuthorEpoch()|date_format:"%F %X"}</a>
{/if} {/if}
</td> </td>
<td class="author"> <td class="author">
{if $blamecommit} {if $blamecommit}
{$blamecommit->GetAuthor()} {$blamecommit->GetAuthor()}
{/if} {/if}
</td> </td>
<td class="num"><a id="l{$smarty.foreach.blob.iteration}" href="#l{$smarty.foreach.blob.iteration}" class="linenr">{$smarty.foreach.blob.iteration}</a></td> <td class="num"><a id="l{$smarty.foreach.blob.iteration}" href="#l{$smarty.foreach.blob.iteration}" class="linenr">{$smarty.foreach.blob.iteration}</a></td>
<td class="codeline">{$blobline|escape}</td> <td class="codeline">{$blobline|escape}</td>
</tr> </tr>
{/foreach} {/foreach}
</table> </table>
{/if} {/if}
</div> </div>
   
{include file='footer.tpl'} {include file='footer.tpl'}
   
comments