|
@@ -19,6 +19,9 @@
|
|
<meta charset="utf-8">
|
|
<meta charset="utf-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
|
+ {# This block can be used to add your own meta tags by extending the default template #}
|
|
|
|
+ {% block pPageExtraMetas %}
|
|
|
|
+ {% endblock %}
|
|
<title>{% block pPageTitle %}{% if sPageTitle is defined and sPageTitle is not null %}{{ sPageTitle }} - iTop{% else %}{{ 'Page:DefaultTitle'|dict_s }}{% endif %}{% endblock %}</title>
|
|
<title>{% block pPageTitle %}{% if sPageTitle is defined and sPageTitle is not null %}{{ sPageTitle }} - iTop{% else %}{{ 'Page:DefaultTitle'|dict_s }}{% endif %}{% endblock %}</title>
|
|
<link rel="shortcut icon" href="{{ app['combodo.absolute_url'] }}images/favicon.ico?itopversion=$ITOP_VERSION$" />
|
|
<link rel="shortcut icon" href="{{ app['combodo.absolute_url'] }}images/favicon.ico?itopversion=$ITOP_VERSION$" />
|
|
{% block pPageStylesheets %}
|
|
{% block pPageStylesheets %}
|
|
@@ -143,26 +146,19 @@
|
|
{% endfor %}
|
|
{% endfor %}
|
|
{% endblock %}
|
|
{% endblock %}
|
|
{% if bUserConnected %}
|
|
{% if bUserConnected %}
|
|
- <li class="dropdown">
|
|
|
|
- <a href="#" class="dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" id="usermenu">
|
|
|
|
- {{ sUserFullname }}
|
|
|
|
- <span class="caret"></span>
|
|
|
|
- </a>
|
|
|
|
- <ul class="dropdown-menu" aria-labelledby="usermenu">
|
|
|
|
- <li><a href="{{ app.url_generator.generate('p_user_profile_brick') }}"><span class="glyphicon glyphicon-user"></span>{{ 'Brick:Portal:UserProfile:Navigation:Dropdown:MyProfil'|dict_s }}</a></li>
|
|
|
|
- {% for aPortal in app['combodo.portal.instance.conf'].portals %}
|
|
|
|
- {% if aPortal.id != app['combodo.portal.instance.conf'].properties.id %}
|
|
|
|
- {% set sGlyphiconClass = (aPortal.id == 'backoffice') ? 'glyphicon-list-alt' : 'glyphicon-new-window' %}
|
|
|
|
- <li><a href="{{ aPortal.url }}" target="_blank"><span class="glyphicon {{ sGlyphiconClass }}"></span>{{ aPortal.label|dict_s }}</a></li>
|
|
|
|
- {% 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 %}
|
|
|
|
- <li role="separator" class="divider"></li>
|
|
|
|
- {% endif %}
|
|
|
|
- <li><a href="{{ app['combodo.absolute_url'] }}pages/logoff.php"><span class="glyphicon glyphicon-log-out"></span>{{ 'Brick:Portal:UserProfile:Navigation:Dropdown:Logout'|dict_s }}</a></li>
|
|
|
|
- </ul>
|
|
|
|
- </li>
|
|
|
|
|
|
+ <li role="separator" class="divider"></li>
|
|
|
|
+ <li><a href="{{ app.url_generator.generate('p_user_profile_brick') }}"><span class="brick_icon fa fa-user fa-2x fa-fw"></span>{{ 'Brick:Portal:UserProfile:Navigation:Dropdown:MyProfil'|dict_s }}</a></li>
|
|
|
|
+ {% 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' %}
|
|
|
|
+ <li><a href="{{ aPortal.url }}" target="_blank"><span class="brick_icon fa {{ sIconClass }} fa-2x fa-fw"></span>{{ aPortal.label|dict_s }}</a></li>
|
|
|
|
+ {% 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 %}
|
|
|
|
+ <li role="separator" class="divider"></li>
|
|
|
|
+ {% endif %}
|
|
|
|
+ <li><a href="{{ app['combodo.absolute_url'] }}pages/logoff.php"><span class="brick_icon fa fa-sign-out fa-2x fa-fw"></span>{{ 'Brick:Portal:UserProfile:Navigation:Dropdown:Logout'|dict_s }}</a></li>
|
|
{% endif %}
|
|
{% endif %}
|
|
</ul>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
@@ -182,18 +178,18 @@
|
|
<span class="caret"></span>
|
|
<span class="caret"></span>
|
|
</a>
|
|
</a>
|
|
<ul class="dropdown-menu user_options" aria-labelledby="user_options">
|
|
<ul class="dropdown-menu user_options" aria-labelledby="user_options">
|
|
- <li><a href="{{ app.url_generator.generate('p_user_profile_brick') }}"><span class="glyphicon glyphicon-user"></span>{{ 'Brick:Portal:UserProfile:Navigation:Dropdown:MyProfil'|dict_s }}</a></li>
|
|
|
|
|
|
+ <li><a href="{{ app.url_generator.generate('p_user_profile_brick') }}"><span class="brick_icon fa fa-user fa-lg fa-fw"></span>{{ 'Brick:Portal:UserProfile:Navigation:Dropdown:MyProfil'|dict_s }}</a></li>
|
|
{% for aPortal in app['combodo.portal.instance.conf'].portals %}
|
|
{% for aPortal in app['combodo.portal.instance.conf'].portals %}
|
|
{% if aPortal.id != app['combodo.portal.instance.conf'].properties.id %}
|
|
{% if aPortal.id != app['combodo.portal.instance.conf'].properties.id %}
|
|
- {% set sGlyphiconClass = (aPortal.id == 'backoffice') ? 'glyphicon-list-alt' : 'glyphicon-new-window' %}
|
|
|
|
- <li><a href="{{ aPortal.url }}" target="_blank"><span class="glyphicon {{ sGlyphiconClass }}"></span>{{ aPortal.label|dict_s }}</a></li>
|
|
|
|
|
|
+ {% set sGlyphiconClass = (aPortal.id == 'backoffice') ? 'fa-list-alt' : 'fa-external-link' %}
|
|
|
|
+ <li><a href="{{ aPortal.url }}" target="_blank"><span class="brick_icon fa {{ sGlyphiconClass }} fa-lg fa-fw"></span>{{ aPortal.label|dict_s }}</a></li>
|
|
{% endif %}
|
|
{% endif %}
|
|
{% endfor %}
|
|
{% endfor %}
|
|
{# We display the separator only if the user has more then 1 portal. Meaning default portal + console or several portal at least #}
|
|
{# 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 %}
|
|
{% if app['combodo.portal.instance.conf'].portals|length > 1 %}
|
|
<li role="separator" class="divider"></li>
|
|
<li role="separator" class="divider"></li>
|
|
{% endif %}
|
|
{% endif %}
|
|
- <li><a href="{{ app['combodo.absolute_url'] }}pages/logoff.php"><span class="glyphicon glyphicon-log-out"></span>{{ 'Brick:Portal:UserProfile:Navigation:Dropdown:Logout'|dict_s }}</a></li>
|
|
|
|
|
|
+ <li><a href="{{ app['combodo.absolute_url'] }}pages/logoff.php"><span class="brick_icon fa fa-sign-out fa-lg fa-fw"></span>{{ 'Brick:Portal:UserProfile:Navigation:Dropdown:Logout'|dict_s }}</a></li>
|
|
</ul>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|