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:
@@ -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}
|
||||
|
Reference in New Issue
Block a user