Bump version to 0.2.0
[gitphp.git] / templates / blamedata.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{*
 * blamedata.tpl
 * gitphp: A PHP git repository browser
 * Component: Blame data column template
 *
 * Copyright (C) 2010 Christopher Han <xiphux@gmail.com>
 *}

{foreach from=$blob->GetData(true) item=blobline name=blob}
  {assign var=blamecommit value=$blame[$smarty.foreach.blob.iteration]}
  {if $blamecommit}
    {if $opened}</div>{/if}
    <div class="{cycle values="light,dark"}">
    {assign var=opened value=true}
    <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>
    {$blamecommit->GetAuthorName()|escape}
  {/if}
  <br />
{/foreach}
{if $opened}</div>{/if}

comments