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">
|
<div class="row-fluid">
|
||||||
{% for item in page.object_list %}
|
{% for item in page.object_list %}
|
||||||
<div class="span3">
|
<div class="span3">
|
||||||
{% if user.is_authenticated %}
|
{% if user.is_authenticated() %}
|
||||||
<a href="{{ url('blocks_detail', item.data_value) }}">
|
<a href="{{ url('blocks_detail', item.data_value) }}">
|
||||||
{% else %}
|
{% else %}
|
||||||
<a href="#">
|
<a href="#">
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
{% block head %}
|
{% block head %}
|
||||||
{{ super() }}
|
{{ super() }}
|
||||||
{% if user.is_authenticated %}
|
{% if user.is_authenticated() %}
|
||||||
<script src="http://www.html5canvastutorials.com/libraries/three.min.js"></script>
|
<script src="http://www.html5canvastutorials.com/libraries/three.min.js"></script>
|
||||||
<script type="text/javascript" src="/static/js/blockRenderer.js"></script>
|
<script type="text/javascript" src="/static/js/blockRenderer.js"></script>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -27,7 +27,7 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% if user.is_authenticated %}
|
{% if user.is_authenticated() %}
|
||||||
<script defer="defer" type="text/javascript">
|
<script defer="defer" type="text/javascript">
|
||||||
block = BlockRenderer('block', {side:'/static/textures/{{ item.main_texture.get_image() }}'}, '.block-render', 'auto', 'auto');
|
block = BlockRenderer('block', {side:'/static/textures/{{ item.main_texture.get_image() }}'}, '.block-render', 'auto', 'auto');
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
<div class="row-fluid">
|
<div class="row-fluid">
|
||||||
{% for item in page.object_list %}
|
{% for item in page.object_list %}
|
||||||
<div class="span3">
|
<div class="span3">
|
||||||
{% if user.is_authenticated %}
|
{% if user.is_authenticated() %}
|
||||||
<a href="{{ url('items_detail', item.data_value) }}">
|
<a href="{{ url('items_detail', item.data_value) }}">
|
||||||
{% else %}
|
{% else %}
|
||||||
<a href="#">
|
<a href="#">
|
||||||
|
|
Loading…
Reference in New Issue