mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-13 13:03:20 +00:00
218 lines
7.8 KiB
Twig
218 lines
7.8 KiB
Twig
{# empty Twig template #}
|
|
|
|
<ul id="tree" class="filetree">
|
|
|
|
{% if app['phraseanet.user'].ACL().is_admin() %}
|
|
<li>
|
|
<a target="right" href="/admin/dashboard/" class="ajax">
|
|
<img src="/skins/admin/Dashboard.png" />
|
|
<span>{% trans 'Tableau de bord' %}</span>
|
|
</a>
|
|
</li>
|
|
{% else %}
|
|
<li>
|
|
<span>{{ registry.get('GV_ServerName') }}</span>
|
|
</li>
|
|
{% endif %}
|
|
|
|
{% if app['phraseanet.user'].ACL().is_admin() %}
|
|
<li>
|
|
<a target="right" href="/admin/setup/" class="ajax">
|
|
<img src="/skins/admin/Setup.png" />
|
|
<span>Setup</span>
|
|
</a>
|
|
</li>
|
|
{% if registry.get('GV_sphinx') %}
|
|
<li>
|
|
<a target="right" href="/admin/sphinx/configuration/" class="ajax">
|
|
<span>Sphinx Conf</span>
|
|
</a>
|
|
</li>
|
|
{% endif %}
|
|
{% endif %}
|
|
|
|
<li class="{% if feature == 'connected' %}selected{% endif %}">
|
|
<a target="right" href="/admin/connected-users/" class="ajax zone_online_users">
|
|
<img src="/skins/admin/Connected.png" />
|
|
<span>{% trans 'admin::utilisateurs: utilisateurs connectes' %}</span>
|
|
</a>
|
|
</li>
|
|
|
|
{% if app['phraseanet.user'].ACL().has_right('manageusers') %}
|
|
<li class="{% if feature == 'users' %}selected{% endif %}">
|
|
<a target="right" href="/admin/users/search/" class="ajax zone_editusers">
|
|
<img src="/skins/admin/Users.png" />
|
|
<span>{% trans 'admin::utilisateurs: utilisateurs' %}</span>
|
|
</a>
|
|
</li>
|
|
<li class="{% if feature == 'registrations' %}selected{% endif %}">
|
|
<a target="right" href="/admin/users/demands/" class="ajax">
|
|
<img src="/skins/admin/Demandes.png" />
|
|
<span>{% trans 'admin::utilisateurs: demandes en cours' %}</span>
|
|
</a>
|
|
</li>
|
|
{% endif %}
|
|
|
|
{% if app['phraseanet.user'].ACL().has_right('bas_chupub') %}
|
|
<li class="">
|
|
<a target="right" href="/admin/publications/list/" class="ajax">
|
|
<img src="/skins/icons/rss16.png" />
|
|
<span>{% trans 'Publications' %}</span>
|
|
</a>
|
|
</li>
|
|
{% endif %}
|
|
|
|
{% if app['phraseanet.user'].ACL().has_right('taskmanager') %}
|
|
<li class="{% if feature == 'taskmanager' %}selected{% endif %}">
|
|
<a target="right" href="/admin/task-manager/tasks/" class="ajax">
|
|
<img src="/skins/admin/TaskManager.png" />
|
|
<span>{% trans 'admin::utilisateurs: gestionnaire de taches' %}</span>
|
|
</a>
|
|
</li>
|
|
{% endif %}
|
|
|
|
<li class="open">
|
|
<div class="{% if feature == 'bases' %}selected{% endif %}" style="padding:0 0 2px 0;">
|
|
<a id="TREE_DATABASES" target="right" href="{{ path('admin_databases') }}" class="ajax">
|
|
<img src="/skins/admin/DatabasesAvailable.png" />
|
|
<span>{% trans 'admin::utilisateurs: bases de donnees' %}</span>
|
|
</a>
|
|
</div>
|
|
<ul>
|
|
|
|
{% for databox in databoxes %}
|
|
|
|
{% set sbas_id = databox.get_sbas_id() %}
|
|
|
|
{% if feature in ['base', 'collection', 'user'] and featured == sbas_id %}
|
|
{% set this_is_open = true %}
|
|
{% else %}
|
|
{% set this_is_open = false %}
|
|
{% endif %}
|
|
|
|
{% if this_is_open and feature == 'base' %}
|
|
{% set this_is_selected = true %}
|
|
{% else %}
|
|
{% set this_is_selected = false %}
|
|
{% endif %}
|
|
|
|
<li class="{% if this_is_open %}open{% endif %}">
|
|
<div style="padding:0 0 2px 0;" class="{% if this_is_selected %}selected{% endif %}">
|
|
<a target="right" href="/admin/databox/{{ sbas_id }}/" class="ajax">
|
|
<img src="/skins/admin/Database.png"/>
|
|
<span>{{ databox.get_viewname() }}</span>
|
|
</a>
|
|
</div>
|
|
<ul>
|
|
|
|
{% if app['phraseanet.user'].ACL().has_right_on_sbas( sbas_id , 'bas_modify_struct') %}
|
|
<li>
|
|
<a target="right" class="ajax" href="/admin/structure/{{ sbas_id }}/">
|
|
<img src="/skins/icons/miniadjust01.gif"/>
|
|
<span>{% trans 'admin::structure: reglage de la structure' %}</span>
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a target="right" href="/admin/description/{{ sbas_id }}/" class="ajax">
|
|
<img src="/skins/icons/miniadjust01.gif"/>
|
|
<span>{% trans 'CHAMPS' %}</span>
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a target="right" href="/admin/subdefs/{{ sbas_id }}/">
|
|
<img src="/skins/icons/miniadjust01.gif"/>
|
|
<span>{% trans 'SUBDEFS' %}</span>
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a target="right" href="/admin/statusbit/{{ sbas_id }}/" class="ajax">
|
|
<img src="/skins/icons/miniadjust02.gif"/>
|
|
<span>{% trans 'admin::status: reglage des status' %}</span>
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a target="right" href="/admin/databox/{{ sbas_id }}/cgus/" class="ajax">
|
|
<span>{% trans 'admin:: CGUs' %}</span>
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a target="right" href="/admin/databox/{{ sbas_id }}/collections/order/" class="ajax">
|
|
<img src="/skins/icons/miniadjust03.gif"/>
|
|
<span>{% trans 'admin::collection: ordre des collections' %}</span>
|
|
</a>
|
|
</li>
|
|
{% endif %}
|
|
|
|
{% set seeUsrGene = false %}
|
|
|
|
{% for coll in databox.get_collections() %}
|
|
{% if app['phraseanet.user'].ACL.has_right_on_base( coll.get_base_id() , 'canadmin') %}
|
|
{% set seeUsrGene = true %}
|
|
{% endif %}
|
|
{% endfor %}
|
|
|
|
{% if seeUsrGene %}
|
|
<li>
|
|
<a target="right" href="/admin/users/search/?sbas_id[]={{ sbas_id }}" class="ajax">
|
|
<img src="/skins/admin/Users.png"/>
|
|
<span>{% trans 'admin::utilisateurs: utilisateurs' %}</span>
|
|
</a>
|
|
</li>
|
|
{% endif %}
|
|
|
|
{% for collection in databox.get_collections() %}
|
|
{% if (collection.get_base_id() in app['phraseanet.user'].ACL.get_granted_base(['canadmin'])|keys
|
|
or collection.get_base_id() in app['phraseanet.user'].ACL.get_granted_base(['manage'])|keys
|
|
or collection.get_base_id() in app['phraseanet.user'].ACL.get_granted_base(['modify_struct'])|keys) %}
|
|
|
|
<li>
|
|
<div style="padding:0 0 2px 0;">
|
|
<a target="right" href="/admin/collection/{{ collection.get_base_id() }}/" class="ajax">
|
|
<span>{{ collection.get_name() }}</span>
|
|
</a>
|
|
</div>
|
|
<ul>
|
|
|
|
{% if (app['phraseanet.user'].ACL.has_right_on_base(collection.get_base_id(), 'modify_struct')) %}
|
|
<li>
|
|
<a target="right" href="/admin/collection/{{ collection.get_base_id() }}/suggested-values/" class="ajax">
|
|
<img src="/skins/icons/foldph20open_0.gif"/>
|
|
<span>{% trans 'admin::base: preferences de collection' %}</span>
|
|
</a>
|
|
</li>
|
|
{% endif %}
|
|
|
|
{% if (app['phraseanet.user'].ACL.has_right_on_base( collection.get_base_id(), 'canadmin')) %}
|
|
{% if (app['phraseanet.user'].ACL.has_right_on_base( collection.get_base_id(), 'canmodifrecord')
|
|
and app['phraseanet.user'].ACL.has_right_on_base( collection.get_base_id(), 'manage')
|
|
and app['phraseanet.user'].ACL.has_right_on_sbas( sbas_id, 'bas_manage') ) %}
|
|
<li>
|
|
<a target="right" href="/admin/users/search/?base_id[]={{ collection.get_base_id() }}" class="ajax">
|
|
<img src="/skins/admin/Users.png"/>
|
|
<span>{% trans 'admin::utilisateurs: utilisateurs' %}</span>
|
|
</a>
|
|
</li>
|
|
{% endif %}
|
|
{% endif %}
|
|
|
|
</ul>
|
|
</li>
|
|
|
|
{% endif %}
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
</li>
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
</li>
|
|
|
|
{% for databox in off_databoxes %}
|
|
<li>
|
|
<img src="/skins/icons/db-remove.png"/>
|
|
{{ databox.get_dbname() }} ({{ databox.get_host() }} {{ databox.get_port() }})
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|