mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 18:48:51 +02:00
N°8455 - Fix portal environment banner displaying poorly
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -37,17 +37,6 @@ footer{
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Environment banner */
|
|
||||||
#envbanner{
|
|
||||||
position: relative;
|
|
||||||
z-index: 10;
|
|
||||||
padding: 5px 15px;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
#envbanner > button{
|
|
||||||
margin-left: 5px;
|
|
||||||
color: #000;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Topbar */
|
/* Topbar */
|
||||||
#topbar .navbar-header{
|
#topbar .navbar-header{
|
||||||
|
|||||||
@@ -10,7 +10,17 @@
|
|||||||
|
|
||||||
{# session messages #}
|
{# session messages #}
|
||||||
<section class="ipb-page--session-messages">
|
<section class="ipb-page--session-messages">
|
||||||
{% include template('session_messages') %}
|
{% block pEnvBannerWrapper %}
|
||||||
|
{% if app['combodo.current_environment'] != 'production' %}
|
||||||
|
<div id="envbanner" class="ipb-alert alert alert-danger" role="alert">
|
||||||
|
{{ 'Portal:EnvironmentBanner:Title'|dict_format( app['combodo.current_environment']|upper )|raw }}
|
||||||
|
<button class="ipb-button ipb-is-regular ipb-is-default" type="button" onclick="window;location.href='{{ app['url_generator'].generate('p_home', {'switch_env': 'production'}) }}'">
|
||||||
|
{{ 'Portal:EnvironmentBanner:GoToProduction'|dict_s|raw }}
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
{% endblock %}
|
||||||
|
{% include template('session_messages') %}
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
{# tiles wrapper #}
|
{# tiles wrapper #}
|
||||||
|
|||||||
@@ -178,16 +178,6 @@
|
|||||||
</head>
|
</head>
|
||||||
<body class="ipb-body {% block pPageBodyClass %}{% endblock %}" data-gui-type="portal">
|
<body class="ipb-body {% block pPageBodyClass %}{% endblock %}" data-gui-type="portal">
|
||||||
{% block pPageBodyWrapper %}
|
{% block pPageBodyWrapper %}
|
||||||
{% block pEnvBannerWrapper %}
|
|
||||||
{% if app['combodo.current_environment'] != 'production' %}
|
|
||||||
<div id="envbanner" class="ipb-alert alert alert-danger" role="alert">
|
|
||||||
{{ 'Portal:EnvironmentBanner:Title'|dict_format( app['combodo.current_environment']|upper )|raw }}
|
|
||||||
<button type="button" onclick="window;location.href='{{ app['url_generator'].generate('p_home', {'switch_env': 'production'}) }}'">
|
|
||||||
{{ 'Portal:EnvironmentBanner:GoToProduction'|dict_s|raw }}
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
|
||||||
{% endblock %}
|
|
||||||
|
|
||||||
{% block pNavigationWrapper %}
|
{% block pNavigationWrapper %}
|
||||||
{% block pNavigationSideMenuWrapper %}
|
{% block pNavigationSideMenuWrapper %}
|
||||||
@@ -199,6 +189,17 @@
|
|||||||
{% block pMainWrapper %}
|
{% block pMainWrapper %}
|
||||||
<div class="ipb-page--main-wrapper">
|
<div class="ipb-page--main-wrapper">
|
||||||
<section class="ipb-page--session-messages" id="main-session-messages">
|
<section class="ipb-page--session-messages" id="main-session-messages">
|
||||||
|
{% block pEnvBannerWrapper %}
|
||||||
|
{% if app['combodo.current_environment'] != 'production' %}
|
||||||
|
<div id="envbanner" class="ipb-alert alert alert-danger" role="alert">
|
||||||
|
{{ 'Portal:EnvironmentBanner:Title'|dict_format( app['combodo.current_environment']|upper )|raw }}
|
||||||
|
<button class="ipb-button ipb-is-regular ipb-is-default" type="button" onclick="window;location.href='{{ app['url_generator'].generate('p_home', {'switch_env': 'production'}) }}'">
|
||||||
|
{{ 'Portal:EnvironmentBanner:GoToProduction'|dict_s|raw }}
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
{% include template('session_messages') %}
|
{% include template('session_messages') %}
|
||||||
</section>
|
</section>
|
||||||
<section class="ipb-page--main-header" id="main-header">
|
<section class="ipb-page--main-header" id="main-header">
|
||||||
|
|||||||
Reference in New Issue
Block a user