PHRAS-350 Deprecate client

This commit is contained in:
Nicolas Le Goff
2015-01-12 15:10:46 +01:00
parent 56c6133693
commit b3d50619c5
7 changed files with 49 additions and 78 deletions

View File

@@ -8,29 +8,11 @@
</li>
{% if module != "lightbox" and app['authentication'].isAuthenticated() %}
<li>
{% if module == "prod" %}
<a target="_self" href="{{ path('get_client') }}">
<a target="_blank" href="{{ path('prod') }}">
<span class="">
{% trans 'admin::monitor: Ancienne version (client)' %}
{% trans 'admin::monitor: production' %}
</span>
</a>
{% else %}
{% if app['browser'].isNewGeneration %}
{% if module == "client" %}
<a target="_self" href="{{ path('prod') }}">
<span class="">
{% trans 'admin::monitor: Nouvelle version (prod)' %}
</span>
</a>
{% else %}
<a target="_blank" href="{{ path('prod') }}">
<span class="">
{% trans 'admin::monitor: production' %}
</span>
</a>
{% endif %}
{% endif %}
{% endif %}
</li>
{% if app['browser'].isNewGeneration and app['phraseanet.registry'].get('GV_thesaurus') == true and app['authentication'].getUser().ACL.has_access_to_module('thesaurus') %}
@@ -95,7 +77,7 @@
{% endif %}
{# MODULE #}
{% if module == "prod" or module == "client" %}
{% if module == "prod" %}
<li>
<a href="#" onclick="getHome('PUBLI');" >
<span>
@@ -122,7 +104,7 @@
<div class="PNB" style="left:auto;overflow:hidden;">
<ol>
{% if app['authentication'].isAuthenticated() and (module == "client" or module == "prod") %}
{% if app['authentication'].isAuthenticated() and module == "prod" %}
<li id="notification_trigger">
<a href="#" style="font-weight:bold;text-decoration:none;">
<span>
@@ -192,7 +174,7 @@
</div>
</div>
{% if app['authentication'].isAuthenticated() and (module == "client" or module == "prod") %}
{% if app['authentication'].isAuthenticated() and module == "prod" %}
<div style="display:none;z-index:30000;" id="notification_box">
{% set notifications = app['events-manager'].get_notifications %}
{% include 'prod/notifications.html.twig' %}