diff --git a/indefero/src/IDF/Middleware.php b/indefero/src/IDF/Middleware.php index c59217b..79a015c 100644 --- a/indefero/src/IDF/Middleware.php +++ b/indefero/src/IDF/Middleware.php @@ -107,6 +107,7 @@ function IDF_Middleware_ContextPreProcessor($request) $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', diff --git a/indefero/src/IDF/templates/idf/main-menu.html b/indefero/src/IDF/templates/idf/main-menu.html index b515939..0771abf 100644 --- a/indefero/src/IDF/templates/idf/main-menu.html +++ b/indefero/src/IDF/templates/idf/main-menu.html @@ -17,7 +17,7 @@ {foreach $allProjects as $p}