Redirect after successful login to root page
authorJaroslav Tulach <jaroslav.tulach@apidesign.org>
Sun, 20 Sep 2009 11:00:36 +0200
changeset 104e37b229e238b
parent 103 9a1eda26132d
child 105 6e55d5c85d3c
Redirect after successful login to root page
freemarkerdor/src/main/resources/cz/xelfi/quoridor/freemarkerdor/UI/Bundle.properties
freemarkerdor/src/main/resources/cz/xelfi/quoridor/freemarkerdor/UI/Bundle_cs.properties
freemarkerdor/src/main/resources/cz/xelfi/quoridor/freemarkerdor/UI/index.fmt
freemarkerdor/src/main/resources/cz/xelfi/quoridor/freemarkerdor/UI/login.fmt
     1.1 --- a/freemarkerdor/src/main/resources/cz/xelfi/quoridor/freemarkerdor/UI/Bundle.properties	Sun Sep 20 10:50:35 2009 +0200
     1.2 +++ b/freemarkerdor/src/main/resources/cz/xelfi/quoridor/freemarkerdor/UI/Bundle.properties	Sun Sep 20 11:00:36 2009 +0200
     1.3 @@ -1,5 +1,6 @@
     1.4 -TITLE=<a href="http://en.wikipedia.org/wiki/Quoridor">Quoridor</a> Community Server
     1.5 -copyright=<a href="http://en.wikipedia.org/wiki/Quoridor">Quoridor</a> Community Server, Version {0}, (c) Jaroslav Tulach 2009
     1.6 +TITLE=<a href="http://en.wikipedia.org/wiki/Quoridor">Quoridor</a> On-line
     1.7 +TITLE_PLAIN=Quoridor On-line
     1.8 +copyright=<a href="http://en.wikipedia.org/wiki/Quoridor">Quoridor</a> On-line, Version {0}, (c) Jaroslav Tulach 2009
     1.9  
    1.10  Waiting=Waiting for {0}
    1.11  YourTurn=Your Turn!
     2.1 --- a/freemarkerdor/src/main/resources/cz/xelfi/quoridor/freemarkerdor/UI/Bundle_cs.properties	Sun Sep 20 10:50:35 2009 +0200
     2.2 +++ b/freemarkerdor/src/main/resources/cz/xelfi/quoridor/freemarkerdor/UI/Bundle_cs.properties	Sun Sep 20 11:00:36 2009 +0200
     2.3 @@ -1,5 +1,6 @@
     2.4 -TITLE=Komunitn\u00ED server <a href="http://cs.wikipedia.org/wiki/Quoridor">Quoridor</a>
     2.5 -copyright=Komunitn\u00ED server <a href="http://cs.wikipedia.org/wiki/Quoridor">Quoridor</a>, Verze {0}, napsal Jaroslav Tulach roku 2009
     2.6 +TITLE=<a href="http://cs.wikipedia.org/wiki/Quoridor">Quoridor</a> pro V\u00E1s
     2.7 +TITLE_PLAIN=Quoridor pro V\u00E1s
     2.8 +copyright=<a href="http://cs.wikipedia.org/wiki/Quoridor">Quoridor</a> pro V\u00E1s, Verze {0}, napsal Jaroslav Tulach roku 2009
     2.9  
    2.10  
    2.11  Waiting=\u010Cek\u00E1 se na {0}
    2.12 @@ -67,7 +68,6 @@
    2.13    5#zb\u00FDv\u00E1 {0} pl\u016Ftk\u016F\
    2.14  })
    2.15  
    2.16 -TITLE=Komunitn\u00ED server Quoridor
    2.17  NAME=Jm\u00E9no
    2.18  PASSWORD=Heslo
    2.19  LOGIN=P\u0159ihl\u00E1sit se
     3.1 --- a/freemarkerdor/src/main/resources/cz/xelfi/quoridor/freemarkerdor/UI/index.fmt	Sun Sep 20 10:50:35 2009 +0200
     3.2 +++ b/freemarkerdor/src/main/resources/cz/xelfi/quoridor/freemarkerdor/UI/index.fmt	Sun Sep 20 11:00:36 2009 +0200
     3.3 @@ -31,7 +31,7 @@
     3.4    <head>
     3.5      <title>
     3.6          <#if (toMove > 0)>${bundle.YourTurn} - </#if>
     3.7 -        ${bundle.TITLE}
     3.8 +        ${bundle.TITLE_PLAIN}
     3.9      </title>
    3.10      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    3.11      <meta http-equiv="REFRESH" content="60;URL=/">
     4.1 --- a/freemarkerdor/src/main/resources/cz/xelfi/quoridor/freemarkerdor/UI/login.fmt	Sun Sep 20 10:50:35 2009 +0200
     4.2 +++ b/freemarkerdor/src/main/resources/cz/xelfi/quoridor/freemarkerdor/UI/login.fmt	Sun Sep 20 11:00:36 2009 +0200
     4.3 @@ -1,8 +1,11 @@
     4.4  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
     4.5  <html>
     4.6    <head>
     4.7 -    <title></title>
     4.8 +    <title>${bundle.TITLE_PLAIN}</title>
     4.9      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    4.10 +    <#if user?? >
    4.11 +      <meta http-equiv="REFRESH" content="1;URL=/">
    4.12 +    </#if>
    4.13    </head>
    4.14    <body>
    4.15        <h1>${bundle.TITLE}</h1>