Include update date in atom feed regardless of the number of entries
[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="{geturl project=$project action=commit hash=$blamecommit}" title="{$blamecommit->GetTitle()|escape}" class="commitTip"><time datetime="{$blamecommit->GetAuthorEpoch()|date_format:"%Y-%m-%dT%H:%M:%S+00:00"}">{$blamecommit->GetAuthorEpoch()|date_format:"%Y-%m-%d %H:%M:%S"}</time></a>
    {$blamecommit->GetAuthorName()|escape}
  {/if}
  <br />
{/foreach}
{if $opened}</div>{/if}

comments