]> dev.renevier.net Git - syj.git/blobdiff - application/layouts/scripts/footer.phtml
display logged user pseudo in footer
[syj.git] / application / layouts / scripts / footer.phtml
index 08b2ff95e67124410037a5aa61b731706c0167f5..f2c1b13e85483ae9ef8c6d2246660cd7dbfd1768 100644 (file)
@@ -37,6 +37,20 @@ if ($mainpage or $this->loggedUser) {
             'action'     => 'index',
             'controller' => 'account'),
         $this->translate("my account"), true,
+        'logged-show logged-pseudo',
+        $this->loggedUser ?  " ({$this->loggedUser->pseudo})": " (%s)"
+        );
+}
+
+/*
+ * list link
+ */
+if ($mainpage or $this->loggedUser) {
+    echo $this->footerLink(array(
+            'route' => 'list',
+            'action'     => 'index',
+            'controller' => 'list'),
+        $this->translate("my routes"), false,
         'logged-show');
 }