1.1 --- a/freemarkerdor/src/main/java/cz/xelfi/quoridor/freemarkerdor/UI.java Mon Aug 31 22:44:47 2009 +0200
1.2 +++ b/freemarkerdor/src/main/java/cz/xelfi/quoridor/freemarkerdor/UI.java Fri Sep 04 18:01:01 2009 +0200
1.3 @@ -38,6 +38,8 @@
1.4 import java.io.FileInputStream;
1.5 import java.io.IOException;
1.6 import java.net.URI;
1.7 +import java.util.HashMap;
1.8 +import java.util.Map;
1.9 import java.util.Properties;
1.10 import java.util.concurrent.Callable;
1.11 import javax.ws.rs.DefaultValue;
1.12 @@ -117,8 +119,11 @@
1.13 if (v != null) {
1.14 return v;
1.15 }
1.16 + Map<String,Object> map = new HashMap<String,Object>();
1.17 Document doc = base.path("games").path(id).accept(MediaType.TEXT_XML).get(Document.class);
1.18 - return new Viewable("game.fmt", doc);
1.19 + map.put("doc", doc);
1.20 + map.put("user", user);
1.21 + return new Viewable("game.fmt", map);
1.22 }
1.23
1.24 @GET