You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@roller.apache.org by sn...@apache.org on 2006/12/16 06:09:02 UTC

svn commit: r487758 - /incubator/roller/trunk/web/themes/frontpage/_header.vm

Author: snoopdave
Date: Fri Dec 15 21:09:01 2006
New Revision: 487758

URL: http://svn.apache.org/viewvc?view=rev&rev=487758
Log:
Added conditional register, login, logout links

Modified:
    incubator/roller/trunk/web/themes/frontpage/_header.vm

Modified: incubator/roller/trunk/web/themes/frontpage/_header.vm
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/web/themes/frontpage/_header.vm?view=diff&rev=487758&r1=487757&r2=487758
==============================================================================
--- incubator/roller/trunk/web/themes/frontpage/_header.vm (original)
+++ incubator/roller/trunk/web/themes/frontpage/_header.vm Fri Dec 15 21:09:01 2006
@@ -23,8 +23,15 @@
                 <td class="bannerLeft"></td>
                 <td class="bannerRight">
                    <a href="$url.absoluteSite">$config.siteName</a> |
+                   #if($utils.userAuthenticated)
                    <a href="$url.absoluteSite/roller-ui/yourWebsites.do">Main Menu</a> |
-                   <a href="$url.login">Login</a>
+                       <a href="$url.logout">Logout</a>
+                   #else
+                       #if($config.registrationEnabled)
+                           <a href="$url.absoluteSite/roller-ui/user.do?method=registerUser">Register</a> |
+                       #end
+                           <a href="$url.login">Login</a>
+                   #end
                 </td>
             </tr>
         </table>