Create valid HTML for the branch and tag list headings (no block
elements inside headings) and also use a lower heading, h3 and not h1 for the subheadings. Reduce the amount of code duplication with include's for each VCS.
This commit is contained in:
39
src/IDF/templates/idf/source/git/branch_tag_list.html
Normal file
39
src/IDF/templates/idf/source/git/branch_tag_list.html
Normal file
@@ -0,0 +1,39 @@
|
||||
{if !$view_url}
|
||||
{assign $view_url = 'IDF_Views_Source::treeBase'}
|
||||
{/if}
|
||||
<div class="expander">
|
||||
<div class="gradient"></div>
|
||||
<h3>
|
||||
{trans 'Branches'}
|
||||
<span class="input-with-delete">
|
||||
<input type="text" rel="branch-list" class="filter-list" title="{trans 'filter branches'}" />
|
||||
<span></span>
|
||||
</span>
|
||||
</h3>
|
||||
<ul id="branch-list">
|
||||
{foreach $branches as $branch => $path}
|
||||
{aurl 'url', $view_url, array($project.shortname, $branch)}
|
||||
<li class="label{if in_array($branch, $tree_in)} active{/if}">
|
||||
<a href="{$url}" class="label">{if $path}{$path}{else}{$branch}{/if}</a>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
{if $tags}
|
||||
<h3>
|
||||
{trans 'Tags'}
|
||||
<span class="input-with-delete">
|
||||
<input type="text" rel="tag-list" class="filter-list" title="{trans 'filter tags'}" />
|
||||
<span></span>
|
||||
</span>
|
||||
</h3>
|
||||
<ul id="tag-list">
|
||||
{foreach $tags as $tag => $path}
|
||||
{aurl 'url', $view_url, array($project.shortname, $tag)}
|
||||
<li class="label{if in_array($tag, $tags_in)} active{/if}">
|
||||
<a href="{$url}" class="label">{if $path}{$path}{else}{$tag}{/if}</a>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
{/if}
|
||||
</div>
|
||||
|
@@ -1,38 +1,5 @@
|
||||
{extends "idf/source/changelog.html"}
|
||||
{block context}
|
||||
<div class="expander">
|
||||
<div class="gradient"></div>
|
||||
<h1>
|
||||
{trans 'Branches'}
|
||||
<div class="input-with-delete">
|
||||
<input type="text" rel="branch-list" class="filter-list" title="{trans 'filter branches'}" />
|
||||
<span></span>
|
||||
</div>
|
||||
</h1>
|
||||
<ul id="branch-list">
|
||||
{foreach $branches as $branch => $path}
|
||||
{aurl 'url', 'IDF_Views_Source::changeLog', array($project.shortname, $branch)}
|
||||
<li class="label{if in_array($branch, $tree_in)} active{/if}">
|
||||
<a href="{$url}" class="label">{if $path}{$path}{else}{$branch}{/if}</a>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
{if $tags}
|
||||
<h1>
|
||||
{trans 'Tags'}
|
||||
<div class="input-with-delete">
|
||||
<input type="text" rel="tag-list" class="filter-list" title="{trans 'filter tags'}" />
|
||||
<span></span>
|
||||
</div>
|
||||
</h1>
|
||||
<ul id="tag-list">
|
||||
{foreach $tags as $tag => $path}
|
||||
{aurl 'url', 'IDF_Views_Source::changeLog', array($project.shortname, $tag)}
|
||||
<li class="label{if in_array($tag, $tags_in)} active{/if}">
|
||||
<a href="{$url}" class="label">{if $path}{$path}{else}{$tag}{/if}</a>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
{/if}
|
||||
</div>
|
||||
{assign $view_url = 'IDF_Views_Source::changeLog'}
|
||||
{include 'idf/source/git/branch_tag_list.html'}
|
||||
{/block}
|
||||
|
@@ -1,39 +1,5 @@
|
||||
{extends "idf/source/commit.html"}
|
||||
{block context}
|
||||
<div class="expander">
|
||||
<div class="gradient"></div>
|
||||
<h1>
|
||||
{trans 'Branches'}
|
||||
<div class="input-with-delete">
|
||||
<input type="text" rel="branch-list" class="filter-list" title="{trans 'filter branches'}" />
|
||||
<span></span>
|
||||
</div>
|
||||
</h1>
|
||||
<ul id="branch-list">
|
||||
{foreach $branches as $branch => $path}
|
||||
{aurl 'url', 'IDF_Views_Source::treeBase', array($project.shortname, $branch)}
|
||||
<li class="label{if in_array($branch, $tree_in)} active{/if}">
|
||||
<a href="{$url}" class="label">{$branch}</a>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
{if $tags}
|
||||
<h1>
|
||||
{trans 'Tags'}
|
||||
<div class="input-with-delete">
|
||||
<input type="text" rel="tag-list" class="filter-list" title="{trans 'filter tags'}" />
|
||||
<span></span>
|
||||
</div>
|
||||
</h1>
|
||||
<ul id="tag-list">
|
||||
{foreach $tags as $tag => $path}
|
||||
{aurl 'url', 'IDF_Views_Source::treeBase', array($project.shortname, $tag)}
|
||||
<li class="label{if in_array($tag, $tags_in)} active{/if}">
|
||||
<a href="{$url}" class="label">{if $path}{$path}{else}{$tag}{/if}</a>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
{/if}
|
||||
</div>
|
||||
{include 'idf/source/git/branch_tag_list.html'}
|
||||
{/block}
|
||||
|
||||
|
@@ -22,41 +22,7 @@
|
||||
|
||||
{/block}
|
||||
{block context}
|
||||
<div class="expander">
|
||||
<div class="gradient"></div>
|
||||
<h1>
|
||||
{trans 'Branches'}
|
||||
<div class="input-with-delete">
|
||||
<input type="text" rel="branch-list" class="filter-list" title="{trans 'filter branches'}" />
|
||||
<span></span>
|
||||
</div>
|
||||
</h1>
|
||||
<ul id="branch-list">
|
||||
{foreach $branches as $branch => $path}
|
||||
{aurl 'url', 'IDF_Views_Source::treeBase', array($project.shortname, $branch)}
|
||||
<li class="label{if in_array($branch, $tree_in)} active{/if}">
|
||||
<a href="{$url}" class="label">{if $path}{$path}{else}{$branch}{/if}</a>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
{if $tags}
|
||||
<h1>
|
||||
{trans 'Tags'}
|
||||
<div class="input-with-delete">
|
||||
<input type="text" rel="tag-list" class="filter-list" title="{trans 'filter tags'}" />
|
||||
<span></span>
|
||||
</div>
|
||||
</h1>
|
||||
<ul id="tag-list">
|
||||
{foreach $tags as $tag => $path}
|
||||
{aurl 'url', 'IDF_Views_Source::treeBase', array($project.shortname, $tag)}
|
||||
<li class="label{if in_array($tag, $tags_in)} active{/if}">
|
||||
<a href="{$url}" class="label">{if $path}{$path}{else}{$tag}{/if}</a>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
{/if}
|
||||
</div>
|
||||
{include 'idf/source/git/branch_tag_list.html'}
|
||||
{/block}
|
||||
|
||||
{block javascript}
|
||||
|
@@ -52,39 +52,5 @@
|
||||
|
||||
{/block}
|
||||
{block context}
|
||||
<div class="expander">
|
||||
<div class="gradient"></div>
|
||||
<h1>
|
||||
{trans 'Branches'}
|
||||
<div class="input-with-delete">
|
||||
<input type="text" rel="branch-list" class="filter-list" title="{trans 'filter branches'}" />
|
||||
<span></span>
|
||||
</div>
|
||||
</h1>
|
||||
<ul id="branch-list">
|
||||
{foreach $branches as $branch => $path}
|
||||
{aurl 'url', 'IDF_Views_Source::treeBase', array($project.shortname, $branch)}
|
||||
<li class="label{if in_array($branch, $tree_in)} active{/if}">
|
||||
<a href="{$url}" class="label">{if $path}{$path}{else}{$branch}{/if}</a>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
{if $tags}
|
||||
<h1>
|
||||
{trans 'Tags'}
|
||||
<div class="input-with-delete">
|
||||
<input type="text" rel="tag-list" class="filter-list" title="{trans 'filter tags'}" />
|
||||
<span></span>
|
||||
</div>
|
||||
</h1>
|
||||
<ul id="tag-list">
|
||||
{foreach $tags as $tag => $path}
|
||||
{aurl 'url', 'IDF_Views_Source::treeBase', array($project.shortname, $tag)}
|
||||
<li class="label{if in_array($tag, $tags_in)} active{/if}">
|
||||
<a href="{$url}" class="label">{if $path}{$path}{else}{$tag}{/if}</a>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
{/if}
|
||||
</div>
|
||||
{include 'idf/source/git/branch_tag_list.html'}
|
||||
{/block}
|
||||
|
39
src/IDF/templates/idf/source/mercurial/branch_tag_list.html
Normal file
39
src/IDF/templates/idf/source/mercurial/branch_tag_list.html
Normal file
@@ -0,0 +1,39 @@
|
||||
{if !$view_url}
|
||||
{assign $view_url = 'IDF_Views_Source::treeBase'}
|
||||
{/if}
|
||||
<div class="expander">
|
||||
<div class="gradient"></div>
|
||||
<h3>
|
||||
{trans 'Branches'}
|
||||
<span class="input-with-delete">
|
||||
<input type="text" rel="branch-list" class="filter-list" title="{trans 'filter branches'}" />
|
||||
<span></span>
|
||||
</span>
|
||||
</h3>
|
||||
<ul id="branch-list">
|
||||
{foreach $branches as $branch => $path}
|
||||
{aurl 'url', $view_url, array($project.shortname, $branch)}
|
||||
<li class="label{if in_array($branch, $tree_in)} active{/if}">
|
||||
<a href="{$url}" class="label">{$branch}</a>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
{if $tags}
|
||||
<h3>
|
||||
{trans 'Tags'}
|
||||
<span class="input-with-delete">
|
||||
<input type="text" rel="tag-list" class="filter-list" title="{trans 'filter tags'}" />
|
||||
<span></span>
|
||||
</span>
|
||||
</h3>
|
||||
<ul id="tag-list">
|
||||
{foreach $tags as $tag => $path}
|
||||
{aurl 'url', $view_url, array($project.shortname, $tag)}
|
||||
<li class="label{if in_array($tag, $tags_in)} active{/if}">
|
||||
<a href="{$url}" class="label">{$tag}</a>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
{/if}
|
||||
</div>
|
||||
|
@@ -1,39 +1,6 @@
|
||||
{extends "idf/source/changelog.html"}
|
||||
{block context}
|
||||
<div class="expander">
|
||||
<div class="gradient"></div>
|
||||
<h1>
|
||||
{trans 'Branches'}
|
||||
<div class="input-with-delete">
|
||||
<input type="text" rel="branch-list" class="filter-list" title="{trans 'filter branches'}" />
|
||||
<span></span>
|
||||
</div>
|
||||
</h1>
|
||||
<ul id="branch-list">
|
||||
{foreach $branches as $branch => $path}
|
||||
{aurl 'url', 'IDF_Views_Source::changeLog', array($project.shortname, $branch)}
|
||||
<li class="label{if in_array($branch, $tree_in)} active{/if}">
|
||||
<a href="{$url}" class="label">{$branch}</a>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
{if $tags}
|
||||
<h1>
|
||||
{trans 'Tags'}
|
||||
<div class="input-with-delete">
|
||||
<input type="text" rel="tag-list" class="filter-list" title="{trans 'filter tags'}" />
|
||||
<span></span>
|
||||
</div>
|
||||
</h1>
|
||||
<ul id="tag-list">
|
||||
{foreach $tags as $tag => $path}
|
||||
{aurl 'url', 'IDF_Views_Source::changeLog', array($project.shortname, $tag)}
|
||||
<li class="label{if in_array($tag, $tags_in)} active{/if}">
|
||||
<a href="{$url}" class="label">{$tag}</a>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
{/if}
|
||||
</div>
|
||||
{assign $view_url = 'IDF_Views_Source::changeLog'}
|
||||
{include 'idf/source/mercurial/branch_tag_list.html'}
|
||||
{/block}
|
||||
|
||||
|
@@ -1,39 +1,5 @@
|
||||
{extends "idf/source/commit.html"}
|
||||
{block context}
|
||||
<div class="expander">
|
||||
<div class="gradient"></div>
|
||||
<h1>
|
||||
{trans 'Branches'}
|
||||
<div class="input-with-delete">
|
||||
<input type="text" rel="branch-list" class="filter-list" title="{trans 'filter branches'}" />
|
||||
<span></span>
|
||||
</div>
|
||||
</h1>
|
||||
<ul id="branch-list">
|
||||
{foreach $branches as $branch => $path}
|
||||
{aurl 'url', 'IDF_Views_Source::treeBase', array($project.shortname, $branch)}
|
||||
<li class="label{if in_array($branch, $tree_in)} active{/if}">
|
||||
<a href="{$url}" class="label">{$branch}</a>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
{if $tags}
|
||||
<h1>
|
||||
{trans 'Tags'}
|
||||
<div class="input-with-delete">
|
||||
<input type="text" rel="tag-list" class="filter-list" title="{trans 'filter tags'}" />
|
||||
<span></span>
|
||||
</div>
|
||||
</h1>
|
||||
<ul id="tag-list">
|
||||
{foreach $tags as $tag => $path}
|
||||
{aurl 'url', 'IDF_Views_Source::treeBase', array($project.shortname, $tag)}
|
||||
<li class="label{if in_array($tag, $tags_in)} active{/if}">
|
||||
<a href="{$url}" class="label">{if $path}{$path}{else}{$tag}{/if}</a>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
{/if}
|
||||
</div>
|
||||
{include 'idf/source/mercurial/branch_tag_list.html'}
|
||||
{/block}
|
||||
|
||||
|
@@ -23,40 +23,7 @@
|
||||
{/block}
|
||||
|
||||
{block context}
|
||||
<div class="expander">
|
||||
<div class="gradient"></div>
|
||||
<h1>
|
||||
{trans 'Branches'}
|
||||
<div class="input-with-delete">
|
||||
<input type="text" rel="branch-list" class="filter-list" title="{trans 'filter branches'}" />
|
||||
<span></span>
|
||||
</div>
|
||||
</h1>
|
||||
<ul id="branch-list">{foreach $branches as $branch => $path}
|
||||
{aurl 'url', 'IDF_Views_Source::treeBase', array($project.shortname, $branch)}
|
||||
<li class="label{if in_array($branch, $tree_in)} active{/if}">
|
||||
<a href="{$url}" class="label">{$branch}</a>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
{if $tags}
|
||||
<h1>
|
||||
{trans 'Tags'}
|
||||
<div class="input-with-delete">
|
||||
<input type="text" rel="tag-list" class="filter-list" title="{trans 'filter tags'}" />
|
||||
<span></span>
|
||||
</div>
|
||||
</h1>
|
||||
<ul id="tag-list">
|
||||
{foreach $tags as $tag => $path}
|
||||
{aurl 'url', 'IDF_Views_Source::tree', array($project.shortname, 'HEAD', $path)}
|
||||
<li class="label{if in_array($tag, $tags_in)} active{/if}">
|
||||
<a href="{$url}" class="label">{$tag}</a>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
{/if}
|
||||
</div>
|
||||
{include 'idf/source/mercurial/branch_tag_list.html'}
|
||||
{/block}
|
||||
|
||||
{block javascript}
|
||||
|
@@ -47,40 +47,6 @@
|
||||
{/block}
|
||||
|
||||
{block context}
|
||||
<div class="expander">
|
||||
<div class="gradient"></div>
|
||||
<h1>
|
||||
{trans 'Branches'}
|
||||
<div class="input-with-delete">
|
||||
<input type="text" rel="branch-list" class="filter-list" title="{trans 'filter branches'}" />
|
||||
<span></span>
|
||||
</div>
|
||||
</h1>
|
||||
<ul id="branch-list">
|
||||
{foreach $branches as $branch => $path}
|
||||
{aurl 'url', 'IDF_Views_Source::treeBase', array($project.shortname, $branch)}
|
||||
<li class="label{if in_array($branch, $tree_in)} active{/if}">
|
||||
<a href="{$url}" class="label">{$branch}</a>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
{if $tags}
|
||||
<h1>
|
||||
{trans 'Tags'}
|
||||
<div class="input-with-delete">
|
||||
<input type="text" rel="tag-list" class="filter-list" title="{trans 'filter tags'}" />
|
||||
<span></span>
|
||||
</div>
|
||||
</h1>
|
||||
<ul id="tag-list">
|
||||
{foreach $tags as $tag => $path}
|
||||
{aurl 'url', 'IDF_Views_Source::treeBase', array($project.shortname, $tag)}
|
||||
<li class="label{if in_array($tag, $tags_in)} active{/if}">
|
||||
<a href="{$url}" class="label">{$tag}</a>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
{/if}
|
||||
</div>
|
||||
{include 'idf/source/mercurial/branch_tag_list.html'}
|
||||
{/block}
|
||||
|
||||
|
39
src/IDF/templates/idf/source/mtn/branch_tag_list.html
Normal file
39
src/IDF/templates/idf/source/mtn/branch_tag_list.html
Normal file
@@ -0,0 +1,39 @@
|
||||
{if !$view_url}
|
||||
{assign $view_url = 'IDF_Views_Source::treeBase'}
|
||||
{/if}
|
||||
<div class="expander">
|
||||
<div class="gradient"></div>
|
||||
<h3>
|
||||
{trans 'Branches'}
|
||||
<span class="input-with-delete">
|
||||
<input type="text" rel="branch-list" class="filter-list" title="{trans 'filter branches'}" />
|
||||
<span></span>
|
||||
</span>
|
||||
</h3>
|
||||
<ul id="branch-list">
|
||||
{foreach $branches as $selector => $branch}
|
||||
{aurl 'url', $view_url, array($project.shortname, $selector)}
|
||||
<li class="{if in_array($selector, $tree_in)}active{/if}">
|
||||
<a href="{$url}" class="label">{$branch}</a>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
{if $tags}
|
||||
<h3>
|
||||
{trans 'Tags'}
|
||||
<span class="input-with-delete">
|
||||
<input type="text" rel="tag-list" class="filter-list" title="{trans 'filter tags'}" />
|
||||
<span></span>
|
||||
</span>
|
||||
</h3>
|
||||
<ul id="tag-list">
|
||||
{foreach $tags as $selector => $tag}
|
||||
{aurl 'url', $view_url, array($project.shortname, $selector)}
|
||||
<li class="{if in_array($selector, $tags_in)}active{/if}">
|
||||
<a href="{$url}" class="label">{$tag}</a>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
{/if}
|
||||
</div>
|
||||
|
@@ -1,38 +1,5 @@
|
||||
{extends "idf/source/changelog.html"}
|
||||
{block context}
|
||||
<div class="expander">
|
||||
<div class="gradient"></div>
|
||||
<h1>
|
||||
{trans 'Branches'}
|
||||
<div class="input-with-delete">
|
||||
<input type="text" rel="branch-list" class="filter-list" title="{trans 'filter branches'}" />
|
||||
<span></span>
|
||||
</div>
|
||||
</h1>
|
||||
<ul id="branch-list">
|
||||
{foreach $branches as $selector => $branch}
|
||||
{aurl 'url', 'IDF_Views_Source::changeLog', array($project.shortname, $selector)}
|
||||
<li class="{if in_array($selector, $tree_in)}active{/if}">
|
||||
<a href="{$url}" class="label">{$branch}</a>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
{if $tags}
|
||||
<h1>
|
||||
{trans 'Tags'}
|
||||
<div class="input-with-delete">
|
||||
<input type="text" rel="tag-list" class="filter-list" title="{trans 'filter tags'}" />
|
||||
<span></span>
|
||||
</div>
|
||||
</h1>
|
||||
<ul id="tag-list">
|
||||
{foreach $tags as $selector => $tag}
|
||||
{aurl 'url', 'IDF_Views_Source::changeLog', array($project.shortname, $selector)}
|
||||
<li class="{if in_array($selector, $tags_in)}active{/if}">
|
||||
<a href="{$url}" class="label">{$tag}</a>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
{/if}
|
||||
</div>
|
||||
{assign $view_url = 'IDF_Views_Source::changeLog'}
|
||||
{include 'idf/source/mtn/branch_tag_list.html'}
|
||||
{/block}
|
||||
|
@@ -1,38 +1,4 @@
|
||||
{extends "idf/source/commit.html"}
|
||||
{block context}
|
||||
<div class="expander">
|
||||
<div class="gradient"></div>
|
||||
<h1>
|
||||
{trans 'Branches'}
|
||||
<div class="input-with-delete">
|
||||
<input type="text" rel="branch-list" class="filter-list" title="{trans 'filter branches'}" />
|
||||
<span></span>
|
||||
</div>
|
||||
</h1>
|
||||
<ul id="branch-list">
|
||||
{foreach $branches as $selector => $branch}
|
||||
{aurl 'url', 'IDF_Views_Source::treeBase', array($project.shortname, $selector)}
|
||||
<li class="{if in_array($selector, $tree_in)}active{/if}">
|
||||
<a href="{$url}" class="label">{$branch}</a>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
{if $tags}
|
||||
<h1>
|
||||
{trans 'Tags'}
|
||||
<div class="input-with-delete">
|
||||
<input type="text" rel="tag-list" class="filter-list" title="{trans 'filter tags'}" />
|
||||
<span></span>
|
||||
</div>
|
||||
</h1>
|
||||
<ul id="tag-list">
|
||||
{foreach $tags as $selector => $tag}
|
||||
{aurl 'url', 'IDF_Views_Source::treeBase', array($project.shortname, $selector)}
|
||||
<li class="{if in_array($selector, $tags_in)}active{/if}">
|
||||
<a href="{$url}" class="label">{$tag}</a>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
{/if}
|
||||
</div>
|
||||
{include 'idf/source/mtn/branch_tag_list.html'}
|
||||
{/block}
|
||||
|
@@ -25,40 +25,6 @@
|
||||
<script type="text/javascript">prettyPrint();</script>
|
||||
{/block}
|
||||
{block context}
|
||||
<div class="expander">
|
||||
<div class="gradient"></div>
|
||||
<h1>
|
||||
{trans 'Branches'}
|
||||
<div class="input-with-delete">
|
||||
<input type="text" rel="branch-list" class="filter-list" title="{trans 'filter branches'}" />
|
||||
<span></span>
|
||||
</div>
|
||||
</h1>
|
||||
<ul id="branch-list">
|
||||
{foreach $branches as $selector => $branch}
|
||||
{aurl 'url', 'IDF_Views_Source::treeBase', array($project.shortname, $selector)}
|
||||
<li class="{if in_array($selector, $tree_in)}active{/if}">
|
||||
<a href="{$url}" class="label">{$branch}</a>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
{if $tags}
|
||||
<h1>
|
||||
{trans 'Tags'}
|
||||
<div class="input-with-delete">
|
||||
<input type="text" rel="tag-list" class="filter-list" title="{trans 'filter tags'}" />
|
||||
<span></span>
|
||||
</div>
|
||||
</h1>
|
||||
<ul id="tag-list">
|
||||
{foreach $tags as $selector => $tag}
|
||||
{aurl 'url', 'IDF_Views_Source::treeBase', array($project.shortname, $selector)}
|
||||
<li class="{if in_array($selector, $tags_in)}active{/if}">
|
||||
<a href="{$url}" class="label">{$tag}</a>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
{/if}
|
||||
</div>
|
||||
{include 'idf/source/mtn/branch_tag_list.html'}
|
||||
{/block}
|
||||
|
||||
|
@@ -53,40 +53,6 @@
|
||||
</p>
|
||||
{/block}
|
||||
{block context}
|
||||
<div class="expander">
|
||||
<div class="gradient"></div>
|
||||
<h1>
|
||||
{trans 'Branches'}
|
||||
<div class="input-with-delete">
|
||||
<input type="text" rel="branch-list" class="filter-list" title="{trans 'filter branches'}" />
|
||||
<span></span>
|
||||
</div>
|
||||
</h1>
|
||||
<ul id="branch-list">
|
||||
{foreach $branches as $selector => $branch}
|
||||
{aurl 'url', 'IDF_Views_Source::treeBase', array($project.shortname, $selector)}
|
||||
<li class="{if in_array($selector, $tree_in)}active{/if}">
|
||||
<a href="{$url}" class="label">{$branch}</a>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
{if $tags}
|
||||
<h1>
|
||||
{trans 'Tags'}
|
||||
<div class="input-with-delete">
|
||||
<input type="text" rel="tag-list" class="filter-list" title="{trans 'filter tags'}" />
|
||||
<span></span>
|
||||
</div>
|
||||
</h1>
|
||||
<ul id="tag-list">
|
||||
{foreach $tags as $selector => $tag}
|
||||
{aurl 'url', 'IDF_Views_Source::treeBase', array($project.shortname, $selector)}
|
||||
<li class="{if in_array($selector, $tags_in)}active{/if}">
|
||||
<a href="{$url}" class="label">{$tag}</a>
|
||||
</li>
|
||||
{/foreach}
|
||||
</ul>
|
||||
{/if}
|
||||
</div>
|
||||
{include 'idf/source/mtn/branch_tag_list.html'}
|
||||
{/block}
|
||||
|
||||
|
Reference in New Issue
Block a user