Changes "/static/" to {{ STATIC_URL }} in templates.
[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_URL }}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_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="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_URL }}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_URL }}img/social/facebook.png" /></a>
49                 <a href="http://twitter.com/wolnelektury"><img src="{{ STATIC_URL }}social/twitter.png" /></a>
50                 <a href="http://nasza-klasa.pl/profile/30441509"><img src="{{ STATIC_URL }}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                 Wolne Lektury to projekt prowadzony przez <a href="http://nowoczesnapolska.org.pl/">Fundację Nowoczesna
62                 Polska</a>. Reprodukcje cyfrowe wykonane przez <a href="http://www.bn.org.pl/">Bibliotekę Narodową</a>
63                 z egzemplarzy pochodzących ze zbiorów BN. Hosting <a href="http://eo.pl/">EO Networks</a>.
64             </p>
65             <p>
66                 Fundacja Nowoczesna Polska, 00-514 Warszawa, ul. Marszałkowska 84/92 lok. 125, tel/fax: (22) 621-30-17,
67                 e-mail: <a href="mailto:fundacja@nowoczesnapolska.org.pl">fundacja@nowoczesnapolska.org.pl</a>
68             </p>
69
70                         {% sponsor_page "footer" %}
71         </div>
72         <div id="login-register-window">
73             <div class="header"><a href="#" class="jqmClose">{% trans "Close" %}</a></div>
74             <div class="target">
75                 <form method="post" action="{% url login %}" id="login-form" class="cuteform">
76                     <h2>{% trans "Sign in" %} / <a href="#" id="show-registration-form" style="font-size: 0.85em; font-weight: normal">{% trans "Register" %}</a></h2>
77                     <p><span id="id_login-__all__"></span></p>
78                     <ol>
79                         {% authentication_form %}
80                         <li><input type="submit" value="{% trans "Sign in" %}" /></li>
81                     </ol>
82                 </form>
83                 <form method="post" action="{% url register %}" id="registration-form" class="cuteform" style="display: none;">
84                     <h2><a href="#" id="show-login-form" style="font-size: 0.85em; font-weight: normal">{% trans "Sign in" %}</a> / {% trans "Register" %}</h2>
85                     <p><span id="id_registration-__all__"></span></p>
86                     <ol>
87                         {% user_creation_form %}
88                         <li><input type="submit" value="{% trans "Register" %}" /></li>
89                     </ol>
90                 </form>
91             </div>
92         </div>
93         <div id="user-shelves-window">
94             <div class="header"><a href="#" class="jqmClose">{% trans "Close" %}</a></div>
95             <div class="target">
96                 <p><img src="{{ STATIC_URL }}img/indicator.gif" alt="*"/> {% trans "Loading" %}</p>
97             </div>
98         </div>
99         {% endblock bodycontent %}
100         <script type="text/javascript">
101         var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
102         document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
103         </script>
104         <script type="text/javascript">
105         var pageTracker = _gat._getTracker("UA-2576694-1");
106         pageTracker._trackPageview();
107         </script>
108     </body>
109 </html>