replace="authCookie: "${authCookie}""
byline="true"
/>
+ <replaceregexp file="${gwt.www.dir}/${gwt.module}/index.html"
+ match="version: (.*)"
+ replace="version: "${version}""
+ byline="true"
+ />
</target>
<target name="uploadToVM" depends="main">
CLOUDBAR_SERVICES = /im/get_services
CLOUDBAR_MENU = /im/get_menu
authCookie=_pithos2_a
-feedbackUrl=/feedback
\ No newline at end of file
+feedbackUrl=/feedback
+version=0.9.0
\ No newline at end of file
@DefaultStringValue("/v1/")
String apiPath();
- /**
- * @return the version string
- */
- @DefaultStringValue("")
- String version();
-
@DefaultStringValue("X-Auth-Token")
String authTokenCookie();
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;
* The constructor of the status panel.
*/
public StatusPanel() {
- Configuration conf = GWT.create(Configuration.class);
+ Dictionary otherProperties = Dictionary.getDictionary("otherProperties");
+
HorizontalPanel outer = new HorizontalPanel();
outer.setWidth("100%");
outer.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);
inner.add(firstLine);
HorizontalPanel secondLine = new HorizontalPanel();
- secondLine.add(new HTML("Pithos Web Client v" + conf.version() + " <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);
var otherProperties = {
loginUrl: "/im/login?next=",
feedbackUrl: "/feedback",
- authCookie: "_pithos2_a"
+ authCookie: "_pithos2_a",
+ version: ""
}
</script>
</head>