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