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