]> git.parisson.com Git - teleforma.git/commitdiff
fix tools
authoryomguy <yomguy@parisson.com>
Fri, 13 Jul 2012 10:26:46 +0000 (12:26 +0200)
committeryomguy <yomguy@parisson.com>
Fri, 13 Jul 2012 10:26:46 +0000 (12:26 +0200)
teleforma/templates/teleforma/courses.html
teleforma/templates/telemeta/base.html
teleforma/templatetags/teleforma_tags.py

index a140c47bdb071d562a951a6acc185f205a8a36e7..14fbe83d04d7c076d62faa3791d8334954387fae 100644 (file)
@@ -38,6 +38,7 @@ $(document).ready(function(){
 </div>
 
 {% block module-action %}
+{% get_telecaster as telecaster %}
 {%  if telecaster %}
 <div class="module_action">
 <a href="{% url teleforma-conference-record %}" class="component_icon button" id="action_red">{% trans "New conference" %}</a>
index dbc6ebd3f8041a81a2926ad2bc2170c4ba834fe4..bdf93fec95ad0bf514a27d6522d70fc58cc4107c 100644 (file)
@@ -2,7 +2,10 @@
 {% load i18n %}
 {% load telemeta_utils %}
 {% load teleforma_tags %}
+{% get_googletools as googletools %}
+{%  if googletools %}
 {% load googletools %}
+{% endif %}
 {% get_current_language as LANGUAGE_CODE %}
 {% get_available_languages as LANGUAGES %}
 <html xmlns="http://www.w3.org/1999/xhtml" lang="{{ LANGUAGE_CODE }}" xml:lang="{{ LANGUAGE_CODE }}" {% if LANGUAGE_BIDI %}dir="rtl"{% endif %}>
index 6cfa7568bb946d3cb6b5f81540f9358d83556228..63da4f990a6d3050422b70193372c35eede23e9f 100644 (file)
@@ -164,9 +164,10 @@ def get_all_courses():
     return Course.objects.all()
 
 @register.assignment_tag
-def telecaster():
+def get_telecaster():
+    print settings.INSTALLED_APPS
     return 'telecaster' in settings.INSTALLED_APPS
 
 @register.assignment_tag
-def googletools():
+def get_googletools():
     return 'googletools' in settings.INSTALLED_APPS