Added retry capabillity to head requests
[pithos-web-client] / src / gr / grnet / pithos / web / client / StatusPanel.java
index e186608..86d669c 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright 2011 GRNET S.A. All rights reserved.
+ * Copyright 2011-2012 GRNET S.A. All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or
  * without modification, are permitted provided that the following
@@ -34,6 +34,8 @@
  */
 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;
@@ -50,6 +52,8 @@ public class StatusPanel extends Composite {
         * The constructor of the status panel.
         */
        public StatusPanel() {
+               Dictionary otherProperties = Dictionary.getDictionary("otherProperties");
+
                HorizontalPanel outer = new HorizontalPanel();
                outer.setWidth("100%");
                outer.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);
@@ -58,7 +62,6 @@ public class StatusPanel extends Composite {
         inner.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);
                HorizontalPanel firstLine = new HorizontalPanel();
                firstLine.setSpacing(8);
-//             firstLine.addStyleName("pithos-statusbar");
                firstLine.add(new Anchor("About"));
                firstLine.add(new HTML("|"));
         firstLine.add(new Anchor("Help"));
@@ -71,7 +74,8 @@ public class StatusPanel extends Composite {
                inner.add(firstLine);
 
         HorizontalPanel secondLine = new HorizontalPanel();
-        secondLine.add(new HTML("<a class='grnet-sign' href='http://www.grnet.gr'>Copyright (C) 2011 Greek Research and Technology Network</a>"));
+        secondLine.add(new HTML("Pithos Web Client v" + otherProperties.get("version") + " <a class='grnet-sign' href='http://www.grnet.gr'>Copyright (C) 2011-2012 Greek Research and Technology Network</a>"));
+        secondLine.addStyleName("grnet-sign");
         inner.add(secondLine);
         outer.add(inner);
         outer.addStyleName("pithos-statusbar");