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