diff --git a/src/IDF/templates/idf/source/mtn/changelog.html b/src/IDF/templates/idf/source/mtn/changelog.html index bb3dbc5..5a6fc23 100644 --- a/src/IDF/templates/idf/source/mtn/changelog.html +++ b/src/IDF/templates/idf/source/mtn/changelog.html @@ -1,20 +1,24 @@ {extends "idf/source/changelog.html"} {block context}

{trans 'Branches:'}
-{foreach $branches as $branch => $path} -{aurl 'url', 'IDF_Views_Source::treeBase', array($project.shortname, $branch)} - - {if $path}{$path|shorten:25}{else}{$branch|shorten:25}{/if} -
+{foreach $branches as $selector => $branch} +{aurl 'url', 'IDF_Views_Source::treeBase', array($project.shortname, $selector)} + + + {$branch|shorten:25} + +
{/foreach}

{if $tags}

{trans 'Tags:'}
-{foreach $tags as $tag => $path} -{aurl 'url', 'IDF_Views_Source::treeBase', array($project.shortname, $tag)} - - {if $path}{$path|shorten:25}{else}{$tag|shorten:25}{/if} -
+{foreach $tags as $selector => $tag} +{aurl 'url', 'IDF_Views_Source::treeBase', array($project.shortname, $selector)} + + + {$tag|shorten:25} + +
{/foreach}

{/if} diff --git a/src/IDF/templates/idf/source/mtn/file.html b/src/IDF/templates/idf/source/mtn/file.html index a8f4e43..6190557 100644 --- a/src/IDF/templates/idf/source/mtn/file.html +++ b/src/IDF/templates/idf/source/mtn/file.html @@ -23,20 +23,24 @@ {/block} {block context}

{trans 'Branches:'}
-{foreach $branches as $branch => $path} -{aurl 'url', 'IDF_Views_Source::treeBase', array($project.shortname, $branch)} - - {if $path}{$path|shorten:25}{else}{$branch|shorten:25}{/if} -
+{foreach $branches as $selector => $branch} +{aurl 'url', 'IDF_Views_Source::treeBase', array($project.shortname, $selector)} + + + {$branch|shorten:25} + +
{/foreach}

{if $tags}

{trans 'Tags:'}
-{foreach $tags as $tag => $path} -{aurl 'url', 'IDF_Views_Source::treeBase', array($project.shortname, $tag)} - - {if $path}{$path|shorten:25}{else}{$tag|shorten:25}{/if} -
+{foreach $tags as $selector => $tag} +{aurl 'url', 'IDF_Views_Source::treeBase', array($project.shortname, $selector)} + + + {$tag|shorten:25} + +
{/foreach}

{/if} diff --git a/src/IDF/templates/idf/source/mtn/tree.html b/src/IDF/templates/idf/source/mtn/tree.html index 933f7b0..0250b01 100644 --- a/src/IDF/templates/idf/source/mtn/tree.html +++ b/src/IDF/templates/idf/source/mtn/tree.html @@ -56,20 +56,24 @@ {/block} {block context}

{trans 'Branches:'}
-{foreach $branches as $branch => $path} -{aurl 'url', 'IDF_Views_Source::treeBase', array($project.shortname, $branch)} - - {if $path}{$path|shorten:25}{else}{$branch|shorten:25}{/if} -
+{foreach $branches as $selector => $branch} +{aurl 'url', 'IDF_Views_Source::treeBase', array($project.shortname, $selector)} + + + {$branch|shorten:25} + +
{/foreach}

{if $tags}

{trans 'Tags:'}
-{foreach $tags as $tag => $path} -{aurl 'url', 'IDF_Views_Source::treeBase', array($project.shortname, $tag)} - - {if $path}{$path|shorten:25}{else}{$tag|shorten:25}{/if} -
+{foreach $tags as $selector => $tag} +{aurl 'url', 'IDF_Views_Source::treeBase', array($project.shortname, $selector)} + + + {$tag|shorten:25} + +
{/foreach}

{/if}