Removed empty app (previously removed).
[wolnelektury.git] / wolnelektury / templates / base.html
1 {% load chunks compressed catalogue_tags sponsor_tags %}
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4 <html xmlns="http://www.w3.org/1999/xhtml">
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/img/favicon.png" type="image/x-icon" />
9         {% compressed_css "all" %}
10         {% compressed_js "jquery" %}
11         {% compressed_js "all" %}
12         {% block extrahead %}
13         {% endblock %}
14     </head>
15     <body id="{% block bodyid %}base{% endblock %}">
16         <!--[if lt IE 7]><link href=/static/infobar/infobar.css rel=stylesheet>
17         <div id=infobar><a href=http://browsehappy.pl/infobar>
18         Internet Explorer nie potrafi poprawnie wyświetlić tej strony. Kliknij tutaj, aby dowiedzieć się więcej...
19         </a></div><div id=viewplot><script src=/static/infobar/infobar.js></script><![endif]-->
20         {% block bodycontent %}
21         <div id="top-message">
22             {% chunk "top-message" %}
23         </div>
24         <div id="onepercent-banner" style="display:none">
25             <a href="{% url 1percent %}" id="onepercent-text"></a>
26             <a href="{% url 1percent %}" id="onepercent-see-more">Zobacz więcej</a>
27         </div>
28         <div id="header">
29             <div id="logo">
30                 <a href="/"><img src="/static/img/logo.png" alt="WolneLektury.pl - logo" /></a>
31             </div>
32             <div id="user-info" style="display:none">
33                 {% if user.is_authenticated %}
34                     <p>
35                         Witaj, <strong>{{ user.username }}</strong>
36                         | <a href="{% url user_shelves %}" id="user-shelves-link">Twoje półki</a>
37                         {% if user.is_staff %}
38                         | <a href="/admin/">Administracja</a>
39                         {% endif %}
40                         | <a href="{% url logout %}?next={{ request.get_full_path }}">Wyloguj</a>
41                     </p>
42                 {% else %}
43                     <p><a href="{% url login %}" class="login-register-link">Zaloguj się / Załóż konto</a></p>
44                 {% endif %}
45             </div>
46             <div class="social-links" style="float:right">
47                 <a href="http://pl-pl.facebook.com/pages/Wolne-Lektury/203084073268"><img src="/static/img/social/facebook.png" /></a>
48                 <a href="http://twitter.com/wolnelektury"><img src="/static/img/social/twitter.png" /></a>
49                 <a href="http://nasza-klasa.pl/profile/30441509"><img src="/static/img/social/naszaklasa.png" /></a>     
50             </div>
51             <div class="clearboth"></div>
52         </div>
53         <div id="maincontent">
54             {% block body %}
55             {% endblock %}    
56         </div>
57         <div class="clearboth"></div>
58         <div id="footer">
59             <p>
60                 Wolne Lektury to projekt prowadzony przez <a href="http://nowoczesnapolska.org.pl/">Fundację Nowoczesna
61                 Polska</a>. Reprodukcje cyfrowe wykonane przez <a href="http://www.bn.org.pl/">Bibliotekę Narodową</a>
62                 z egzemplarzy pochodzących ze zbiorów BN. Hosting <a href="http://eo.pl/">EO Networks</a>.
63             </p>
64             <p>
65                 Fundacja Nowoczesna Polska, 00-514 Warszawa, ul. Marszałkowska 84/92 lok. 125, tel/fax: (22) 621-30-17,
66                 e-mail: <a href="mailto:fundacja@nowoczesnapolska.org.pl">fundacja@nowoczesnapolska.org.pl</a>
67             </p>
68
69                         {% sponsor_page "footer" %}
70         </div>
71         <div id="login-register-window">
72             <div class="header"><a href="#" class="jqmClose">Zamknij</a></div>
73             <div class="target">
74                 <form method="post" action="{% url login %}" id="login-form" class="cuteform">
75                     <h2>Zaloguj się / <a href="#" id="show-registration-form" style="font-size: 0.85em; font-weight: normal">Załóż konto</a></h2>
76                     <p><span id="id_login-__all__"></span></p>
77                     <ol>
78                         {% authentication_form %}
79                         <li><input type="submit" value="Zaloguj się" /></li>
80                     </ol>
81                 </form>
82                 <form method="post" action="{% url register %}" id="registration-form" class="cuteform" style="display: none;">
83                     <h2><a href="#" id="show-login-form" style="font-size: 0.85em; font-weight: normal">Zaloguj się</a> / Załóż konto</h2>
84                     <p><span id="id_registration-__all__"></span></p>
85                     <ol>
86                         {% user_creation_form %}
87                         <li><input type="submit" value="Załóż konto" /></li>
88                     </ol>
89                 </form>
90             </div>
91         </div>
92         <div id="user-shelves-window">
93             <div class="header"><a href="#" class="jqmClose">Zamknij</a></div>
94             <div class="target">
95                 <p><img src="/static/img/indicator.gif" alt="*"/> Ładowanie</p>
96             </div>
97         </div>
98         {% endblock bodycontent %}
99         <script type="text/javascript">
100         var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
101         document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
102         </script>
103         <script type="text/javascript">
104         var pageTracker = _gat._getTracker("UA-2576694-1");
105         pageTracker._trackPageview();
106         </script>
107     </body>
108 </html>