refbadges.tpl 647 B

1234567891011121314151617181920212223
  1. {*
  2. * Refbadges
  3. *
  4. * Ref badges template
  5. *
  6. * @author Christopher Han <xiphux@gmail.com>
  7. * @copyright Copyright (c) 2010 Christopher Han
  8. * @package GitPHP
  9. * @subpackage Template
  10. *}
  11. <span class="refs">
  12. {foreach from=$commit->GetHeads() item=commithead}
  13. <span class="head">
  14. <a href="{geturl project=$project action=shortlog hash=$commithead}">{$commithead->GetName()}</a>
  15. </span>
  16. {/foreach}
  17. {foreach from=$commit->GetTags() item=committag}
  18. <span class="tag">
  19. <a href="{geturl project=$project action=tag tag=$committag}" {if !$committag->LightTag()}class="tagTip"{/if}>{$committag->GetName()}</a>
  20. </span>
  21. {/foreach}
  22. </span>