Added support of subversion.

This commit is contained in:
Nicolas LASSALLE
2008-08-29 19:50:10 +02:00
committed by Loic d'Anterroches
parent 763d7ca7f6
commit ccc41c86b0
14 changed files with 713 additions and 35 deletions

View File

@@ -29,11 +29,21 @@
</table>
{/block}
{block context}
{if $scm == 'git'}
<p><strong>{trans 'Branches:'}</strong><br />
{foreach $branches as $branch}
{aurl 'url', 'IDF_Views_Source::changeLog', array($project.shortname, $branch)}
<span class="label{if $commit == $branch} active{/if}"><a href="{$url}" class="label">{$branch}</a></span><br />
{/foreach}
</p>
{/if}
{if $scm == 'svn'}
<p><strong>{trans 'Revison:'} {$commit}</strong><br />
<form class="star" action="{url 'IDF_Views_Source::changelogRev', array($project.shortname)}" method="get">
<input accesskey="4" type="text" value="{$commit}" name="rev" size="20" />
<input type="submit" name="s" value="{trans 'Go to revision'}" />
</form>
</p>
{/if}
{/block}