Spain -> Spanish
[wolnelektury.git] / wolnelektury / templates / base.html
1 {% load i18n %}
2 {% load chunks compressed catalogue_tags sponsor_tags %}
3 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
4     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
5 <html xmlns="http://www.w3.org/1999/xhtml">
6     <head>
7         <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
8         <title>{% block title %}WolneLektury.pl{% endblock %}</title>
9         <link rel="icon" href="{{ STATIC_URL }}img/favicon.png" type="image/x-icon" />
10         {% compressed_css "all" %}
11         <script type="text/javascript">var LANGUAGE_CODE = "{{ LANGUAGE_CODE}}";</script>
12         {% compressed_js "jquery" %}
13         {% compressed_js "all" %}
14         {% block extrahead %}
15         {% endblock %}
16     </head>
17     <body id="{% block bodyid %}base{% endblock %}">
18         <!--[if lt IE 7]><link href={{ STATIC_URL }}infobar/infobar.css rel=stylesheet>
19         <div id=infobar><a href=http://browsehappy.pl/infobar>
20         {% trans "Internet Explorer cannot display this site properly. Click here to read more..." %}
21         </a></div><div id=viewplot><script src={{ STATIC_URL }}infobar/infobar.js></script><![endif]-->
22         {% block bodycontent %}
23         <div id="top-message">
24             {% chunk "top-message" %}
25         </div>
26         <div id="onepercent-banner" style="display:none">
27             <a href="{% url 1percent %}" id="onepercent-text"></a>
28             <a href="{% url 1percent %}" id="onepercent-see-more">{% trans "See more" %}</a>
29         </div>
30         <div id="header">
31             <div id="logo">
32                 <a href="/"><img src="{{ STATIC_URL }}img/logo.png" alt="WolneLektury.pl - logo" /></a>
33             </div>
34             <div id="user-info" style="display:none">
35                 {% if user.is_authenticated %}
36                     <p>
37                         {% trans "Welcome" %}, <strong>{{ user.username }}</strong>
38                         | <a href="{% url user_shelves %}" id="user-shelves-link">{% trans "Your shelves" %}</a>
39                         {% if user.is_staff %}
40                         | <a href="/admin/">{% trans "Administration" %}</a>
41                         {% endif %}
42                         | <a href="{% url logout %}?next={{ request.get_full_path }}">{% trans "Logout" %}</a>
43                     </p>
44                 {% else %}
45                     <p><a href="{% url login %}" class="login-register-link">{% trans "Sign in" %} / {% trans "Register" %}</a></p>
46                 {% endif %}
47             </div>
48             <div class="social-links" style="float:right">
49                 <a href="http://pl-pl.facebook.com/pages/Wolne-Lektury/203084073268"><img src="{{ STATIC_URL }}img/social/facebook.png" alt="WolneLektury @ Facebook" /></a>
50                 <a href="http://twitter.com/wolnelektury"><img src="{{ STATIC_URL }}img/social/twitter.png" alt="WolneLektury @ Twitter" /></a>
51                 <a href="http://nasza-klasa.pl/profile/30441509"><img src="{{ STATIC_URL }}img/social/naszaklasa.png" alt="WolneLektury @ Nasza-Klasa" /></a>     
52             </div>
53                         <div class="lang-menu" style="float:right;">
54                                 <form action="/i18n/setlang/" method="post">
55                                         {% trans "Choose your interface language: " %} <select name="language">
56                                                 {% for lang in LANGUAGES %}
57                                                 <option value="{{ lang.0 }}"{% ifequal lang.0 LANGUAGE_CODE %} selected="selected"{% endifequal %}>{{ lang.1 }}</option>
58                                                 {% endfor %}
59                                         </select>
60                                         <input type="submit" value="{% trans "Choose language" %}">
61                                 </form>
62                         </div>                  
63             <div class="clearboth"></div>
64         </div>
65         <div id="maincontent">
66             {% block body %}
67             {% endblock %}    
68         </div>
69         <div class="clearboth"></div>
70         <div id="footer">
71             <p>
72                 {% blocktrans %}
73                                 Wolne Lektury is a project lead by <a href="http://nowoczesnapolska.org.pl/">Modern Poland Foundation</a>.
74                                 Digital reproductions are made by <a href="http://www.bn.org.pl/">The National Library</a>, based on TNL resources. 
75                                 Hosting <a href="http://eo.pl/">EO Networks</a>.
76                                 {% endblocktrans %}
77             </p>
78             <p>
79                 {% blocktrans %}
80                                 Modern Poland Foundation, 00-514 Warsaw, ul. MarszaƂkowska 84/92 lok. 125, tel/fax: (22) 621-30-17
81                 e-mail: <a href="mailto:fundacja@nowoczesnapolska.org.pl">fundacja@nowoczesnapolska.org.pl</a>
82                                 {% endblocktrans %}
83             </p>
84
85                         {% sponsor_page "footer" %}
86         </div>
87         <div id="login-register-window">
88             <div class="header"><a href="#" class="jqmClose">{% trans "Close" %}</a></div>
89             <div class="target">
90                 <form method="post" action="{% url login %}" id="login-form" class="cuteform">
91                     <h2>{% trans "Sign in" %} / <a href="#" id="show-registration-form" style="font-size: 0.85em; font-weight: normal">{% trans "Register" %}</a></h2>
92                     <p><span id="id_login-__all__"></span></p>
93                     <ol>
94                         {% authentication_form %}
95                         <li><input type="submit" value="{% trans "Sign in" %}" /></li>
96                     </ol>
97                 </form>
98                 <form method="post" action="{% url register %}" id="registration-form" class="cuteform" style="display: none;">
99                     <h2><a href="#" id="show-login-form" style="font-size: 0.85em; font-weight: normal">{% trans "Sign in" %}</a> / {% trans "Register" %}</h2>
100                     <p><span id="id_registration-__all__"></span></p>
101                     <ol>
102                         {% user_creation_form %}
103                         <li><input type="submit" value="{% trans "Register" %}" /></li>
104                     </ol>
105                 </form>
106             </div>
107         </div>
108         <div id="user-shelves-window">
109             <div class="header"><a href="#" class="jqmClose">{% trans "Close" %}</a></div>
110             <div class="target">
111                 <p><img src="{{ STATIC_URL }}img/indicator.gif" alt="*"/> {% trans "Loading" %}</p>
112             </div>
113         </div>
114         {% endblock bodycontent %}
115         <script type="text/javascript">
116         var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
117         document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
118         </script>
119         <script type="text/javascript">
120         var pageTracker = _gat._getTracker("UA-2576694-1");
121         pageTracker._trackPageview();
122         </script>
123     </body>
124 </html>