Unify tags template
[gitphp.git] / include / display.git_tags.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
/*
 *  display.git_tags.php
 *  gitphp: A PHP git repository browser
 *  Component: Display - tags
 *
 *  Copyright (C) 2008 Christopher Han <xiphux@gmail.com>
 */
 
 require_once('gitutil.git_read_head.php');
 require_once('gitutil.git_read_refs.php');
 
function git_tags($projectroot,$project)
{
        global $tpl;
        $head = git_read_head($projectroot . $project);
        $tpl->clear_all_assign();
        $tpl->assign("project",$project);
        $tpl->assign("head",$head);
        $taglist = git_read_refs($projectroot, $project, "refs/tags");
        if (isset($taglist) && (count($taglist) > 0)) {
                $tpl->assign("taglist",$taglist);
        }
        $tpl->display("tags.tpl");
}
 
?>
 
comments