Commit 3c7df827 authored by Fabrice Roy's avatar Fabrice Roy
Browse files

add templates

for cluster list, cluster, meso list, storage list, storage
parent e5d72ba9
{% if header %}
<div class="cluster">
<div class="card">
<div class="card-header">
<h6>
{{ cluster['name'] }}
</h6>
</div>
<div class="card-body row">
{% if cluster['clustercorenumber'] %}
<p class="col-sm"><img src="../theme/img/cpu.png" alt="Nombre de cœurs" title="Nombre de cœurs" />
{{ cluster['clustercorenumber'] }}
</p>
{% endif %}
{% if cluster['networktype'] %}
<p class="col-sm"><img src="../theme/img/network.png" alt="Type de réseau" title="Type de réseau" />
{{ cluster['networktype'] }}
</p>
{% endif %}
{% if cluster['networkbandwidth'] %}
<p class="col-sm"><img src="../theme/img/network_black.png" alt="Bande passante réseau" title="Bande passante réseau" />
{{ cluster['networkbandwidth'] }} Gb/s
</p>
{% endif %}
{% if cluster['networktopology'] %}
<p class="col-sm"><img src="../theme/img/cpu.png" alt="Topologie réseau" title="Topologie réseau" />
{{ cluster['networktopology'] }}
</p>
{% endif %}
{% if cluster['jobshedulername'] %}
<p class="col-sm"><img src="../theme/img/memory.png" alt="Gestionnaire de tâches" title="Gestionnaire de tâches" />
{{ cluster['jobshedulername'] }}
</p>
{% endif %}
{% if cluster['vendorname'] %}
<p class="col-sm"><img src="../theme/img/gpu.png" alt="Constructeur" title="Constructeur"/>
{{ cluster['vendorname'] }}
</p>
{% endif %}
</div>
<div class="card-footer row">
</div>
{% endif %}
{% if footer %}
</div>
</div>
{% endif %}
{% if header %}
<div class="cluster_list">
<div class="container">
<div class="panel-group">
<div class="panel panel-default">
<div class="panel-heading">
<h6 class="panel-title">
<a data-toggle="collapse" href="#clusters{{ num }}">Clusters</a>
</h6>
</div>
<div id="clusters{{ num }}" class="panel-collapse collapse">
{% endif %}
{% if footer %}
</div>
</div>
</div>
</div>
</div>
{% endif %}
{% if header %}
<div class="meso_list">
<div class="container">
<div class="panel-group">
<div class="panel panel-default">
<div class="panel-heading">
<h6 class="panel-title">
<a data-toggle="collapse" href="#collapse{{ num }}">Clusters</a>
</h6>
</div>
<div id="collapse{{ num }}" class="panel-collapse collapse">
<ul class="list-group">
{% endif %}
{% if footer %}
</ul>
</div>
</div>
</div>
</div>
</div>
{% endif %}
{% if header %}
<div class="storage">
<div class="card">
<div class="card-header">
<h6>
{{ storage['name'] }}
</h6>
</div>
<div class="card-body row">
{% if storage['typename'] %}
<p class="col-sm"><img src="../theme/img/cpu.png" alt="Nombre de cœurs" title="Nombre de cœurs" />
{{ storage['typename'] }}
</p>
{% endif %}
{% if storage['name'] %}
<p class="col-sm"><img src="../theme/img/network.png" alt="Type de réseau" title="Type de réseau" />
{{ storage['name'] }}
</p>
{% endif %}
{% if storage['filesystemtype'] %}
<p class="col-sm"><img src="../theme/img/network_black.png" alt="Bande passante réseau" title="Bande passante réseau" />
{{ storage['filesystemtype'] }} Gb/s
</p>
{% endif %}
{% if storage['size'] %}
<p class="col-sm"><img src="../theme/img/cpu.png" alt="Topologie réseau" title="Topologie réseau" />
{{ storage['size'] }}
</p>
{% endif %}
</div>
<div class="card-footer row">
</div>
{% endif %}
{% if footer %}
</div>
</div>
{% endif %}
{% if header %}
<div class="storage_list">
<div class="container">
<div class="panel-group">
<div class="panel panel-default">
<div class="panel-heading">
<h6 class="panel-title">
<a data-toggle="collapse" href="#storages{{ num }}">Stockage</a>
</h6>
</div>
<div id="storages{{ num }}" class="panel-collapse collapse">
{% endif %}
{% if footer %}
</div>
</div>
</div>
</div>
</div>
{% endif %}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment