     return {link: link}
 
 
-module.directive("tgProjectMenu", ["$log", "$compile", "$rootScope", ProjectMenuDirective])
+module.directive("tgProjectMenu", ["$log", "$compile", "$tgAuth", "$rootScope", ProjectMenuDirective])

                    <li><a href="" title="Logout">Logout</a></li>
                </ul>
                <a href="" title="User preferences" class="avatar">
                    <img src="/images/unnamed.png" alt="username"/>
                </a>
            </div>
        </div>

## Project
#############################################################################

ProjectMenuDirective = ($log, $compile, $auth, $rootscope) ->
    menuEntriesTemplate = _.template("""
    <div class="menu-container">
        <ul class="main-nav">
