c69da0728ca920c0235784b25a2a7dfbe4ae843e
[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/img/favicon.png" type="image/x-icon" />
10         {% compressed_css "all" %}
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/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/infobar/infobar.js></script><![endif]-->
21         {% block bodycontent %}
22         <div id="top-message">
23             {% chunk "top-message" %}
24         </div>
25         <div id="onepercent-banner" style="display:none">
26             <a href="{% url 1percent %}" id="onepercent-text"></a>
27             <a href="{% url 1percent %}" id="onepercent-see-more">{% trans "See more" %}</a>
28         </div>
29         <div id="header">
30             <div id="logo">
31                 <a href="/"><img src="/static/img/logo.png" alt="WolneLektury.pl - logo" /></a>
32             </div>
33             <div id="user-info" style="display:none">
34                 {% if user.is_authenticated %}
35                     <p>
36                         {% trans "Welcome" %}, <strong>{{ user.username }}</strong>
37                         | <a href="{% url user_shelves %}" id="user-shelves-link">{% trans "Your shelves" %}</a>
38                         {% if user.is_staff %}
39                         | <a href="/admin/">{% trans "Administration" %}</a>
40                         {% endif %}
41                         | <a href="{% url logout %}?next={{ request.get_full_path }}">{% trans "Logout" %}</a>
42                     </p>
43                 {% else %}
44                     <p><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/img/social/facebook.png" /></a>
49                 <a href="http://twitter.com/wolnelektury"><img src="/static/img/social/twitter.png" /></a>
50                 <a href="http://nasza-klasa.pl/profile/30441509"><img src="/static/img/social/naszaklasa.png" /></a>     
51             </div>
52             <div class="clearboth"></div>
53         </div>
54         <div id="maincontent">
55             {% block body %}
56             {% endblock %}    
57         </div>
58         <div class="clearboth"></div>
59         <div id="footer">
60             <p>
61                 {% blocktrans %}
62                                 Wolne Lektury is a project lead by <a href="http://nowoczesnapolska.org.pl/">Modern Poland Foundation</a>.
63                                 Digital reproductions are made by <a href="http://www.bn.org.pl/">The National Library</a>, based on TNL resources. 
64                                 Hosting <a href="http://eo.pl/">EO Networks</a>.
65                                 {% endblocktrans %}
66             </p>
67             <p>
68                 {% blocktrans %}
69                                 Modern Poland Foundation, 00-514 Warsaw, ul. MarszaƂkowska 84/92 lok. 125, tel/fax: (22) 621-30-17
70                 e-mail: <a href="mailto:fundacja@nowoczesnapolska.org.pl">fundacja@nowoczesnapolska.org.pl</a>
71                                 {% endblocktrans %}
72             </p>
73
74                         {% sponsor_page "footer" %}
75         </div>
76         <div id="login-register-window">
77             <div class="header"><a href="#" class="jqmClose">{% trans "Close" %}</a></div>
78             <div class="target">
79                 <form method="post" action="{% url login %}" id="login-form" class="cuteform">
80                     <h2>{% trans "Sign in" %} / <a href="#" id="show-registration-form" style="font-size: 0.85em; font-weight: normal">{% trans "Register" %}</a></h2>
81                     <p><span id="id_login-__all__"></span></p>
82                     <ol>
83                         {% authentication_form %}
84                         <li><input type="submit" value="{% trans "Sign in" %}" /></li>
85                     </ol>
86                 </form>
87                 <form method="post" action="{% url register %}" id="registration-form" class="cuteform" style="display: none;">
88                     <h2><a href="#" id="show-login-form" style="font-size: 0.85em; font-weight: normal">{% trans "Sign in" %}</a> / {% trans "Register" %}</h2>
89                     <p><span id="id_registration-__all__"></span></p>
90                     <ol>
91                         {% user_creation_form %}
92                         <li><input type="submit" value="{% trans "Register" %}" /></li>
93                     </ol>
94                 </form>
95             </div>
96         </div>
97         <div id="user-shelves-window">
98             <div class="header"><a href="#" class="jqmClose">{% trans "Close" %}</a></div>
99             <div class="target">
100                 <p><img src="/static/img/indicator.gif" alt="*"/> {% trans "Loading" %}</p>
101             </div>
102         </div>
103         {% endblock bodycontent %}
104         <script type="text/javascript">
105         var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
106         document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
107         </script>
108         <script type="text/javascript">
109         var pageTracker = _gat._getTracker("UA-2576694-1");
110         pageTracker._trackPageview();
111         </script>
112     </body>
113 </html>