Change footer according to the rest of the site
[pithos-web-client] / src / gr / grnet / pithos / web / client / StatusPanel.java
index 97cee7b..f1a7f44 100644 (file)
  */
 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.
@@ -53,6 +47,12 @@ public class StatusPanel extends Composite {
         */
        public StatusPanel() {
                Dictionary otherProperties = Dictionary.getDictionary("otherProperties");
+        final String SERVICE_NAME = otherProperties.get("SERVICE_NAME");
+        final String SERVICE_URL = otherProperties.get("SERVICE_URL");
+        final String COMPANY_NAME = otherProperties.get("COMPANY_NAME");
+        final String COMPANY_URL = otherProperties.get("COMPANY_URL");
+        final String COPYRIGHT_MESSAGE = otherProperties.get("COPYRIGHT_MESSAGE");
+        final String SYNNEFO_JS_LIB_VERSION = otherProperties.get("SYNNEFO_JS_LIB_VERSION");
 
                HorizontalPanel outer = new HorizontalPanel();
                outer.setWidth("100%");
@@ -62,20 +62,14 @@ public class StatusPanel extends Composite {
         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"));
+        firstLine.add(new HTML("<a class='grnet-sign' href='" + COMPANY_URL + "'>" + COPYRIGHT_MESSAGE + "</a>"));
                inner.add(firstLine);
 
         HorizontalPanel secondLine = new HorizontalPanel();
-        secondLine.add(new HTML("Pithos Web Client v" + otherProperties.get("version") + " <a class='grnet-sign' href='http://www.grnet.gr'>Copyright (C) 2011-2013 Greek Research and Technology Network</a>"));
-        secondLine.addStyleName("grnet-sign");
+        secondLine.add(new HTML(
+            "<div class='software'>Powered by <a href='" + SERVICE_URL +
+            "'>Synnefo</a> <span class='version'>v " + SYNNEFO_JS_LIB_VERSION + "</span></div>"));
+        secondLine.addStyleName("software");
         inner.add(secondLine);
         outer.add(inner);
         outer.addStyleName("pithos-statusbar");