Commit 4e4bb4fb authored by Roland Denis's avatar Roland Denis
Browse files

GPU and memory in meso card

parent 28544f97
Pipeline #6144 passed with stages
in 1 minute and 57 seconds
...@@ -78,7 +78,7 @@ Mentions légales ...@@ -78,7 +78,7 @@ Mentions légales
Les pictogrammes proviennent des sources suivantes : Les pictogrammes proviennent des sources suivantes :
- `Pawel Rak <https://thenounproject.com/pr3113738/>`_ et `Adi Kurniawan <https://thenounproject.com/kuradn/>`_ sur Noun Project, - `Pawel Rak <https://thenounproject.com/pr3113738/>`_ , `Adi Kurniawan <https://thenounproject.com/kuradn/>`_ , `Edwin PM <https://thenounproject.com/edwin.misran/>`_ et `Template <https://thenounproject.com/paisurangkana>`_ sur Noun Project,
- Site `iconfinder <https://www.iconfinder.com>`_, - Site `iconfinder <https://www.iconfinder.com>`_,
- `Pierre Digonnet`_ (licence `CC-BY-4.0-FR`_). - `Pierre Digonnet`_ (licence `CC-BY-4.0-FR`_).
......
...@@ -33,4 +33,4 @@ Les mésocentres en |_| France ...@@ -33,4 +33,4 @@ Les mésocentres en |_| France
:class: description :class: description
.. meso_list:: .. meso_list::
:json_url: https://plmbox.math.cnrs.fr/f/91b34c9f48b941288bea/?dl=1 :json_url: https://plmbox.math.cnrs.fr/f/99387ff5e39a4efab634/?dl=1
...@@ -85,7 +85,10 @@ class Meso(Directive): ...@@ -85,7 +85,10 @@ class Meso(Directive):
'contactaddress': str, 'contactaddress': str,
'totalcorenumber': int, 'totalcorenumber': int,
'totalstorage': int, 'totalstorage': int,
'totalgpunumber': int,
'totalram': int,
'accesspolicy': str, 'accesspolicy': str,
'etptnumber': float,
} }
has_content = True has_content = True
......
...@@ -54,12 +54,22 @@ ...@@ -54,12 +54,22 @@
</div> </div>
<div class="card-footer row"> <div class="card-footer row">
{% if meso['totalcorenumber'] %} {% if meso['totalcorenumber'] %}
<p class="col-sm"><img src="../theme/img/cpu.png" alt="Nombre de cœurs" /> <p class="col-sm"><img src="../theme/img/cpu.png" alt="Nombre de cœurs" title="Nombre de cœurs" />
{{ meso['totalcorenumber'] }} cœurs {{ meso['totalcorenumber'] }} cœurs
</p> </p>
{% endif %} {% endif %}
{% if meso['totalram'] %}
<p class="col-sm"><img src="../theme/img/memory.png" alt="Mémoire" title="Mémoire" />
{{ meso['totalram'] }} Go
</p>
{% endif %}
{% if meso['totalgpunumber'] %}
<p class="col-sm"><img src="../theme/img/gpu.png" alt="Nombre de GPUs" title="Nombre de GPUs"/>
{{ meso['totalgpunumber'] }}
</p>
{% endif %}
{% if meso['totalstorage'] %} {% if meso['totalstorage'] %}
<p class="col-sm"><img src="../theme/img/floppy.png" alt="Stockage" /> <p class="col-sm"><img src="../theme/img/floppy.png" alt="Stockage" title="Stockage"/>
{{ meso['totalstorage'] }} To {{ meso['totalstorage'] }} To
</p> </p>
{% endif %} {% endif %}
......
...@@ -1153,8 +1153,9 @@ a.year-toc { ...@@ -1153,8 +1153,9 @@ a.year-toc {
/* mesocenters list */ /* mesocenters list */
.meso .card a:hover { .meso .card {
color: #5b5b5b; margin-bottom: 2em;
margin-top: 2em;
} }
.meso .card a:hover .card-header, .meso .card a:hover .card-header,
...@@ -1218,7 +1219,7 @@ a.year-toc { ...@@ -1218,7 +1219,7 @@ a.year-toc {
background-size: 100%; background-size: 100%;
} }
.meso .card img { .meso .card-body img {
height: 15px; height: 15px;
vertical-align: text-top; vertical-align: text-top;
} }
...@@ -1245,6 +1246,7 @@ a.year-toc { ...@@ -1245,6 +1246,7 @@ a.year-toc {
margin: 3em 2em 1em 2em; margin: 3em 2em 1em 2em;
} }
.meso .hidden { .meso .card-footer img {
display: none; height: 20px;
vertical-align: text-bottom;
} }
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