Revision cdc11586

b/build.xml
113 113
   	                   replace="authCookie: "${authCookie}""
114 114
   	                   byline="true"
115 115
   	    />
116
   	    <replaceregexp file="${gwt.www.dir}/${gwt.module}/index.html"
117
   	                   match="version: (.*)"
118
   	                   replace="version: &quot;${version}&quot;"
119
   	                   byline="true"
120
   	    />
116 121
    </target>
117 122

  
118 123
    <target name="uploadToVM" depends="main">
b/runtime.properties
5 5
CLOUDBAR_SERVICES = /im/get_services
6 6
CLOUDBAR_MENU = /im/get_menu
7 7
authCookie=_pithos2_a
8
feedbackUrl=/feedback
8
feedbackUrl=/feedback
9
version=0.9.0
b/src/gr/grnet/pithos/web/client/Configuration.java
56 56
	@DefaultStringValue("/v1/")
57 57
	String apiPath();
58 58

  
59
	/**
60
	 * @return the version string
61
	 */
62
	@DefaultStringValue("")
63
	String version();
64

  
65 59
	@DefaultStringValue("X-Auth-Token")
66 60
	String authTokenCookie();
67 61
	
b/src/gr/grnet/pithos/web/client/Configuration.properties
35 35

  
36 36
cookieSeparator=|
37 37
apiPath=/v1/
38
version=0.8.4
39 38
authTokenCookie=X-Auth-Token
40 39
shibSessionCookiePrefix=_shibsession_
b/src/gr/grnet/pithos/web/client/StatusPanel.java
35 35
package gr.grnet.pithos.web.client;
36 36

  
37 37
import com.google.gwt.core.client.GWT;
38
import com.google.gwt.i18n.client.Dictionary;
38 39
import com.google.gwt.user.client.ui.Anchor;
39 40
import com.google.gwt.user.client.ui.Composite;
40 41
import com.google.gwt.user.client.ui.HTML;
......
51 52
	 * The constructor of the status panel.
52 53
	 */
53 54
	public StatusPanel() {
54
		Configuration conf = GWT.create(Configuration.class);
55
		Dictionary otherProperties = Dictionary.getDictionary("otherProperties");
56

  
55 57
		HorizontalPanel outer = new HorizontalPanel();
56 58
		outer.setWidth("100%");
57 59
		outer.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);
......
72 74
		inner.add(firstLine);
73 75

  
74 76
        HorizontalPanel secondLine = new HorizontalPanel();
75
        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>"));
77
        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>"));
76 78
        secondLine.addStyleName("grnet-sign");
77 79
        inner.add(secondLine);
78 80
        outer.add(inner);
b/src/gr/grnet/pithos/web/public/index.html
68 68
			var otherProperties = {
69 69
				loginUrl: "/im/login?next=",
70 70
				feedbackUrl: "/feedback",
71
				authCookie: "_pithos2_a"
71
				authCookie: "_pithos2_a",
72
				version: ""
72 73
			}
73 74
		</script>
74 75
    </head>

Also available in: Unified diff