Thanks all
On Apr 20, 2012 5:21 PM, "pbreit" <[email protected]> wrote:
> I ended up just coding my own navbar and sticking it in a function in
> models. Now that I look at it, I probably should have used URL()s.
>
> def user_bar():
> action = '/user'
> if auth.user:
> logout=A('logout', _href=action+'/logout')
> profile=A('profile', _href=action+'/profile')
> password=A('change password', _href=action+'/change_password')
> bar = SPAN(auth.user.email, ' | ', profile, ' | ', password, ' |
> ', logout, _class='auth_navbar')
> else:
> login=A('login', _href=action+'/login')
> register=A('register',_href=action+'/register')
> lost_password=A('lost password',
> _href=action+'/request_reset_password')
> bar = SPAN(' ', login, ' | ', register, ' | ', lost_password,
> _class='auth_navbar')
> return bar
>