diff --git a/src/IDF/templates/idf/source/git/changelog.html b/src/IDF/templates/idf/source/git/changelog.html index fa92f24..a0373cd 100644 --- a/src/IDF/templates/idf/source/git/changelog.html +++ b/src/IDF/templates/idf/source/git/changelog.html @@ -1,17 +1,38 @@ {extends "idf/source/changelog.html"} {block context} -

{trans 'Branches:'}
+

+
+

+ {trans 'Branches'} +
+ + +
+

+ {if $tags} -

{trans 'Tags:'}
+

+ {trans 'Tags'} +
+ + +
+

+ {/if} +
{/block} diff --git a/src/IDF/templates/idf/source/git/commit.html b/src/IDF/templates/idf/source/git/commit.html index f177d30..5e5850e 100644 --- a/src/IDF/templates/idf/source/git/commit.html +++ b/src/IDF/templates/idf/source/git/commit.html @@ -1,18 +1,39 @@ {extends "idf/source/commit.html"} {block context} -

{trans 'Branches:'}
+

+
+

+ {trans 'Branches'} +
+ + +
+

+ {if $tags} -

{trans 'Tags:'}
+

+ {trans 'Tags'} +
+ + +
+

+ {/if} +
{/block} diff --git a/src/IDF/templates/idf/source/git/file.html b/src/IDF/templates/idf/source/git/file.html index 77b33d8..c430faf 100644 --- a/src/IDF/templates/idf/source/git/file.html +++ b/src/IDF/templates/idf/source/git/file.html @@ -6,7 +6,7 @@ {if !$tree_in and !$tags_in} -{aurl 'url', 'IDF_Views_Source::commit', array($project.shortname, $commit)} +{aurl 'url', 'IDF_Views_Source::commit', array($project.shortname, $commit)}
{blocktrans}Source at commit {$commit} created {$cobject.date|dateago}.{/blocktrans}
{blocktrans}By {$cobject.author|strip_tags|trim}, {$cobject.title}{/blocktrans} @@ -22,20 +22,41 @@ {/block} {block context} -

{trans 'Branches:'}
+

+
+

+ {trans 'Branches'} +
+ + +
+

+ {if $tags} -

{trans 'Tags:'}
+

+ {trans 'Tags'} +
+ + +
+

+ {/if} +
{/block} {block javascript} diff --git a/src/IDF/templates/idf/source/git/tree.html b/src/IDF/templates/idf/source/git/tree.html index 0f5d0eb..6f48023 100644 --- a/src/IDF/templates/idf/source/git/tree.html +++ b/src/IDF/templates/idf/source/git/tree.html @@ -52,18 +52,39 @@ {/block} {block context} -

{trans 'Branches:'}
+

+
+

+ {trans 'Branches'} +
+ + +
+

+ {if $tags} -

{trans 'Tags:'}
+

+ {trans 'Tags'} +
+ + +
+

+ {/if} +
{/block} diff --git a/src/IDF/templates/idf/source/mercurial/changelog.html b/src/IDF/templates/idf/source/mercurial/changelog.html index c3c5772..fa648db 100644 --- a/src/IDF/templates/idf/source/mercurial/changelog.html +++ b/src/IDF/templates/idf/source/mercurial/changelog.html @@ -1,18 +1,39 @@ {extends "idf/source/changelog.html"} {block context} -

{trans 'Branches:'}
+

+
+

+ {trans 'Branches'} +
+ + +
+

+
    {foreach $branches as $branch => $path} {aurl 'url', 'IDF_Views_Source::changeLog', array($project.shortname, $branch)} -{$branch}
    +
  • + {$branch} +
  • {/foreach} -

    +
{if $tags} -

{trans 'Tags:'}
+

+ {trans 'Tags'} +
+ + +
+

+
    {foreach $tags as $tag => $path} {aurl 'url', 'IDF_Views_Source::changeLog', array($project.shortname, $tag)} -{$tag}
    +
  • + {$tag} +
  • {/foreach} -

    +
{/if} +
{/block} diff --git a/src/IDF/templates/idf/source/mercurial/commit.html b/src/IDF/templates/idf/source/mercurial/commit.html index f177d30..5e5850e 100644 --- a/src/IDF/templates/idf/source/mercurial/commit.html +++ b/src/IDF/templates/idf/source/mercurial/commit.html @@ -1,18 +1,39 @@ {extends "idf/source/commit.html"} {block context} -

