mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-30 22:18:46 +02:00
N°3123 - Refactor Directories
This commit is contained in:
16
templates/base/components/title/layout.html.twig
Normal file
16
templates/base/components/title/layout.html.twig
Normal file
@@ -0,0 +1,16 @@
|
||||
{% apply spaceless %}
|
||||
<div class="ibo-title">
|
||||
{% if oUIBlock.HasIcon() %}
|
||||
<div class="ibo-title--medallion">
|
||||
<img class="ibo-title--icon ibo-title--icon--must-{{ oUIBlock.GetIconCoverMethod() }}" src="{{ oUIBlock.GetIconUrl() }}" />
|
||||
</div>
|
||||
{% endif %}
|
||||
<div class="ibo-title--content">
|
||||
{% block iboPageTitleText %}
|
||||
<h{{ oUIBlock.GetLevel() }} class="ibo-title--text title is-size-{{ oUIBlock.GetLevel() + 2 }}">
|
||||
{{ oUIBlock.GetTitle()|raw }}
|
||||
</h{{ oUIBlock.GetLevel() }}>
|
||||
{% endblock %}
|
||||
</div>
|
||||
</div>
|
||||
{% endapply %}
|
||||
@@ -0,0 +1,11 @@
|
||||
{# @copyright Copyright (C) 2010-2020 Combodo SARL #}
|
||||
{# @license http://opensource.org/licenses/AGPL-3.0 #}
|
||||
{% extends 'base/components/title/layout.html.twig' %}
|
||||
|
||||
{% block iboPageTitleText %}
|
||||
<h1 class="ibo-title--for-object-details">{{ oUIBlock.GetClassName() }} <span class="ibo-title--emphasis">{{ oUIBlock.GetObjectName()|raw }}</span></h1>
|
||||
<div class="ibo-title--status">
|
||||
<span class="ibo-title--status-dot ibo-is-state-{{ oUIBlock.GetStatusColor() }}"></span>
|
||||
<span class="ibo-title--status-label">{{ oUIBlock.GetStatusLabel() }}</span>
|
||||
</div>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user