template/index.html
changeset 23 2fea7d4bdcdb
parent 16 17db9913a8ff
child 32 192ca2513f89
equal deleted inserted replaced
22:7c2788d9a251 23:2fea7d4bdcdb
    50 		     {% if user.is_authenticated %}
    50 		     {% if user.is_authenticated %}
    51 		     <li>{{ user.username }}</li>
    51 		     <li>{{ user.username }}</li>
    52 		     <li><a href="logout" >{% trans "Logout" %}</a></li>
    52 		     <li><a href="logout" >{% trans "Logout" %}</a></li>
    53 		     {% else %}
    53 		     {% else %}
    54 		     <form id="search" method="post" action=".">				
    54 		     <form id="search" method="post" action=".">				
    55 					{{form.as_p}}
    55 					{{ form.as_p }}
    56 		     <input type="submit" value="login" />		     
    56 		     <input type="submit" value="login" />		     
    57 		     </form>
    57 		     </form>
    58 		     <li><a href="/accounts/register">Register</a> </li>
    58 		     <li><a href="/accounts/register">Register</a> </li>
    59 		     {% endif %}
    59 		     {% endif %}
    60 		     </ul>
    60 		     </ul>