Fixed issue 180, can't select branches containing / character in git projects.

This commit is contained in:
Loic d'Anterroches
2009-07-08 13:49:16 +02:00
parent 7d6cb22291
commit c0dfd6b5dc
8 changed files with 40 additions and 24 deletions

View File

@@ -0,0 +1,10 @@
{extends "idf/source/changelog.html"}
{block context}
<p><strong>{trans 'Branches:'}</strong><br />
{foreach $branches as $branch => $path}
{aurl 'url', 'IDF_Views_Source::treeBase', array($project.shortname, $branch)}
<span class="label{if in_array($branch, $tree_in)} active{/if}"><a href="{$url}" class="label">{if $path}{$path}{else}{$branch}{/if}</a></span><br />
{/foreach}
</p>
{/block}

View File

@@ -25,7 +25,7 @@
<p><strong>{trans 'Branches:'}</strong><br />
{foreach $branches as $branch => $path}
{aurl 'url', 'IDF_Views_Source::treeBase', array($project.shortname, $branch)}
<span class="label{if in_array($branch, $tree_in)} active{/if}"><a href="{$url}" class="label">{$branch}</a></span><br />
<span class="label{if in_array($branch, $tree_in)} active{/if}"><a href="{$url}" class="label">{if $path}{$path}{else}{$branch}{/if}</a></span><br />
{/foreach}
</p>
{/block}

View File

@@ -55,7 +55,7 @@
<p><strong>{trans 'Branches:'}</strong><br />
{foreach $branches as $branch => $path}
{aurl 'url', 'IDF_Views_Source::treeBase', array($project.shortname, $branch)}
<span class="label{if in_array($branch, $tree_in)} active{/if}"><a href="{$url}" class="label">{$branch}</a></span><br />
<span class="label{if in_array($branch, $tree_in)} active{/if}"><a href="{$url}" class="label">{if $path}{$path}{else}{$branch}{/if}</a></span><br />
{/foreach}
</p>
{/block}