Indefero

Indefero Commit Details


Date:2010-02-22 13:41:12 (14 years 9 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:e2bce19526355fc6fd50230aa49fdf5246259f62
Parents: 9653f1a341b526eb25a18a4760ce162fff1f49fb
Message:Removed the project list on the public profile page.

Changes:

File differences

src/IDF/Views/User.php
192192
193193
194194
195
196195
197196
198197
......
201200
202201
203202
204
205203
206204
207205
*/
public function view($request, $match)
{
$projects = IDF_Views::getProjects($request->user);
$sql = new Pluf_SQL('login=%s', array($match[1]));
$users = Pluf::factory('Pluf_User')->getList(array('filter'=>$sql->gen()));
if (count($users) != 1 or !$users[0]->active) {
return Pluf_Shortcuts_RenderToResponse('idf/user/public.html',
array('page_title' => (string) $users[0],
'member' => $users[0],
'projects' => $projects,
),
$request);
}
src/IDF/templates/idf/user/public.html
1919
2020
2121
22
23
24
25
2622
2723
2824
<div class="issue-submit-info">
<p>{blocktrans}You are looking at the public profile of {$member}.{/blocktrans}</p>
</div>
<h2>{trans 'Projects'}</h2>
<ul>{foreach $projects as $p}
<li><a href="{url 'IDF_Views_Project::home', array($p.shortname)}">{$p}</a></li>
{/foreach}</ul>
{/block}

Archive Download the corresponding diff file

Page rendered in 0.07149s using 13 queries.