Indefero

Indefero Commit Details

Date:2009-01-22 11:12:41 (5 years 3 months ago)
Author:Loïc d'Anterroches
Branch:dev, develop, feature-issue_links, feature.better-home, feature.content-md5, feature.diff-whitespace, feature.download-md5, feature.issue-links, feature.issue-of-others, feature.issue-summary, feature.search-filter, feature.webrepos, feature.wiki-default-page, master, release-1.1, release-1.2, release-1.3
Commit:cadbc040a10a6b7473b53e1b4ab820ed180b611f
Parents: 6b32413e69dbb982b58957931a38dce5f4b1a00c
Message: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.
Changes:
Asrc/IDF/templates/idf/source/git/help.html (full)
Asrc/IDF/templates/idf/source/mercurial/help.html (full)
Asrc/IDF/templates/idf/source/svn/help.html (full)
Awww/media/idf/img/help.png
Msrc/IDF/Views/Source.php (2 diffs)
Msrc/IDF/conf/urls.php (1 diff)
Msrc/IDF/templates/idf/source/git/tree.html (1 diff)
Msrc/IDF/templates/idf/source/mercurial/tree.html (1 diff)
Msrc/IDF/templates/idf/source/svn/tree.html (1 diff)

File differences

src/IDF/Views/Source.php
3737
3838
3939
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
4058
4159
4260
......
82100
83101
84102
85
103
86104
87105
88106
'pl', 'pm', 'rb', 'js', 'html',
'html', 'xhtml', 'xml', 'xsl');
/**
* Display help on how to checkout etc.
*/
public $help_precond = array('IDF_Precondition::accessSource');
public function help($request, $match)
{
$title = sprintf(__('%s Source Help'), (string) $request->project);
$scm = IDF_Scm::get($request->project);
$scmConf = $request->conf->getVal('scm', 'git');
$params = array(
'page_title' => $title,
'title' => $title,
'scm' => $scmConf,
);
return Pluf_Shortcuts_RenderToResponse('idf/source/'.$scmConf.'/help.html',
$params, $request);
}
public $changeLog_precond = array('IDF_Precondition::accessSource');
public function changeLog($request, $match)
{
$branches = $scm->getBranches();
if (count($branches) == 0) {
// Redirect to the project home
$url = Pluf_HTTP_URL_urlForView('IDF_Views_Project::home',
$url = Pluf_HTTP_URL_urlForView('IDF_Views_Source::help',
array($request->project->shortname));
return new Pluf_HTTP_Response_Redirect($url);
}
src/IDF/conf/urls.php
164164
165165
166166
167
168
169
170
171
172
167173
168174
169175
// ---------- SCM ----------------------------------------
$ctl[] = array('regex' => '#^/p/([\-\w]+)/source/help/$#',
'base' => $base,
'priority' => 4,
'model' => 'IDF_Views_Source',
'method' => 'help');
$ctl[] = array('regex' => '#^/p/([\-\w]+)/source/tree/([^/]+)/$#',
'base' => $base,
'priority' => 4,
src/IDF/templates/idf/source/git/help.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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}
src/IDF/templates/idf/source/git/tree.html
4343
4444
4545
46
46
4747
4848
4949
</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}
src/IDF/templates/idf/source/mercurial/help.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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}
src/IDF/templates/idf/source/mercurial/tree.html
4343
4444
4545
46
46
4747
4848
4949
</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}
src/IDF/templates/idf/source/svn/help.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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}
src/IDF/templates/idf/source/svn/tree.html
5656
5757
5858
59
59
6060
6161
6262
{/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}

Archive Download the corresponding diff file