Fixed user.is_authenticated() in template being a function and not a variable (django tmpl -> jinja)
This commit is contained in:
parent
c0bc749213
commit
46244b9add
|
@ -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="#">
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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="#">
|
||||
|
|
Loading…
Reference in New Issue