srchub

srchub Commit Details


Date:2016-03-06 16:55:29 (8 years 9 months ago)
Author:Natalie Adams
Branch:master
Commit:403f15a46ef874264f6baa93ce6cf61ce9e0b4b3
Parents: a118e8c73a8ed71680cbd1a3b6c3a79c9bc0cc2d
Message:Issue 135: Add number of pending project requests to forge management text link

Changes:

File differences

indefero/src/IDF/Middleware.php
107107
108108
109109
110
110111
111112
112113
$c = array();
$c['request'] = $request;
$c['isAdmin'] = ($request->user->administrator or $request->user->staff);
$c["pendingProjects"] = Pluf::factory("IDF_ProjectRequest")->getCount();
if (isset($request->project)) {
$c['project'] = $request->project;
$c['isOwner'] = $request->user->hasPerm('IDF.project-owner',
indefero/src/IDF/templates/idf/main-menu.html
1717
1818
1919
20
20
2121
2222
2323
{foreach $allProjects as $p}
<li class="projectitem"><a href="{url 'IDF_Views_Project::home', array($p.shortname)}"><img src="{media '/idf/img/no_logo.png'}" data-logo="{$p.logo}" class="logo" data-src="{url 'IDF_Views_Project::logo64', array($p.shortname)}" alt="{trans 'Project logo'}" />{if $p.private}<img class="lock" src="{media '/idf/img/lock.png'}" alt="{trans 'Private project'}" />{/if}{$p}</a></li>
{/foreach}</ul>
{/if}</li>{if $isAdmin}<li><a href="{url 'IDF_Views_Admin::forge'}">{trans 'Forge Management'}</a></li>{/if}<li>
{/if}</li>{if $isAdmin}<li><a href="{url 'IDF_Views_Admin::forge'}">{trans 'Forge Management'} {if $pendingProjects > 0}({$pendingProjects}){/if}</a></li>{/if}<li>
<a href="{url 'IDF_Views::faq'}" title="{trans 'Help and accessibility features'}">{trans 'Help'}</a></li>
</ul>

Archive Download the corresponding diff file

Branches

Number of commits:
Page rendered in 0.05617s using 20 queries.