Removed user menu and fixed css to display the logo correctly
authorChristos Stathis <chstath@ebs.gr>
Wed, 8 Feb 2012 12:43:55 +0000 (14:43 +0200)
committerChristos Stathis <chstath@ebs.gr>
Wed, 8 Feb 2012 12:43:55 +0000 (14:43 +0200)
src/gr/grnet/pithos/web/client/TopPanel.java
src/gr/grnet/pithos/web/public/pithos.css

index 0bf6525..b755e7f 100644 (file)
@@ -90,60 +90,6 @@ public class TopPanel extends Composite {
                HTML logos = new HTML("<table><tr><td><a href='/'>" + AbstractImagePrototype.create(images.pithosLogo()).getHTML() + "</a></td></tr></table>");
                logos.addStyleName("pithos-logo");
                inner.add(logos);
-
-        MenuBar username = new MenuBar();
-        username.setStyleName("pithos-usernameMenu");
-        
-        MenuBar userItemMenu = new MenuBar(true);
-        userItemMenu.addStyleName("pithos-userItemMenu");
-        userItemMenu.addItem(new MenuItem("invite friends...", new Command() {
-                       
-                       @Override
-                       public void execute() {
-                               Window.open("/im/invite", "", "");
-                       }
-               }));
-        userItemMenu.addItem(new MenuItem("send feedback...", new Command() {
-                       
-                       @Override
-                       public void execute() {
-                               Window.open("/im/feedback", "", "");
-                       }
-               }));
-        userItemMenu.addItem(new MenuItem("profile...", new Command() {
-                       
-                       @Override
-                       public void execute() {
-                               Window.open("/im/profile", "", "");
-                       }
-               }));
-        userItemMenu.addItem(new MenuItem("change password...", new Command() {
-                       
-                       @Override
-                       public void execute() {
-                               Window.open("/im/password", "", "");
-                       }
-               }));
-        userItemMenu.addItem(new MenuItem("logout", new Command() {
-                       
-                       @Override
-                       public void execute() {
-                               app.logoff();
-                       }
-               }));
-
-        MenuItem userItem = new MenuItem(_app.getUsername(), userItemMenu);
-        userItem.addStyleName("pithos-usernameMenuItem");
-        username.addItem(userItem);
-        username.addSeparator();
-        
-        MenuItem langItem = new MenuItem("en", (Command) null);
-        langItem.addStyleName("pithos-langMenuItem");
-        username.addItem(langItem);
-        
-        inner.add(username);
-        inner.setCellHorizontalAlignment(username, HasHorizontalAlignment.ALIGN_RIGHT);
-        
         outer.add(inner);
         outer.setCellHorizontalAlignment(inner, HasHorizontalAlignment.ALIGN_CENTER);
         outer.setCellVerticalAlignment(inner, HasVerticalAlignment.ALIGN_BOTTOM);
index 39b784f..ac86b31 100644 (file)
@@ -207,32 +207,6 @@ table.pithos-permList.props-labels {
        border-bottom: 1px solid white;
 }
 
-.pithos-usernameMenu {
-    cursor: pointer;
-}
-
-.pithos-usernameMenuItem {
-       background: url(images/down-arrow-light.png) no-repeat scroll right 8px transparent;
-       padding-right: 13px;
-       cursor: pointer;
-    color: white;
-}
-
-.pithos-usernameMenuItem:HOVER {
-       background: url(images/down-arrow-lighter.png) no-repeat scroll right 8px transparent;
-       background-color: #599EBD;
-}
-
-.pithos-usernameMenuItem:ACTIVE {
-       background: url(images/down-arrow-lighter.png) no-repeat scroll right 8px transparent;
-       background-color: #BED5E0;
-}
-
-.pithos-langMenuItem {
-       cursor: pointer;
-    color: #72ADC8;
-}
-
 .gwt-MenuBar-vertical {
        background: #D0E3ED;
 }
@@ -262,10 +236,6 @@ table.pithos-permList.props-labels {
        background-color: #D0E3ED;
 }
 
-.pithos-userItemMenu {
-       background-color: #D0E3ED;
-}
-
 .gwt-popuppanel {
     border: 3px solid #D0E3ED;
     padding: 3px;
@@ -441,7 +411,7 @@ table.pithos-permList.props-labels {
 
 .pithos-logo {
        position: absolute;
-       top: 29px;
+       top: 65px;
 }
 
 .pithos-header {