diff --git a/datamodels/2.x/itop-portal-base/portal/src/views/layout.html.twig b/datamodels/2.x/itop-portal-base/portal/src/views/layout.html.twig index f6443757d6..1f0588d7f4 100644 --- a/datamodels/2.x/itop-portal-base/portal/src/views/layout.html.twig +++ b/datamodels/2.x/itop-portal-base/portal/src/views/layout.html.twig @@ -19,6 +19,9 @@ + {# This block can be used to add your own meta tags by extending the default template #} + {% block pPageExtraMetas %} + {% endblock %} {% block pPageTitle %}{% if sPageTitle is defined and sPageTitle is not null %}{{ sPageTitle }} - iTop{% else %}{{ 'Page:DefaultTitle'|dict_s }}{% endif %}{% endblock %} {% block pPageStylesheets %} @@ -143,26 +146,19 @@ {% endfor %} {% endblock %} {% if bUserConnected %} - + +
  • {{ 'Brick:Portal:UserProfile:Navigation:Dropdown:MyProfil'|dict_s }}
  • + {% for aPortal in app['combodo.portal.instance.conf'].portals %} + {% if aPortal.id != app['combodo.portal.instance.conf'].properties.id %} + {% set sIconClass = (aPortal.id == 'backoffice') ? 'fa-list-alt' : 'fa-external-link' %} +
  • {{ aPortal.label|dict_s }}
  • + {% endif %} + {% endfor %} + {# We display the separator only if the user has more then 1 portal. Meaning default portal + console or several portal at least #} + {% if app['combodo.portal.instance.conf'].portals|length > 1 %} + + {% endif %} +
  • {{ 'Brick:Portal:UserProfile:Navigation:Dropdown:Logout'|dict_s }}
  • {% endif %} @@ -182,18 +178,18 @@ diff --git a/datamodels/2.x/itop-portal-base/portal/web/css/portal.css b/datamodels/2.x/itop-portal-base/portal/web/css/portal.css index 9667378b79..6816ffbd7b 100644 --- a/datamodels/2.x/itop-portal-base/portal/web/css/portal.css +++ b/datamodels/2.x/itop-portal-base/portal/web/css/portal.css @@ -18,8 +18,10 @@ footer{ .user_infos .dropdown-menu a .glyphicon{ margin-right: 15px; } -.nav > li > a > span.brick_icon{ +.nav > li > a > span.brick_icon, +.dropdown-menu > li > a > span.brick_icon{ margin-right: 20px; + vertical-align: sub; } /* Topbar */ #topbar .navbar-header{ @@ -34,6 +36,13 @@ footer{ #topbar .navbar-collapse > .navbar-nav{ padding-top: 30px; } +#topbar .navbar-collapse > .navbar-nav .divider{ + height: 1px; + margin: 8px 15px; + overflow: hidden; + background-color: #292827; + opacity: 0.6; +} #topbar .navbar-brand{ padding: 5px 15px; } @@ -86,6 +95,7 @@ footer{ background-size: 100%; background-position: center center; background-color: #585653; + background-repeat: no-repeat; border: 2px solid #FFFFFF; border-radius: 100%; } @@ -318,6 +328,10 @@ a:hover, a:focus{ .navbar-fixed-top .navbar-header{ box-shadow: 0px 2px 3px rgba(0, 0, 0, 0.4); } +.navbar-fixed-top .navbar-collapse, +.navbar-fixed-bottom .navbar-collapse{ + max-height: 400px; +} .navbar-default .navbar-toggle { border-top: none; @@ -662,7 +676,7 @@ a:hover, a:focus{ } #main-header-actions .btn-group .btn{ padding: 0em 1.5em; - line-height: 2.8em; + line-height: 2.4em; font-size: 14px; } @media (min-width: 768px) {