mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 09:53:15 +00:00
Remove user var from templates
This commit is contained in:
@@ -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>
|
||||
|
Reference in New Issue
Block a user