Commit 1d24fb47b972f591d4368ef66c2e3077db4c906e

Authored by Alexandre Barbosa
Committed by Sergio Oliveira
1 parent 9ddd0e5e

Handling browserid scritps in base template

Signed-off-by: Alexandre Barbosa <alexandreab@live.com>
Signed-off-by: Carlos Oliveira <carlospecter@gmail.com>
Showing 1 changed file with 5 additions and 3 deletions   Show diff stats
colab/templates/base.html
... ... @@ -221,9 +221,11 @@
221 221  
222 222 {% include "tz/set_utc_offset.html" %}
223 223  
224   - <script src="https://login.persona.org/include.js"></script>
225   - <script src="{% static 'browserid/api.js' %}"></script>
226   - <script src="{% static 'browserid/browserid.js' %}"></script>
  224 + {% if BROWSERID_ENABLED %}
  225 + <script src="https://login.persona.org/include.js"></script>
  226 + <script src="{% static 'browserid/api.js' %}"></script>
  227 + <script src="{% static 'browserid/browserid.js' %}"></script>
  228 + {% endif %}
227 229  
228 230 {% block footer_js %}{% endblock %}
229 231 </body>
... ...