mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-19 23:32:17 +02:00
Portal: Added TWIG hooks for logo overloading in the navigation menu.
SVN:trunk[4763]
This commit is contained in:
@@ -126,6 +126,7 @@
|
|||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
</button>
|
</button>
|
||||||
|
{% block pNavigationTopMenuLogo %}
|
||||||
<a class="navbar-brand pull-right" href="{{ app.url_generator.generate('p_home') }}">
|
<a class="navbar-brand pull-right" href="{{ app.url_generator.generate('p_home') }}">
|
||||||
{% if app['combodo.portal.instance.conf'].properties.logo is not null %}
|
{% if app['combodo.portal.instance.conf'].properties.logo is not null %}
|
||||||
<img src="{{ app['combodo.portal.instance.conf'].properties.logo }}" alt="{{ app['combodo.portal.instance.conf'].properties.name|dict_s }}" />
|
<img src="{{ app['combodo.portal.instance.conf'].properties.logo }}" alt="{{ app['combodo.portal.instance.conf'].properties.name|dict_s }}" />
|
||||||
@@ -133,6 +134,7 @@
|
|||||||
iTop
|
iTop
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</a>
|
</a>
|
||||||
|
{% endblock %}
|
||||||
<p class="navbar-text">
|
<p class="navbar-text">
|
||||||
<a class="navbar-link user_infos" href="{{ app.url_generator.generate('p_user_profile_brick') }}">
|
<a class="navbar-link user_infos" href="{{ app.url_generator.generate('p_user_profile_brick') }}">
|
||||||
<span class="user_photo" style="background-image: url('{{ sUserPhotoUrl }}');"></span>
|
<span class="user_photo" style="background-image: url('{{ sUserPhotoUrl }}');"></span>
|
||||||
@@ -235,6 +237,7 @@
|
|||||||
</div>
|
</div>
|
||||||
{% if app['combodo.portal.instance.conf'].properties.logo is not null %}
|
{% if app['combodo.portal.instance.conf'].properties.logo is not null %}
|
||||||
<div class="logo">
|
<div class="logo">
|
||||||
|
{% block pNavigationSideMenuLogo %}
|
||||||
{# This is a debug helper to know in which screen size we are #}
|
{# This is a debug helper to know in which screen size we are #}
|
||||||
{% if app['debug'] %}
|
{% if app['debug'] %}
|
||||||
<div style="position: fixed; bottom: 0px; left: 0px; z-index: 9999;">Debug : Taille <span class="hidden-sm hidden-md hidden-lg">XS</span><span class="hidden-xs hidden-md hidden-lg">SM</span><span class="hidden-xs hidden-sm hidden-lg">MD</span><span class="hidden-xs hidden-sm hidden-md">LG</span></div>
|
<div style="position: fixed; bottom: 0px; left: 0px; z-index: 9999;">Debug : Taille <span class="hidden-sm hidden-md hidden-lg">XS</span><span class="hidden-xs hidden-md hidden-lg">SM</span><span class="hidden-xs hidden-sm hidden-lg">MD</span><span class="hidden-xs hidden-sm hidden-md">LG</span></div>
|
||||||
@@ -242,6 +245,7 @@
|
|||||||
<a href="{{ app.url_generator.generate('p_home') }}" title="{{ app['combodo.portal.instance.conf'].properties.name|dict_s }}">
|
<a href="{{ app.url_generator.generate('p_home') }}" title="{{ app['combodo.portal.instance.conf'].properties.name|dict_s }}">
|
||||||
<img src="{{ app['combodo.portal.instance.conf'].properties.logo }}" alt="{{ app['combodo.portal.instance.conf'].properties.name|dict_s }}" />
|
<img src="{{ app['combodo.portal.instance.conf'].properties.logo }}" alt="{{ app['combodo.portal.instance.conf'].properties.name|dict_s }}" />
|
||||||
</a>
|
</a>
|
||||||
|
{% endblock %}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</nav>
|
</nav>
|
||||||
|
|||||||
Reference in New Issue
Block a user