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

@@ -10,36 +10,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 basket_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 basket_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 basket_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 basket_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 basket_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 basket_window" title="{% trans 'action : bridge' %}">
<img src="/skins/icons/door.png"/>
</button>
@@ -48,7 +48,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 basket_window" title="{% trans 'action : outils' %}">
<img src="/skins/prod/000000/images/imgtools_history.gif"/>
</button>
@@ -68,9 +68,9 @@
{% import 'prod/WorkZone/Macros.html.twig' as Macros %}
{% if basket.getValidation() %}
{{ Macros.display_validation(app, basket, ordre, user) }}
{{ Macros.display_validation(app, basket, ordre) }}
{% else %}
{{ Macros.display_basket(app, basket, user) }}
{{ Macros.display_basket(app, basket) }}
{% endif %}
</div>