Added retry capabillity to head requests
[pithos-web-client] / src / gr / grnet / pithos / web / client / StatusPanel.java
index cf1db77..86d669c 100644 (file)
@@ -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);
@@ -70,7 +74,7 @@ public class StatusPanel extends Composite {
                inner.add(firstLine);
 
         HorizontalPanel secondLine = new HorizontalPanel();
-        secondLine.add(new HTML("Pithos Web Client v0.1 <a class='grnet-sign' href='http://www.grnet.gr'>Copyright (C) 2011-2012 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);