X-Git-Url: https://code.grnet.gr/git/pithos-web-client/blobdiff_plain/5b380d95b98880ac3ef780d2fd6ba13d8eea31bc..9eb7052536b656411b39add52a41a96781322921:/src/gr/grnet/pithos/web/client/StatusPanel.java diff --git a/src/gr/grnet/pithos/web/client/StatusPanel.java b/src/gr/grnet/pithos/web/client/StatusPanel.java index 97cee7b..41739ef 100644 --- a/src/gr/grnet/pithos/web/client/StatusPanel.java +++ b/src/gr/grnet/pithos/web/client/StatusPanel.java @@ -34,52 +34,45 @@ */ package gr.grnet.pithos.web.client; -import com.google.gwt.core.client.GWT; import com.google.gwt.i18n.client.Dictionary; -import com.google.gwt.user.client.ui.Anchor; -import com.google.gwt.user.client.ui.Composite; -import com.google.gwt.user.client.ui.HTML; -import com.google.gwt.user.client.ui.HasHorizontalAlignment; -import com.google.gwt.user.client.ui.HorizontalPanel; -import com.google.gwt.user.client.ui.VerticalPanel; +import com.google.gwt.user.client.ui.*; /** * The panel that displays a status bar with quota information. */ public class StatusPanel extends Composite { - /** - * The constructor of the status panel. - */ - public StatusPanel() { - Dictionary otherProperties = Dictionary.getDictionary("otherProperties"); + /** + * The constructor of the status panel. + */ + public StatusPanel() { + Dictionary otherProperties = Dictionary.getDictionary("otherProperties"); + final String COMPANY_URL = otherProperties.get("COMPANY_URL"); + final String COPYRIGHT_MESSAGE = otherProperties.get("COPYRIGHT_MESSAGE"); + final String SYNNEFO_VERSION = otherProperties.get("SYNNEFO_VERSION"); - HorizontalPanel outer = new HorizontalPanel(); - outer.setWidth("100%"); - outer.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER); + HorizontalPanel outer = new HorizontalPanel(); + outer.setWidth("100%"); + outer.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER); VerticalPanel inner = new VerticalPanel(); inner.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER); - HorizontalPanel firstLine = new HorizontalPanel(); - firstLine.setSpacing(8); - firstLine.add(new Anchor("About")); - firstLine.add(new HTML("|")); - firstLine.add(new Anchor("Help")); - firstLine.add(new HTML("|")); - firstLine.add(new Anchor("Contact")); - firstLine.add(new HTML("|")); - firstLine.add(new Anchor("Terms")); - firstLine.add(new HTML("|")); - firstLine.add(new Anchor("Privacy")); - inner.add(firstLine); + HorizontalPanel firstLine = new HorizontalPanel(); + firstLine.setSpacing(8); + firstLine.add(new HTML("" + COPYRIGHT_MESSAGE + "")); + inner.add(firstLine); HorizontalPanel secondLine = new HorizontalPanel(); - secondLine.add(new HTML("Pithos Web Client v" + otherProperties.get("version") + " Copyright (C) 2011-2013 Greek Research and Technology Network")); - secondLine.addStyleName("grnet-sign"); + secondLine.add(new HTML( + "
" + + "Powered by Synnefo" + + " v" + SYNNEFO_VERSION + "" + + "
")); +// secondLine.addStyleName("software"); inner.add(secondLine); outer.add(inner); outer.addStyleName("pithos-statusbar"); - initWidget(outer); - } + initWidget(outer); + } }