Removed that annoying banner ;) Next year, make this an admin option.
[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="header">
25             <div id="logo">
26                 <a href="/"><img src="/static/img/logo.png" alt="WolneLektury.pl - logo" /></a>
27             </div>
28             <div id="user-info" style="display:none">
29                 {% if user.is_authenticated %}
30                     <p>
31                         Witaj, <strong>{{ user.username }}</strong>
32                         | <a href="{% url user_shelves %}" id="user-shelves-link">Twoje półki</a>
33                         {% if user.is_staff %}
34                         | <a href="/admin/">Administracja</a>
35                         {% endif %}
36                         | <a href="{% url logout %}?next={{ request.get_full_path }}">Wyloguj</a>
37                     </p>
38                 {% else %}
39                     <p><a href="{% url login %}" class="login-register-link">Zaloguj się / Załóż konto</a></p>
40                 {% endif %}
41             </div>
42             <div class="social-links" style="float:right">
43                 <a href="http://pl-pl.facebook.com/pages/Wolne-Lektury/203084073268"><img src="/static/img/social/facebook.png" /></a>
44                 <a href="http://twitter.com/wolnelektury"><img src="/static/img/social/twitter.png" /></a>
45                 <a href="http://nasza-klasa.pl/profile/30441509"><img src="/static/img/social/naszaklasa.png" /></a>     
46             </div>
47             <div class="clearboth"></div>
48         </div>
49         <div id="maincontent">
50             {% block body %}
51             {% endblock %}    
52         </div>
53         <div class="clearboth"></div>
54         <div id="footer">
55             <p>
56                 Wolne Lektury to projekt prowadzony przez <a href="http://nowoczesnapolska.org.pl/">Fundację Nowoczesna
57                 Polska</a>. Reprodukcje cyfrowe wykonane przez <a href="http://www.bn.org.pl/">Bibliotekę Narodową</a>
58                 z egzemplarzy pochodzących ze zbiorów BN. Hosting <a href="http://eo.pl/">EO Networks</a>.
59             </p>
60             <p>
61                 Fundacja Nowoczesna Polska, 00-514 Warszawa, ul. Marszałkowska 84/92 lok. 125, tel/fax: (22) 621-30-17,
62                 e-mail: <a href="mailto:fundacja@nowoczesnapolska.org.pl">fundacja@nowoczesnapolska.org.pl</a>
63             </p>
64
65                         {% sponsor_page "footer" %}
66         </div>
67         <div id="login-register-window">
68             <div class="header"><a href="#" class="jqmClose">Zamknij</a></div>
69             <div class="target">
70                 <form method="post" action="{% url login %}" id="login-form" class="cuteform">
71                     <h2>Zaloguj się / <a href="#" id="show-registration-form" style="font-size: 0.85em; font-weight: normal">Załóż konto</a></h2>
72                     <p><span id="id_login-__all__"></span></p>
73                     <ol>
74                         {% authentication_form %}
75                         <li><input type="submit" value="Zaloguj się" /></li>
76                     </ol>
77                 </form>
78                 <form method="post" action="{% url register %}" id="registration-form" class="cuteform" style="display: none;">
79                     <h2><a href="#" id="show-login-form" style="font-size: 0.85em; font-weight: normal">Zaloguj się</a> / Załóż konto</h2>
80                     <p><span id="id_registration-__all__"></span></p>
81                     <ol>
82                         {% user_creation_form %}
83                         <li><input type="submit" value="Załóż konto" /></li>
84                     </ol>
85                 </form>
86             </div>
87         </div>
88         <div id="user-shelves-window">
89             <div class="header"><a href="#" class="jqmClose">Zamknij</a></div>
90             <div class="target">
91                 <p><img src="/static/img/indicator.gif" alt="*"/> Ładowanie</p>
92             </div>
93         </div>
94         {% endblock bodycontent %}
95         <script type="text/javascript">
96         var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
97         document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
98         </script>
99         <script type="text/javascript">
100         var pageTracker = _gat._getTracker("UA-2576694-1");
101         pageTracker._trackPageview();
102         </script>
103     </body>
104 </html>