Remove user var from templates

This commit is contained in:
Romain Neutron
2012-09-27 22:03:21 +02:00
parent 0be8054790
commit 284f281958
63 changed files with 276 additions and 279 deletions

View File

@@ -9,36 +9,36 @@
<img src="/skins/prod/000000/images/print_history.gif"/>
</button>
{% if user.ACL().has_right('modifyrecord') %}
{% if app['phraseanet.user'].ACL().has_right('modifyrecord') %}
<button class="ui-corner-all TOOL_ppen_btn story_window" title="{% trans 'action : editer' %}">
<img src="/skins/prod/000000/images/ppen_history.gif"/>
</button>
{% endif %}
{% if user.ACL().has_right('changestatus') %}
{% if app['phraseanet.user'].ACL().has_right('changestatus') %}
<button class="ui-corner-all TOOL_chgstatus_btn story_window" title="{% trans 'action : status' %}">
<img src="/skins/prod/000000/images/chgstatus_history.gif"/>
</button>
{% endif %}
{% if user.ACL().has_right('deleterecord') and user.ACL().has_right('addrecord') %}
{% if app['phraseanet.user'].ACL().has_right('deleterecord') and app['phraseanet.user'].ACL().has_right('addrecord') %}
<button class="ui-corner-all TOOL_chgcoll_btn story_window" title="{% trans 'action : collection' %}">
<img src="/skins/prod/000000/images/chgcoll_history.gif"/>
</button>
{% endif %}
{% if user.ACL().has_right('push') %}
{% if app['phraseanet.user'].ACL().has_right('push') %}
<button class="ui-corner-all TOOL_pushdoc_btn story_window" title="{% trans 'action : push' %}">
<img src="/skins/icons/push16.png"/>
</button>
{% endif %}
{% if user.ACL().has_right('push') %}
{% if app['phraseanet.user'].ACL().has_right('push') %}
<button class="ui-corner-all TOOL_feedback_btn story_window" title="{% trans 'Feedback' %}">
<img src="/skins/icons/feedback16.png"/>
</button>
{% endif %}
{% if user.ACL().has_right('bas_chupub') %}
{% if app['phraseanet.user'].ACL().has_right('bas_chupub') %}
<button class="ui-corner-all TOOL_bridge_btn story_window" title="{% trans 'action : bridge' %}">
<img src="/skins/icons/door.png"/>
</button>
@@ -47,7 +47,7 @@
</button>
{% endif %}
{% if user.ACL().has_right('doctools') %}
{% if app['phraseanet.user'].ACL().has_right('doctools') %}
<button class="ui-corner-all TOOL_imgtools_btn story_window" title="{% trans 'action : outils' %}">
<img src="/skins/prod/000000/images/imgtools_history.gif"/>
</button>
@@ -73,7 +73,7 @@
{% for record in Story.get_children().get_elements() %}
<span class="wrapCHIM_{{ record.get_serialize_key() }}">
{{ Macros.element('groupings', Story, record, record, record.get_number(), user) }}
{{ Macros.element('groupings', Story, record, record, record.get_number()) }}
</span>
{% endfor %}
</div>