Windows php doesn't like the date format shortcuts for some reason
[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 {include file='nav.tpl' treecommit=$commit}
13 <br />
Chris Han 14 <a href="{$SCRIPT_NAME}?p={$project->GetProject()|urlencode}&a=blob_plain&h={$blob->GetHash()}&f={$blob->GetPath()}">{t}plain{/t}</a> |
Chris Han 15 {if $commit->GetHash() != $head->GetHash()}
Chris Han 16 <a href="{$SCRIPT_NAME}?p={$project->GetProject()|urlencode}&a=blame&hb=HEAD&f={$blob->GetPath()}">{t}HEAD{/t}</a>
Chris Han 17 {else}
Chris Han 18 {t}HEAD{/t}
Chris Han 19 {/if}
Chris Han 20 | blame
21 <br />
Chris Han 22 </div>
Chris Han 23
Chris Han 24 {include file='title.tpl' titlecommit=$commit}
Chris Han 25
Chris Han 26 {include file='path.tpl' pathobject=$blob target='blob'}
Chris Han 27
Chris Han 28 <div class="page_body">
Chris Han 29 {if $geshi}
30 {$geshihead}
Chris Han 31 <td class="ln de1" id="blameData">
32 {include file='blamedata.tpl'}
33 </td>
Chris Han 34 {$geshibody}
35 {$geshifoot}
36 {else}
Chris Han 37 <table class="code">
Chris Han 38 {foreach from=$blob->GetData(true) item=blobline name=blob}
Chris Han 39 {assign var=blamecommit value=$blame[$smarty.foreach.blob.iteration]}
40 {if $blamecommit}
41 {cycle values="light,dark" assign=rowclass}
42 {/if}
43 <tr class="{$rowclass}">
44 <td class="date">
45 {if $blamecommit}
Chris Han 46 <a href="{$SCRIPT_NAME}?p={$project->GetProject()|urlencode}&a=commit&h={$blamecommit->GetHash()}" title="{$blamecommit->GetTitle()}" class="commitTip">{$blamecommit->GetAuthorEpoch()|date_format:"%Y-%m-%d %H:%M:%S"}</a>
Chris Han 47 {/if}
48 </td>
49 <td class="author">
50 {if $blamecommit}
51 {$blamecommit->GetAuthor()}
52 {/if}
53 </td>
54 <td class="num"><a id="l{$smarty.foreach.blob.iteration}" href="#l{$smarty.foreach.blob.iteration}" class="linenr">{$smarty.foreach.blob.iteration}</a></td>
55 <td class="codeline">{$blobline|escape}</td>
56 </tr>
Chris Han 57 {/foreach}
58 </table>
Chris Han 59 {/if}
Chris Han 60 </div>
61
62 {include file='footer.tpl'}
63
comments