Commit f43fb867 authored by Roland Denis's avatar Roland Denis
Browse files

Fixing style and removing trailing spaces

parent 32bde98f
Pipeline #9818 failed with stages
in 19 seconds
......@@ -96,7 +96,7 @@ def json_mesolist_to_rst(url):
for meso in data['mesocentreList']:
region = meso['location']
meso_list.setdefault(region, []).append(build_meso(meso))
result = _json_mesolist_rst_template.render(meso_by_region=meso_list)
print(result)
return result
......@@ -118,7 +118,7 @@ _json_mesolist_rst_template = _json_mesolist_rst_env.from_string(dedent("""
{{ l }}
{%- endfor %}
{% if(meso['cluster_list']) %}
{% if meso['cluster_list'] %}
.. cluster_list::
{% for cluster in meso["cluster_list"] %}
......@@ -127,7 +127,7 @@ _json_mesolist_rst_template = _json_mesolist_rst_env.from_string(dedent("""
{{ l }}
{%- endfor %}
{% if(cluster['node_type_list']) %}
{% if cluster['node_type_list'] %}
.. node_type_list::
{% for node_type in cluster["node_type_list"] %}
......@@ -139,7 +139,7 @@ _json_mesolist_rst_template = _json_mesolist_rst_env.from_string(dedent("""
{% endfor %}
{% endif %}
{% if(cluster['storage_list']) %}
{% if cluster['storage_list'] %}
.. cluster_storage_list::
{% for storage in cluster["storage_list"] %}
......@@ -154,7 +154,7 @@ _json_mesolist_rst_template = _json_mesolist_rst_env.from_string(dedent("""
{% endfor %}
{% endif %}
{% if(meso['storage_list']) %}
{% if meso['storage_list'] %}
.. storage_list::
{% for storage in meso["storage_list"] %}
......
......@@ -9,8 +9,8 @@
</h6>
</div>
<div id="clusters{{ num }}" class="panel-collapse collapse">
{% endif %}
{% if footer %}
{% endif %}
{% if footer %}
</div>
</div>
</div>
......
......@@ -19,11 +19,11 @@
<div class="plus-minus plus" onclick="$(this).closest('.card-header').find('.collapse').collapse('toggle'); $(this).toggleClass('plus minus')"></div>
<p>
{{ meso['shortdescription'] }}
</p>
</p>
<p class="collapse">
{{ meso['fulldescription'] }}
</p>
</div>
<div class="card-body">
<div class="plus-minus plus" onclick="$(this).closest('.card-body').find('.collapse').collapse('toggle'); $(this).toggleClass('plus minus')"></div>
......@@ -82,7 +82,7 @@
</div>
<div>
{% endif %}
{% if footer %}
{% if footer %}
</div>
<div class="card-footer">
</div>
......
......@@ -10,8 +10,8 @@
</div>
<div id="collapse{{ num }}" class="panel-collapse collapse">
<ul class="list-group">
{% endif %}
{% if footer %}
{% endif %}
{% if footer %}
</ul>
</div>
</div>
......
......@@ -14,7 +14,7 @@
{% endif %}
{% if storage['filesystemtype'] %}
<p class="col-sm"><img src="../theme/img/filesystem.png" alt="Système de fichiers" title="Système de fichiers" />
{{ storage['filesystemtype'] }}
{{ storage['filesystemtype'] }}
</p>
{% endif %}
{% if storage['size'] %}
......
......@@ -9,8 +9,8 @@
</h6>
</div>
<div id="storages{{ num }}" class="panel-collapse collapse">
{% endif %}
{% if footer %}
{% endif %}
{% if footer %}
</div>
</div>
</div>
......
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