freemarkerdor/src/main/resources/cz/xelfi/quoridor/freemarkerdor/UI/login.fmt
changeset 70 3c9966fc0352
parent 59 fd7e8e705b75
child 88 a3be2be0112f
     1.1 --- a/freemarkerdor/src/main/resources/cz/xelfi/quoridor/freemarkerdor/UI/login.fmt	Fri Sep 04 23:02:23 2009 +0200
     1.2 +++ b/freemarkerdor/src/main/resources/cz/xelfi/quoridor/freemarkerdor/UI/login.fmt	Mon Sep 07 22:27:39 2009 +0200
     1.3 @@ -8,12 +8,18 @@
     1.4        <h1>${bundle.TITLE}</h1>
     1.5        <h2>${bundle.LOGIN}</h2>
     1.6  
     1.7 +      <#if user?? >
     1.8 +        ${bundle("logged", user?string)}
     1.9 +        <a href="/">${bundle.home}</a>
    1.10 +      <#else>
    1.11 +
    1.12        <b>${message!""}</b>
    1.13  
    1.14 -      <form action="login" method="post">
    1.15 +      <form action="/login" method="post">
    1.16              ${bundle.NAME}: <input type="text" name="name"/>
    1.17              ${bundle.PASSWORD}: <input type="password" name="password"/>
    1.18              <input type="submit" value="${bundle.LOGIN}"/>
    1.19        </form>
    1.20 +      </#if>
    1.21    </body>
    1.22  </html>
    1.23 \ No newline at end of file