Issue 110: Add list of projects user is owner of to forge admin

This commit is contained in:
Nathan Adams 2015-10-27 19:14:07 -05:00
parent ccafac393d
commit 7532cb9b16
2 changed files with 11 additions and 0 deletions

View File

@ -450,11 +450,13 @@ class IDF_Views_Admin
} else { } else {
$form = new IDF_Form_Admin_UserUpdate(null, $params); $form = new IDF_Form_Admin_UserUpdate(null, $params);
} }
$ownedProjects = \IDF_Views::getOwnedProjects($user);
return Pluf_Shortcuts_RenderToResponse('idf/gadmin/users/update.html', return Pluf_Shortcuts_RenderToResponse('idf/gadmin/users/update.html',
array( array(
'page_title' => $title, 'page_title' => $title,
'cuser' => $user, 'cuser' => $user,
'form' => $form, 'form' => $form,
'ownedProjects' => $ownedProjects
), ),
$request); $request);
} }

View File

@ -128,6 +128,15 @@ address{/blocktrans}</p>
able to create new projects and update other non staff users. able to create new projects and update other non staff users.
{/blocktrans}</p> {/if} {/blocktrans}</p> {/if}
</div> </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} {/block}