Indefero

Indefero Commit Details


Date:2009-05-26 14:59:02 (15 years 6 months ago)
Author:Loic d'Anterroches
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, master, release-1.1, release-1.2, release-1.3
Commit:54b37ac5b61b8e201ca1228a798768d5a0f27dc5
Parents: bc434504b177ac0dfedee0cbded44971d85c208e
Message:Fixed issue 226, branches are displayed only on source tree view.

Changes:

File differences

src/IDF/Views/Source.php
274274
275275
276276
277
277278
278279
279280
......
282283
283284
284285
286
285287
286288
287289
$diff = new IDF_Diff($cobject->changes);
$diff->parse();
$scmConf = $request->conf->getVal('scm', 'git');
$in_branches = $scm->inBranches($commit, '');
return Pluf_Shortcuts_RenderToResponse('idf/source/commit.html',
array(
'page_title' => $page_title,
'cobject' => $cobject,
'commit' => $commit,
'branches' => $branches,
'tree_in' => $in_branches,
'scm' => $scmConf,
'rcommit' => $rcommit,
'large_commit' => $large,
src/IDF/templates/idf/source/commit.html
3838
3939
4040
41
41
4242
43
44
45
43
44
45
4646
4747
48
49
50
51
52
53
54
55
4856
4957
5058
{/block}
{block context}
{if $scm == 'git'}
{if $scm != 'svn'}
<p><strong>{trans 'Branches:'}</strong><br />
{foreach $branches as $branch}
{aurl 'url', 'IDF_Views_Source::commit', array($project.shortname, $branch)}
<span class="label{if $commit == $branch} active{/if}"><a href="{$url}" class="label">{$branch}</a></span><br />
{foreach $branches as $branch => $path}
{aurl 'url', 'IDF_Views_Source::treeBase', array($project.shortname, $branch)}
<span class="label{if in_array($branch, $tree_in)} active{/if}"><a href="{$url}" class="label">{$branch}</a></span><br />
{/foreach}
</p>
{else}
<form class="star" action="{url 'IDF_Views_Source_Svn::changelogRev', array($project.shortname)}" method="get">
<p><strong>{trans 'Revision:'}</strong> {$commit}</p>
<p>
<input accesskey="4" type="text" value="{$commit}" name="rev" size="5" />
<input type="submit" name="s" value="{trans 'Go to revision'}" />
</p>
</form>
{/if}
{/block}

Archive Download the corresponding diff file

Page rendered in 0.08618s using 14 queries.