Fixed issue 101, better information for the Subversion login/password.

A nice little help icon is providing more information for the checkout.
This for all the backends.
This commit is contained in:
Loic d'Anterroches
2009-01-22 11:12:41 +01:00
parent 6b32413e69
commit cadbc040a1
9 changed files with 126 additions and 4 deletions

View File

@@ -0,0 +1,36 @@
{extends "idf/source/base.html"}
{block docclass}yui-t2{/block}
{block body}
<p>{blocktrans}The team behind {$project} is using
the <strong>git</strong> software to manage the source
code.{/blocktrans}</p>
<h3>{trans 'Command-Line Access'}</h3>
<p><kbd>git clone {$project.getRemoteAccessUrl()}</kbd></p>
{if $isOwner or $isMember}
<h3>{trans 'First Commit'}</h3>
<p>{blocktrans}To make a first commit in the repository, perform the following steps:{/blocktrans}</p>
<pre>
git init
git add .
git commit -m "initial import"
git remote add repo {$project.getRemoteAccessUrl()}
git push repo master
</pre>
{/if}
{/block}
{block context}
<div class="issue-submit-info">
<p>{blocktrans}Find here more details on how to access {$project} source code.{/blocktrans}</p>
</div>
{/block}

View File

@@ -43,7 +43,7 @@
</tbody>
</table>
{aurl 'url', 'IDF_Views_Source::download', array($project.shortname, $commit)}
<p class="right soft"><a href="{$url}"><img style="vertical-align: text-bottom;" src="{media '/idf/img/package-grey.png'}" alt="{trans 'Archive'}" align="bottom" /></a> <a href="{$url}">{trans 'Download this version'}</a> {trans 'or'} <kbd>git clone {$project.getRemoteAccessUrl()}</kbd></p>
<p class="right soft"><a href="{$url}"><img style="vertical-align: text-bottom;" src="{media '/idf/img/package-grey.png'}" alt="{trans 'Archive'}" align="bottom" /></a> <a href="{$url}">{trans 'Download this version'}</a> {trans 'or'} <kbd>git clone {$project.getRemoteAccessUrl()}</kbd> <a href="{url 'IDF_Views_Source::help', array($project.shortname)}"><img style="vertical-align: text-bottom;" src="{media '/idf/img/help.png'}" alt="{trans 'Help'}" /></a></p>
{/block}

View File

@@ -0,0 +1,31 @@
{extends "idf/source/base.html"}
{block docclass}yui-t2{/block}
{block body}
<p>{blocktrans}The team behind {$project} is using
the <strong>Mercurial</strong> software to manage the source
code.{/blocktrans}</p>
<h3>{trans 'Command-Line Access'}</h3>
<p><kbd>hg clone {$project.getRemoteAccessUrl()}</kbd></p>
{if $isOwner or $isMember}
<h3>{trans 'Write Access Authentication'}</h3>
{aurl 'url', 'IDF_Views_User::myAccount'}
<p>{blocktrans}To get write access to the repository, you need to use your username and your <a href="{$url}">extra password</a>.{/blocktrans}</p>
<p><kbd>hg clone {$project.getRemoteAccessUrl()}</kbd></p>
{/if}
{/block}
{block context}
<div class="issue-submit-info">
<p>{blocktrans}Find here more details on how to access {$project} source code.{/blocktrans}</p>
</div>
{/block}

View File

@@ -43,7 +43,7 @@
</tbody>
</table>
{aurl 'url', 'IDF_Views_Source::download', array($project.shortname, $commit)}
<p class="right soft"><a href="{$url}"><img style="vertical-align: text-bottom;" src="{media '/idf/img/package-grey.png'}" alt="{trans 'Archive'}" align="bottom" /></a> <a href="{$url}">{trans 'Download this version'}</a> {trans 'or'} <kbd>hg clone {$project.getRemoteAccessUrl()}</kbd></p>
<p class="right soft"><a href="{$url}"><img style="vertical-align: text-bottom;" src="{media '/idf/img/package-grey.png'}" alt="{trans 'Archive'}" align="bottom" /></a> <a href="{$url}">{trans 'Download this version'}</a> {trans 'or'} <kbd>hg clone {$project.getRemoteAccessUrl()}</kbd> <a href="{url 'IDF_Views_Source::help', array($project.shortname)}"><img style="vertical-align: text-bottom;" src="{media '/idf/img/help.png'}" alt="{trans 'Help'}" /></a></p>
{/block}
{block context}

View File

@@ -0,0 +1,31 @@
{extends "idf/source/base.html"}
{block docclass}yui-t2{/block}
{block body}
<p>{blocktrans}The team behind {$project} is using
the <strong>subversion</strong> software to manage the source
code.{/blocktrans}</p>
<h3>{trans 'Command-Line Access'}</h3>
<p><kbd>svn co {$project.getRemoteAccessUrl()}</kbd></p>
{if $isOwner or $isMember}
<h3>{trans 'Write Access Authentication'}</h3>
{aurl 'url', 'IDF_Views_User::myAccount'}
<p>{blocktrans}To get write access to the repository, you need to use your username and your <a href="{$url}">extra password</a>.{/blocktrans}</p>
<p><kbd>svn co {$project.getRemoteAccessUrl()} --username {$user.login}</kbd></p>
{/if}
{/block}
{block context}
<div class="issue-submit-info">
<p>{blocktrans}Find here more details on how to access {$project} source code.{/blocktrans}</p>
</div>
{/block}

View File

@@ -56,7 +56,7 @@
{/foreach}
</tbody>
</table>
<p class="right soft"><kbd>svn co -r {$commit} {$project.getRemoteAccessUrl()}</kbd></p>
<p class="right soft"><kbd>svn co -r {$commit} {$project.getRemoteAccessUrl()}</kbd> <a href="{url 'IDF_Views_Source::help', array($project.shortname)}"><img style="vertical-align: text-bottom;" src="{media '/idf/img/help.png'}" alt="{trans 'Help'}" /></a></p>
{/block}