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 {
|
} 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);
|
||||||
}
|
}
|
||||||
|
@ -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}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user