blamedata.tpl 818 B

1234567891011121314151617181920
  1. {*
  2. * blamedata.tpl
  3. * gitphp: A PHP git repository browser
  4. * Component: Blame data column template
  5. *
  6. * Copyright (C) 2010 Christopher Han <xiphux@gmail.com>
  7. *}
  8. {foreach from=$blob->GetData(true) item=blobline name=blob}
  9. {assign var=blamecommit value=$blame[$smarty.foreach.blob.iteration]}
  10. {if $blamecommit}
  11. {if $opened}</div>{/if}
  12. <div class="{cycle values="light,dark"}">
  13. {assign var=opened value=true}
  14. <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>
  15. {$blamecommit->GetAuthorName()|escape}
  16. {/if}
  17. <br />
  18. {/foreach}
  19. {if $opened}</div>{/if}