]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/skins/default/templates/footer.html
Migrate to Django 1.6
[osqa.git] / forum / skins / default / templates / footer.html
index e8af78f710530824f337719d9515eab3d3e37ff8..dc00a2f3d50116139b0230462737cf2e319d46de 100644 (file)
@@ -1,51 +1,19 @@
-{% load extra_tags %}
-{% load i18n %}
+{% load extra_tags ui_registry i18n %}
 
-    <div id="ground">
-               <div>
-                       <div class="footerLinks" >
-                               <a href="{% url about %}">{% trans "about" %}</a><span class="link-separator"> |</span>
-                               <a href="{% url faq %}">{% trans "faq" %}</a><span class="link-separator"> |</span>
-                               <a href="{% url privacy %}">{% trans "privacy" %}</a><span class="link-separator"> |</span>
-                {% if settings.SUPPORT_URL %}
-                    <a href="{{settings.SUPPORT_URL}}" target="_blank">{% trans "support" %}</a><span class="link-separator"> |</span>
-                {% endif %}
-                {% spaceless %}
-                               <a href=
-                    {% if settings.CONTACT_URL %}
-                        "{{settings.CONTACT_URL}}"
-                        target="_blank">
-                    {% else %}
-                        "{% url feedback %}?next={{request.path}}">
-                    {% endif %}
-                    {% trans "contact us" %}
-                </a>
-                {% endspaceless %}
-                       </div>
-                 <p>
-                        <a href="http://osqa.net" target="_blank" title="OSQA {{ settings.OSQA_VERSION }} ({{ settings.SVN_REVISION }})">
-                               powered by OSQA
-                        </a>
-                 </p>
-          </div>
-                <div id="licenseLogo">
-                 <a href="http://creativecommons.org/licenses/by/3.0/">
-                                       <img src="{% media  "/media/images/cc-wiki.png" %}" title="Creative Commons: Attribution - Share Alike" alt="cc-wiki" width="50" height="68" />
-                 </a>
-                </div>
-       </div>
-    {% if settings.GOOGLE_ANALYTICS_KEY %}
-        <script type="text/javascript">
 
-          var _gaq = _gaq || [];
-          _gaq.push(['_setAccount', '{{ settings.GOOGLE_ANALYTICS_KEY }}']);
-          _gaq.push(['_trackPageview']);
-
-          (function() {
-            var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
-            ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
-            var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
-          })();
-        </script>
-    {% endif %}
+<div>
+    <div class="footerLinks" >
+        {% loadregistry footer_links %}<span class="link-separator"> |</span>{% endloadregistry %}
+    </div>
+  <p>
+     <a href="http://osqa.net" target="_blank" title="OSQA {{ settings.OSQA_VERSION }} ({{ settings.VCS_REVISION }})">
+        powered by OSQA
+     </a>
+  </p>
+</div>
+ <div id="licenseLogo">
+  <a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/">
+            <img src="{% media  "/media/images/by-sa-88x31.png" %}" title="Creative Commons: Attribution - Share Alike" alt="cc-by-sa" width="88" height="31" />
+  </a>
+ </div>