Fixed user.is_authenticated() in template being a function and not a variable (django tmpl -> jinja)

This commit is contained in:
Felipe Martín 2013-05-30 11:01:32 +02:00
parent c0bc749213
commit 46244b9add
3 changed files with 4 additions and 4 deletions

View File

@ -6,7 +6,7 @@
<div class="row-fluid">
{% for item in page.object_list %}
<div class="span3">
{% if user.is_authenticated %}
{% if user.is_authenticated() %}
<a href="{{ url('blocks_detail', item.data_value) }}">
{% else %}
<a href="#">

View File

@ -2,7 +2,7 @@
{% block head %}
{{ super() }}
{% if user.is_authenticated %}
{% if user.is_authenticated() %}
<script src="http://www.html5canvastutorials.com/libraries/three.min.js"></script>
<script type="text/javascript" src="/static/js/blockRenderer.js"></script>
{% endif %}
@ -27,7 +27,7 @@
{% endif %}
</div>
</div>
{% if user.is_authenticated %}
{% if user.is_authenticated() %}
<script defer="defer" type="text/javascript">
block = BlockRenderer('block', {side:'/static/textures/{{ item.main_texture.get_image() }}'}, '.block-render', 'auto', 'auto');
</script>

View File

@ -6,7 +6,7 @@
<div class="row-fluid">
{% for item in page.object_list %}
<div class="span3">
{% if user.is_authenticated %}
{% if user.is_authenticated() %}
<a href="{{ url('items_detail', item.data_value) }}">
{% else %}
<a href="#">