Indefero

Indefero Commit Details


Date:2011-02-23 11:12:29 (13 years 9 months ago)
Author:William MARTIN
Branch: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, release-1.1, release-1.2, release-1.3
Commit:3e238bea0b723cf74e6d688bcf6dfbb3ddb0c2ab
Parents: 266c2976325cb567e4e6bc13b47917fe3f8b677b
Message:Enhancement of the invalid revision handler Show the list of available branch

Changes:

File differences

src/IDF/Views/Source.php
5656
5757
5858
59
60
61
5962
6063
6164
6265
6366
67
6468
6569
6670
public function invalidRevision($request, $match)
{
$title = sprintf(__('%s Invalid Revision'), (string) $request->project);
$scm = IDF_Scm::get($request->project);
$branches = $scm->getBranches();
$commit = $match[2];
$params = array(
'page_title' => $title,
'title' => $title,
'commit' => $commit,
'branches' => $branches,
);
return Pluf_Shortcuts_RenderToResponse('idf/source/invalid_revision.html',
$params, $request);
src/IDF/templates/idf/source/invalid_revision.html
55
66
77
8
9
10
11
12
13
14
15
16
17
818
919
1020
<p>{blocktrans}The revision <b>{$commit}</b> is not valid or does not exist
in this repository.{/blocktrans}</p>
<p>{blocktrans}List of available branch are listed below :{/blocktrans}</p>
<ul>
{foreach $branches as $branch => $path}
{aurl 'url', 'IDF_Views_Source::treeBase', array($project.shortname, $branch)}
<li class="label">
<a href="{$url}" class="label">{if $path}{$path}{else}{$branch}{/if}</a>
</li>
{/foreach}
</ul>
{if $isOwner or $isMember}
{aurl 'url', 'IDF_Views_Source::help', array($project.shortname)}
<p>{blocktrans}If this is a new repository, the reason for this error

Archive Download the corresponding diff file

Page rendered in 0.07433s using 13 queries.