{trans 'Branches:'}
+

+
+

+ {trans 'Branches'} +
+ + +
+

+
    {foreach $branches as $branch => $path} {aurl 'url', 'IDF_Views_Source::treeBase', array($project.shortname, $branch)} -{$branch}
    +
  • + {$branch} +
  • {/foreach} -

    +
{if $tags} -

{trans 'Tags:'}
+

+ {trans 'Tags'} +
+ + +
+

+ {/if} +
{/block} diff --git a/src/IDF/templates/idf/source/mercurial/file.html b/src/IDF/templates/idf/source/mercurial/file.html index c2e2968..eae2050 100644 --- a/src/IDF/templates/idf/source/mercurial/file.html +++ b/src/IDF/templates/idf/source/mercurial/file.html @@ -7,7 +7,7 @@ {if !$tree_in} -{aurl 'url', 'IDF_Views_Source::commit', array($project.shortname, $commit)} +{aurl 'url', 'IDF_Views_Source::commit', array($project.shortname, $commit)} {if !$tree_in and !$tags_in} -{aurl 'url', 'IDF_Views_Source::commit', array($project.shortname, $commit)} +{aurl 'url', 'IDF_Views_Source::commit', array($project.shortname, $commit)} + {else}{/if} {/if} @@ -47,17 +47,40 @@ {/block} {block context} -

{trans 'Branches:'}
+

+
+

+ {trans 'Branches'} +
+ + +
+

+
    {foreach $branches as $branch => $path} {aurl 'url', 'IDF_Views_Source::treeBase', array($project.shortname, $branch)} -{$branch}
    +
  • + {$branch} +
  • {/foreach} -

    -{if $tags}

    {trans 'Tags:'}
    +

+{if $tags} +

+ {trans 'Tags'} +
+ + +
+

+
    {foreach $tags as $tag => $path} {aurl 'url', 'IDF_Views_Source::treeBase', array($project.shortname, $tag)} -{$tag}
    +
  • + {$tag} +
  • {/foreach} -

    {/if} +
+{/if} +
{/block}
{blocktrans}Source at commit {$commit} created {$cobject.date|dateago}.{/blocktrans}
{blocktrans}By {$cobject.author|strip_tags|trim}, {$cobject.title}{/blocktrans} @@ -23,20 +23,40 @@ {/block} {block context} -

{trans 'Branches:'}
-{foreach $branches as $branch => $path} +

+
+

+ {trans 'Branches'} +
+ + +
+

+
    {foreach $branches as $branch => $path} {aurl 'url', 'IDF_Views_Source::treeBase', array($project.shortname, $branch)} -{$branch}
    +
  • + {$branch} +
  • {/foreach} -

    +
{if $tags} -

{trans 'Tags:'}
+

+ {trans 'Tags'} +
+ + +
+

+
    {foreach $tags as $tag => $path} {aurl 'url', 'IDF_Views_Source::tree', array($project.shortname, 'HEAD', $path)} -{$tag}
    +
  • + {$tag} +
  • {/foreach} -

    +
{/if} +
{/block} {block javascript} diff --git a/src/IDF/templates/idf/source/mercurial/tree.html b/src/IDF/templates/idf/source/mercurial/tree.html index 373e6a0..d2d9e27 100644 --- a/src/IDF/templates/idf/source/mercurial/tree.html +++ b/src/IDF/templates/idf/source/mercurial/tree.html @@ -12,7 +12,7 @@
{trans 'Size'}
{blocktrans}Source at commit {$commit} created {$cobject.date|dateago}.{/blocktrans}
{blocktrans}By {$cobject.author|strip_tags|trim}, {$cobject.title}{/blocktrans} @@ -34,7 +34,7 @@ {$file.file} {if $file.type == 'blob'} {if isset($file.date)} -
{$file.date|dateago:"without"}{$file.date|dateago:"without"} {$file.author|strip_tags|trim}{trans ':'} {$file.log}