@@ -0,0 +1,1443 @@
+package test.pages.master;%0A%0Aimport test.Context;%0Aimport test.HtmlElement;%0Aimport test.pages.components.HtmlBlock;%0A%0Aimport com.bloatit.web.actions.LogoutAction;%0Aimport com.bloatit.web.htmlrenderer.HtmlTools;%0Aimport com.bloatit.web.pages.LoginPage;%0Aimport com.bloatit.web.pages.MyAccountPage;%0Aimport com.bloatit.web.server.Session;%0A%0Apublic class TopBar extends HtmlBlock %7B%0A%0A    protected TopBar() %7B%0A        super();%0A%0A        setId(%22top_bar%22);%0A%0A        Session session = Context.getSession();%0A        if (session.isLogged()) %7B%0A            final String full_name = session.getAuthToken().getMember().getFullname();%0A            final String karma = HtmlTools.compressKarma(session.getAuthToken().getMember().getKarma());%0A            final String memberLink = HtmlTools.generateLink(session, full_name, new MyAccountPage(session))%0A                    + %22%3Cspan class=%5C%22karma%5C%22%3E%22 + karma + %22%3C/span%3E%22;%0A            final String logoutLink = HtmlTools.generateLink(session, session.tr(%22Logout%22), new LogoutAction(session));%0A%0A            add(new HtmlElement(%22span%22).setClass(%22top_bar_component%22).addText(memberLink));%0A            add(new HtmlElement(%22span%22).setClass(%22top_bar_component%22).addText(logoutLink));%0A%0A        %7D else %7B%0A            add(new HtmlElement(%22span%22).setClass(%22top_bar_component%22).addText(HtmlTools.generateLink(session,%0A                    session.tr(%22Login / Signup%22),%0A                    new LoginPage(session))));%0A%0A        %7D%0A    %7D%0A%0A%7D%0A

add the top bar