mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-14 13:33:14 +00:00
218 lines
7.0 KiB
Twig
218 lines
7.0 KiB
Twig
{# empty Twig template #}
|
|
|
|
<ul id="tree" class="filetree">
|
|
|
|
{% if user.is_admin() %}
|
|
<li>
|
|
<a target="right" href="sitestruct.php">
|
|
<img src="/skins/admin/Dashboard.png" />
|
|
{% trans 'Tableau de bord' %}
|
|
</a>
|
|
</li>
|
|
{% else %}
|
|
<li>
|
|
{{ registry.get('GV_ServerName') }}
|
|
</li>
|
|
{% endif %}
|
|
|
|
{% if user.is_admin() %}
|
|
<li>
|
|
<a target="right" href="/admin/global_values.php">
|
|
<img src="/skins/admin/Setup.png" />
|
|
Setup
|
|
</a>
|
|
</li>
|
|
{% if registry.get('GV_sphinx') %}
|
|
<li>
|
|
<a target="right" href="/admin/sphinxconf.php">
|
|
Sphinx Conf
|
|
</a>
|
|
</li>
|
|
{% endif %}
|
|
{% endif %}
|
|
|
|
<li class="{% if feature == 'connected' %}selected{% endif %}">
|
|
<a target="right" href="sessionwhois.php" class="ajax zone_online_users">
|
|
<img src="/skins/admin/Connected.png" />
|
|
{% trans 'admin::utilisateurs: utilisateurs connectes' %}
|
|
</a>
|
|
</li>
|
|
|
|
{% if 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" />
|
|
{% trans 'admin::utilisateurs: utilisateurs' %}
|
|
</a>
|
|
</li>
|
|
<li class="{% if feature == 'registrations' %}selected{% endif %}">
|
|
<a target="right" href="demand.php?act=LISTUSERS">
|
|
<img src="/skins/admin/Demandes.png" />
|
|
{% trans 'admin::utilisateurs: demandes en cours' %}
|
|
</a>
|
|
</li>
|
|
{% endif %}
|
|
|
|
{% if user.ACL().has_right('bas_chupub') %}
|
|
<li class="">
|
|
<a target="right" href="/admin/publications/list/" class="ajax">
|
|
<img src="/skins/icons/rss16.png" />
|
|
{% trans 'Publications' %}
|
|
</a>
|
|
</li>
|
|
{% endif %}
|
|
|
|
{% if user.ACL().has_right('taskmanager') %}
|
|
<li class="{% if feature == 'taskmanager' %}selected{% endif %}">
|
|
<a target="right" href="taskmanager.php">
|
|
<img src="/skins/admin/TaskManager.png" />
|
|
{% trans 'admin::utilisateurs: gestionnaire de taches' %}
|
|
</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="databases.php">
|
|
<img src="/skins/admin/DatabasesAvailable.png" />
|
|
{% trans 'admin::utilisateurs: bases de donnees' %}
|
|
</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="database.php?p0={{ sbas_id }}">
|
|
<img src="/skins/admin/Database.png"/>
|
|
{{ databox.get_viewname() }}
|
|
</a>
|
|
</div>
|
|
<ul>
|
|
|
|
{% if user.ACL().has_right_on_sbas( sbas_id , 'bas_modify_struct') %}
|
|
<li>
|
|
<a target="right" href="structure.php?act=STRUCTURE&p0={{ sbas_id }}">
|
|
<img src="/skins/icons/miniadjust01.gif"/>
|
|
{% trans 'admin::structure: reglage de la structure' %}
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a target="right" href="/admin/description/{{ sbas_id }}/">
|
|
<img src="/skins/icons/miniadjust01.gif"/>
|
|
{% trans 'CHAMPS' %}
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a target="right" href="/admin/subdefs/{{ sbas_id }}/">
|
|
<img src="/skins/icons/miniadjust01.gif"/>
|
|
{% trans 'SUBDEFS' %}
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a target="right" href="statbits.php?act=STATBITS&p0={{ sbas_id }}">
|
|
<img src="/skins/icons/miniadjust02.gif"/>
|
|
{% trans 'admin::status: reglage des status' %}
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a target="right" href="cgus.php?p0={{ sbas_id }}">
|
|
{% trans 'admin:: CGUs' %}
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a target="right" href="collorder.php?p0={{ sbas_id }}">
|
|
<img src="/skins/icons/miniadjust03.gif"/>
|
|
{% trans 'admin::collection: ordre des collections' %}
|
|
</a>
|
|
</li>
|
|
{% endif %}
|
|
|
|
{% set seeUsrGene = false %}
|
|
|
|
{% for coll in databox.get_collections() %}
|
|
{% if 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"/>
|
|
{% trans 'admin::utilisateurs: utilisateurs' %}
|
|
</a>
|
|
</li>
|
|
{% endif %}
|
|
|
|
{% for collection in databox.get_collections() %}
|
|
{% if (collection.get_base_id() in user.ACL.get_granted_base(['canadmin'])|keys
|
|
or collection.get_base_id() in user.ACL.get_granted_base(['manage'])|keys
|
|
or collection.get_base_id() in user.ACL.get_granted_base(['modify_struct'])|keys) %}
|
|
|
|
<li>
|
|
<div style="padding:0 0 2px 0;">
|
|
<a target="right" href="collection.php?act=COLLECTION&p0={{ sbas_id }}&p1={{ collection.get_base_id() }}">
|
|
{{ collection.get_name() }}
|
|
</a>
|
|
</div>
|
|
<ul>
|
|
|
|
{% if (user.ACL.has_right_on_base(collection.get_base_id(), 'modify_struct')) %}
|
|
<li>
|
|
<a target="right" href="sugval.php?p0={{ sbas_id }}&p1={{ collection.get_base_id() }}">
|
|
<img src="/skins/icons/foldph20open_0.gif"/>
|
|
{% trans 'admin::base: preferences de collection' %}
|
|
</a>
|
|
</li>
|
|
{% endif %}
|
|
|
|
{% if (user.ACL.has_right_on_base( collection.get_base_id(), 'canadmin')) %}
|
|
{% if (user.ACL.has_right_on_base( collection.get_base_id(), 'canmodifrecord')
|
|
and user.ACL.has_right_on_base( collection.get_base_id(), 'manage')
|
|
and 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"/>
|
|
{% trans 'admin::utilisateurs: utilisateurs' %}
|
|
</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"/>
|
|
' . $row["dbname"] . '(' . $row["host"] . ':' . $row["port"] . ')
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|