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