Replaced 'Ver trabalhos' to 'Meus trabalhos' in templates/base.html
[cascardo/ema.git] / templates / base.html
1 <!-- -*- coding: utf-8 -*-
2  Copyright (C) 2008 Lincoln de Sousa <lincoln@minaslivre.org>
3
4  This program is free software; you can redistribute it and/or
5  modify it under the terms of the GNU General Public License as
6  published by the Free Software Foundation; either version 2 of the
7  License, or (at your option) any later version.
8
9  This program is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  General Public License for more details.
13
14  You should have received a copy of the GNU General Public
15  License along with this program; if not, write to the
16  Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17  Boston, MA 02111-1307, USA.
18 -->
19 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
20           "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
21 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pt_BR" lang="pt_BR">
22   <head>
23     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
24     <link href="/css/reset.css" type="text/css" rel="stylesheet" />
25     <link href="/css/geral.css" rel="stylesheet" type="text/css" />
26     <title>Encontro Mineiro de Software Livre</title>
27   </head>
28   <body>
29     <div id="esquerda">
30       <h1><a href="/"><img src="/imgs/emsl.png" alt="EMSL - Encontro Mineiro de Software Livre" /></a></h1>
31       <ul id="menu">
32         <li><a href="/">Início</a></li>
33         {% for i in menus %}
34         <li><a href="{{ i.entry.get_absolute_url }}">{{ i }}</a></li>
35         {% endfor %}
36       </ul>
37     </div>
38
39     <div id="direita">
40       <div id="top-right">
41
42         {% if not user.is_authenticated %}
43
44         <form id="login-form" action="/login/" method="post">
45           <label for="login" class="inline">usuário</label>
46           <input type="text" id="login" name="username" size="16" />
47           <label for="passwd" class="inline">senha</label>
48           <input type="password" id="passwd" name="password" size="16" />
49           <input type="submit" value="ENTRAR" class="button" />
50         </form>
51
52         {% else %}
53
54         <ul id="menu_usuario">
55
56           {% if user.palestrante_set.all %}
57           <li><a href="/speaker/{{ user.palestrante_set.get.id }}/">Editar dados pessoais</a></li>
58           <li><a href="/talks/add/">Enviar trabalho</a></li>
59           <li><a href="/speaker/{{ user.palestrante_set.get.id }}/talks/">Meus trabalhos cadastrados</a></li>
60           {% endif %}
61
62           {% if user.participante_set.all %}
63           <li><a href="/gerar-boleto">Gerar Boleto</a></li>
64           {% endif %}
65
66           {% if user.is_staff %}
67           <li><a href="/admin">Administrar o conteúdo</a></li>
68           {% endif %}
69
70           <li><a href="/logout">Sair</a></li>
71
72         </ul>
73
74         {% endif %}
75       </div>
76
77     <div id="content">
78       {% block content %}
79
80       {% endblock %}
81     </div>
82   </body>
83 </html>