Add tree link to heads
Add tree link to heads

--- a/templates/heads_item.tpl
+++ b/templates/heads_item.tpl
@@ -7,7 +7,7 @@
  *}
  <tr class="{$class}">
  <td><i>{$age}</i></td>
- <td><a href="{$SCRIPT_NAME}?p={$project}&a=shortlog&h={$name}" class="list"><b>{$name}</b></a></td>
- <td class="link"><a href="{$SCRIPT_NAME}?p={$project}&a=shortlog&h={$name}">shortlog</a> | <a href="{$SCRIPT_NAME}?p={$project}&a=log&h={$name}">log</a></td>
+ <td><a href="{$SCRIPT_NAME}?p={$project}&a=shortlog&h=refs/heads/{$name}" class="list"><b>{$name}</b></a></td>
+ <td class="link"><a href="{$SCRIPT_NAME}?p={$project}&a=shortlog&h=refs/heads/{$name}">shortlog</a> | <a href="{$SCRIPT_NAME}?p={$project}&a=log&h=refs/heads/{$name}">log</a> | <a href="{$SCRIPT_NAME}?p={$project}&a=tree&h=refs/heads/{$name}&hb={$name}">tree</a></td>
  </tr>
 

--- a/templates/project_headlist_item.tpl
+++ b/templates/project_headlist_item.tpl
@@ -10,8 +10,8 @@
    <td><a href="{$SCRIPT_NAME}?p={$project}&a=heads">...</a></td>
  {else}
    <td><i>{$headage}</i></td>
-   <td><a href="{$SCRIPT_NAME}?p={$project}&a=shortlog&h={$headname}" class="list"><b>{$headname}</b></td>
-   <td class="link"><a href="{$SCRIPT_NAME}?p={$project}&a=shortlog&h={$headname}">shortlog</a> | <a href="{$SCRIPT_NAME}?p={$project}&a=log&h={$headname}">log</a></td>
+   <td><a href="{$SCRIPT_NAME}?p={$project}&a=shortlog&h=refs/heads/{$headname}" class="list"><b>{$headname}</b></td>
+   <td class="link"><a href="{$SCRIPT_NAME}?p={$project}&a=shortlog&h=refs/heads/{$headname}">shortlog</a> | <a href="{$SCRIPT_NAME}?p={$project}&a=log&h=refs/heads/{$headname}">log</a> | <a href="{$SCRIPT_NAME}?p={$project}&a=tree&h=refs/heads/{$headname}&hb={$headname}">tree</a></td>
  {/if}
  </tr>
 

comments