workaround for django ticket 17111; cover in api fix
[wolnelektury.git] / wolnelektury / templates / superbase.html
index cd66590..a4a7830 100644 (file)
@@ -45,7 +45,7 @@
                 <span>
                 {% cache 60 tagline LANGUAGE_CODE %}
                     {% url book_list as b %}
                 <span>
                 {% cache 60 tagline LANGUAGE_CODE %}
                     {% url book_list as b %}
-                    {% url infopage 'o-projekcie' as r %}
+                    {% url infopage 'prawa' as r %}
                         {% count_books book_count %}
                     {% blocktrans count book_count as c %}
                     <a href='{{b}}'>{{c}}</a> free reading you have <a href='{{r}}'>right to</a>
                         {% count_books book_count %}
                     {% blocktrans count book_count as c %}
                     <a href='{{b}}'>{{c}}</a> free reading you have <a href='{{r}}'>right to</a>
@@ -96,7 +96,7 @@
 
 
 
 
 
 
-            <form id="search-area" action="/fullsearch/" class="hidelabels">
+            <form id="search-area" action="{% url search %}" class="hidelabels">
                 
                 <div id="search-field" class="grid-line">
                        <label for="search">{{search_form.q.label}}</label>
                 
                 <div id="search-field" class="grid-line">
                        <label for="search">{{search_form.q.label}}</label>
                        {% catalogue_menu %}
                {% endcache %}
 
                        {% catalogue_menu %}
                {% endcache %}
 
-            <form action="{% url django.views.i18n.set_language %}" method="post">
-            <div id="lang-menu">
-                <span id='lang-button' class='mono'>
+            <div id="lang-menu" class="hoverget">
+                <span id='lang-button' class='mono hoverclick'>
+                    <span class="lang-flag">⚐</span>
                     {% trans "Language versions" %}</span>
                 <div id="lang-menu-items">
                 {% for lang in LANGUAGES %}
                     {% trans "Language versions" %}</span>
                 <div id="lang-menu-items">
                 {% for lang in LANGUAGES %}
-                    <button type="submit" name="language"
+                    <form action="{% url django.views.i18n.set_language %}" method="post">
+                    <input type="hidden" name="language" value="{{ lang.0 }}" />
+                    <button type="submit"
                         class="{% ifequal lang.0 LANGUAGE_CODE %}active{% endifequal %} mono"
                         class="{% ifequal lang.0 LANGUAGE_CODE %}active{% endifequal %} mono"
-                        value="{{ lang.0 }}">{{ lang.1 }}</button>
+                        >{{ lang.1 }}</button>
+                   </form>
                 {% endfor %}
                 </div>
             </div>
                 {% endfor %}
                 </div>
             </div>
-            </form>
             </div>
 
             <div class="clearboth"></div>
             </div>
 
             <div class="clearboth"></div>
         </script>
         {% compressed_js "base" %}
 
         </script>
         {% compressed_js "base" %}
 
-        <!--{{ piwik_tag|safe }}
+        {{ piwik_tag|safe }}
         <script type="text/javascript">
         var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
         document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
         <script type="text/javascript">
         var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
         document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
         <script type="text/javascript">
         var pageTracker = _gat._getTracker("UA-2576694-1");
         pageTracker._trackPageview();
         <script type="text/javascript">
         var pageTracker = _gat._getTracker("UA-2576694-1");
         pageTracker._trackPageview();
-        </script>-->
+        </script>
 
                {% block extrabody %}
                {% endblock %}
 
                {% block extrabody %}
                {% endblock %}