Issue 110: Add list of projects user is owner of to forge admin
This commit is contained in:
parent
ccafac393d
commit
7532cb9b16
@ -450,11 +450,13 @@ class IDF_Views_Admin
|
||||
} else {
|
||||
$form = new IDF_Form_Admin_UserUpdate(null, $params);
|
||||
}
|
||||
$ownedProjects = \IDF_Views::getOwnedProjects($user);
|
||||
return Pluf_Shortcuts_RenderToResponse('idf/gadmin/users/update.html',
|
||||
array(
|
||||
'page_title' => $title,
|
||||
'cuser' => $user,
|
||||
'form' => $form,
|
||||
'ownedProjects' => $ownedProjects
|
||||
),
|
||||
$request);
|
||||
}
|
||||
|
@ -128,6 +128,15 @@ address{/blocktrans}</p>
|
||||
able to create new projects and update other non staff users.
|
||||
{/blocktrans}</p> {/if}
|
||||
</div>
|
||||
<div>
|
||||
<ul>
|
||||
{if $ownedProjects}
|
||||
{foreach $ownedProjects as $p}
|
||||
<li> <a href="{url 'IDF_Views_Project::home', array($p.name)}">{$p.name} - {$p.shortdesc}</a> </li>
|
||||
{/foreach}
|
||||
{/if}
|
||||
</ul>
|
||||
</div>
|
||||
{/block}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user