Add i18n framework and start tokenizing some strings
[gitphp.git] / templates / blame.tpl
Chris Han 1 {*
2 * blame.tpl
3 * gitphp: A PHP git repository browser
4 * Component: Blame view template
5 *
6 * Copyright (C) 2010 Christopher Han <xiphux@gmail.com>
7 *}
8
9 {include file='header.tpl'}
10
11 <div class="page_nav">
Chris Han 12 <a href="{$SCRIPT_NAME}?p={$project->GetProject()|urlencode}&a=summary">{$resources->GetResource('summary')}</a> | <a href="{$SCRIPT_NAME}?p={$project->GetProject()|urlencode}&a=shortlog">{$resources->GetResource('shortlog')}</a> | <a href="{$SCRIPT_NAME}?p={$project->GetProject()|urlencode}&a=log">{$resources->GetResource('log')}</a> | <a href="{$SCRIPT_NAME}?p={$project->GetProject()|urlencode}&a=commit&h={$commit->GetHash()}">{$resources->GetResource('commit')}</a> | <a href="{$SCRIPT_NAME}?p={$project->GetProject()|urlencode}&a=commitdiff&h={$commit->GetHash()}">{$resources->GetResource('commitdiff')}</a> | <a href="{$SCRIPT_NAME}?p={$project->GetProject()|urlencode}&a=tree&h={$tree->GetHash()}&hb={$commit->GetHash()}">{$resources->GetResource('tree')}</a><br />
Marijn Koesen 13 <a href="{$SCRIPT_NAME}?p={$project->GetProject()|urlencode}&a=blob_plain&h={$blob->GetHash()}&f={$blob->GetPath()}">plain</a> |
Chris Han 14 {if $commit->GetHash() != $head->GetHash()}
Marijn Koesen 15 <a href="{$SCRIPT_NAME}?p={$project->GetProject()|urlencode}&a=blame&hb=HEAD&f={$blob->GetPath()}">HEAD</a>
Chris Han 16 {else}
Chris Han 17 HEAD
Chris Han 18 {/if}
Chris Han 19 | blame
20 <br />
Chris Han 21 </div>
Chris Han 22
Chris Han 23 {include file='title.tpl' titlecommit=$commit}
Chris Han 24
Chris Han 25 {include file='path.tpl' pathobject=$blob target='blob'}
Chris Han 26
Chris Han 27 <div class="page_body">
Chris Han 28 {if $geshi}
29 {$geshihead}
Chris Han 30 <td class="ln de1" id="blameData">
31 {include file='blamedata.tpl'}
32 </td>
Chris Han 33 {$geshibody}
34 {$geshifoot}
35 {else}
Chris Han 36 <table class="code">
Chris Han 37 {foreach from=$blob->GetData(true) item=blobline name=blob}
Chris Han 38 {assign var=blamecommit value=$blame[$smarty.foreach.blob.iteration]}
39 {if $blamecommit}
40 {cycle values="light,dark" assign=rowclass}
41 {/if}
42 <tr class="{$rowclass}">
43 <td class="date">
44 {if $blamecommit}
Chris Han 45 <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>
Chris Han 46 {/if}
47 </td>
48 <td class="author">
49 {if $blamecommit}
50 {$blamecommit->GetAuthor()}
51 {/if}
52 </td>
53 <td class="num"><a id="l{$smarty.foreach.blob.iteration}" href="#l{$smarty.foreach.blob.iteration}" class="linenr">{$smarty.foreach.blob.iteration}</a></td>
54 <td class="codeline">{$blobline|escape}</td>
55 </tr>
Chris Han 56 {/foreach}
57 </table>
Chris Han 58 {/if}
Chris Han 59 </div>
60
61 {include file='footer.tpl'}
62
comments