Beef up the branch and tag lists as per issue 601 - currently
only for the monotone plugin's source view.
This commit is contained in:
		@@ -1,26 +1,32 @@
 | 
			
		||||
{extends "idf/source/commit.html"}
 | 
			
		||||
{block context}
 | 
			
		||||
<p><strong>{trans 'Branches:'}</strong><br/>
 | 
			
		||||
<div class="expander">
 | 
			
		||||
<div class="gradient"></div>
 | 
			
		||||
<h1>
 | 
			
		||||
  {trans 'Branches'}
 | 
			
		||||
  <input type="text" rel="branch-list" class="filter-list"  title="{trans 'filter branches'}" />
 | 
			
		||||
</h1>
 | 
			
		||||
<ul id="branch-list">
 | 
			
		||||
{foreach $branches as $selector => $branch}
 | 
			
		||||
{aurl 'url', 'IDF_Views_Source::treeBase', array($project.shortname, $selector)}
 | 
			
		||||
<span class="label{if in_array($branch, $tree_in)} active{/if}">
 | 
			
		||||
    <a href="{$url}" class="label" title="{$branch}">
 | 
			
		||||
        {$branch|shorten:25}
 | 
			
		||||
    </a>
 | 
			
		||||
</span><br/>
 | 
			
		||||
<li class="{if in_array($branch, $tree_in)}active{/if}">
 | 
			
		||||
  <a href="{$url}" class="label">{$branch}</a>
 | 
			
		||||
</li>
 | 
			
		||||
{/foreach}
 | 
			
		||||
</p>
 | 
			
		||||
</ul>
 | 
			
		||||
{if $tags}
 | 
			
		||||
<p><strong>{trans 'Tags:'}</strong><br/>
 | 
			
		||||
<h1>
 | 
			
		||||
  {trans 'Tags'}
 | 
			
		||||
  <input type="text" rel="tag-list" class="filter-list" title="{trans 'filter tags'}" />
 | 
			
		||||
</h1>
 | 
			
		||||
<ul id="tag-list">
 | 
			
		||||
{foreach $tags as $selector => $tag}
 | 
			
		||||
{aurl 'url', 'IDF_Views_Source::treeBase', array($project.shortname, $selector)}
 | 
			
		||||
<span class="label{if in_array($tag, $tags_in)} active{/if}">
 | 
			
		||||
    <a href="{$url}" class="label" title="{$tag}">
 | 
			
		||||
        {$tag|shorten:25}
 | 
			
		||||
    </a>
 | 
			
		||||
</span><br/>
 | 
			
		||||
<li class="{if in_array($tag, $tags_in)}active{/if}">
 | 
			
		||||
  <a href="{$url}" class="label">{$tag}</a>
 | 
			
		||||
</li>
 | 
			
		||||
{/foreach}
 | 
			
		||||
</p>
 | 
			
		||||
</ul>
 | 
			
		||||
{/if}
 | 
			
		||||
</div>
 | 
			
		||||
{/block}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user