update to Django 1.3; cache some api calls
[wolnelektury.git] / wolnelektury / templates / catalogue / main_page.html
index f89e67d..b9cb5a3 100644 (file)
@@ -1,6 +1,6 @@
 {% extends "base.html" %}
 {% load i18n %}
-{% load catalogue_tags chunks cache stats %}
+{% load catalogue_tags chunks cache reporting_stats %}
 
 
 {% block tagline %}
@@ -39,32 +39,15 @@ a <a href='http://creativecommons.org/licenses/by-sa/3.0/deed.pl'>free license</
     <div id="intro">
         <p id="tags-description">↓ {% trans "Browse books by categories" %} ↓</p>
         <div id="propaganda">
-            <h2>Turniej Elektrybałtów</h2>
-            <p><a target="_blank" href='http://turniej.wolnelektury.pl'>
-                <img src='{{ STATIC_URL }}img/turniej-maly.png' alt='Logo Turnieju' width='60' height='64' style='float:left;margin:1em;' />
-            </a>
-            Ogłaszamy <strong>otwarty konkurs na najlepszego automatycznego poetę</strong>! Konkurs startuje
-            12 września 2011 roku – z okazji 90 rocznicy urodzin Stanisława Lema.
-            Termin nadsyłania prac upływa z końcem października 2011 roku.
-            </p>
-            <p class="see-more"><a target="_blank" href="http://turniej.wolnelektury.pl" >Idź do strony konkursu ⇒</a></p>
-
-            <h2>Wolne Lektury na Androida</h2>
-            <p><a target="_blank" href='https://market.android.com/details?id=pl.org.nowoczesnapolska.wlmobi'>
-                <img src='{{ STATIC_URL }}img/android-poster.png' alt='Wolne Lektury na Androida' width='260' height='260' />
-            </a></p>
-            <p>Aplikacja Wolnych Lektur już w Android Market. Pobierz na swój telefon lub tablet!</p>
-            <p class="see-more"><a href="https://market.android.com/details?id=pl.org.nowoczesnapolska.wlmobi" >Zobacz aplikację ⇒</a></p>
-
-{% comment %}
-            <h2>Zabawnik</h2>
-            <p><a target="_blank" href='http://zabawnik.org'>
-                <img src='/static/img/zabawnik.png' alt='Zabawnik' width='260' height='108' />
-            </a></p>
-            <p>Zbiór scenariuszy gier i zabaw
-dla dzieci, od wyliczanek poprzez gry planszowe, aż po teatr.</p>
-            <p class="see-more"><a href="http://zabawnik.org" title="Zabawnik">Przejdź do Zabawnika ⇒</a></p>
-{% endcomment %}
+
+            {% chunk "promo" %}
+
+            {% comment %}
+            <h2>Spot promocyjny</h2>
+            <p><iframe width="260" height="162"
+                src="http://www.youtube.com/embed/IteV_EoTrZE"
+                frameborder="0" allowfullscreen></iframe></p>
+            {% endcomment %}
 
             {% comment %}    <h2>{% trans "Books for every school level" %}</h2>
             <ul>
@@ -73,6 +56,7 @@ dla dzieci, od wyliczanek poprzez gry planszowe, aż po teatr.</p>
                 <li><a href="">{% trans "high school" %}</a></li>
             </ul>    {% endcomment %}
 
+            <br/>
             <h2>{% trans "Your shelves with books" %}</h2>
             {% if user.is_authenticated %}
                 {% if shelves %}
@@ -90,13 +74,14 @@ dla dzieci, od wyliczanek poprzez gry planszowe, aż po teatr.</p>
                     <li>{{ new_set_form.name }} <input type="submit" value="{% trans "Create shelf" %}"/></li>
                 </ol>
                 </form>
+                <br/>
             {% else %}
                 <p>{% trans "Create your own book set. You can share it with friends by sending them link to your shelf." %}</p>
                 <p>{% trans "You need to " %} <a class="login-register-link" href="#">{% trans "sign in" %}</a> {% trans "to manage your shelves." %}</p>
             {% endif %}
 
-            <h2>Nowy Leśmianator</h2>
-            <p>Tym razem to Ty decydujesz, co wpadnie do miksera &ndash; a efekt możesz pokazać znajomym!
+            <h2>Leśmianator</h2>
+            <p>Wybierz, co wpadnie do miksera, i pokaż efekt znajomym!
                 </p>
             <p class="see-more" style="clear:both"><a href="{% url lesmianator %}">{% trans "Twórzże się!" %} ⇒</a></p>