Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
groupe-calcul
website
Commits
4e4bb4fb
Commit
4e4bb4fb
authored
Feb 11, 2020
by
Roland Denis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
GPU and memory in meso card
parent
28544f97
Pipeline
#6144
passed with stages
in 1 minute and 57 seconds
Changes
7
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
24 additions
and
9 deletions
+24
-9
content/pages/mentions_legales.rst
content/pages/mentions_legales.rst
+1
-1
content/pages/meso-details.rst
content/pages/meso-details.rst
+1
-1
plugins/meso_list/directives.py
plugins/meso_list/directives.py
+3
-0
plugins/meso_list/templates/meso.tpl
plugins/meso_list/templates/meso.tpl
+12
-2
themes/calcul/static/css/style.css
themes/calcul/static/css/style.css
+7
-5
themes/calcul/static/img/gpu.png
themes/calcul/static/img/gpu.png
+0
-0
themes/calcul/static/img/memory.png
themes/calcul/static/img/memory.png
+0
-0
No files found.
content/pages/mentions_legales.rst
View file @
4e4bb4fb
...
...
@@ -78,7 +78,7 @@ Mentions légales
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>`_,
- `Pierre Digonnet`_ (licence `CC-BY-4.0-FR`_).
...
...
content/pages/meso-details.rst
View file @
4e4bb4fb
...
...
@@ -33,4 +33,4 @@ Les mésocentres en |_| France
:class: description
.. meso_list::
:json_url: https://plmbox.math.cnrs.fr/f/9
1b34c9f48b941288bea
/?dl=1
:json_url: https://plmbox.math.cnrs.fr/f/9
9387ff5e39a4efab634
/?dl=1
plugins/meso_list/directives.py
View file @
4e4bb4fb
...
...
@@ -85,7 +85,10 @@ class Meso(Directive):
'contactaddress'
:
str
,
'totalcorenumber'
:
int
,
'totalstorage'
:
int
,
'totalgpunumber'
:
int
,
'totalram'
:
int
,
'accesspolicy'
:
str
,
'etptnumber'
:
float
,
}
has_content
=
True
...
...
plugins/meso_list/templates/meso.tpl
View file @
4e4bb4fb
...
...
@@ -54,12 +54,22 @@
</div>
<div
class=
"card-footer row"
>
{% 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
</p>
{% 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'] %}
<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
</p>
{% endif %}
...
...
themes/calcul/static/css/style.css
View file @
4e4bb4fb
...
...
@@ -1153,8 +1153,9 @@ a.year-toc {
/* mesocenters list */
.meso
.card
a
:hover
{
color
:
#5b5b5b
;
.meso
.card
{
margin-bottom
:
2em
;
margin-top
:
2em
;
}
.meso
.card
a
:hover
.card-header
,
...
...
@@ -1218,7 +1219,7 @@ a.year-toc {
background-size
:
100%
;
}
.meso
.card
img
{
.meso
.card
-body
img
{
height
:
15px
;
vertical-align
:
text-top
;
}
...
...
@@ -1245,6 +1246,7 @@ a.year-toc {
margin
:
3em
2em
1em
2em
;
}
.meso
.hidden
{
display
:
none
;
.meso
.card-footer
img
{
height
:
20px
;
vertical-align
:
text-bottom
;
}
themes/calcul/static/img/gpu.png
0 → 100644
View file @
4e4bb4fb
14.4 KB
themes/calcul/static/img/memory.png
0 → 100644
View file @
4e4bb4fb
14.8 KB
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment