Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 9fb08318 authored by Alexandre MERLIN's avatar Alexandre MERLIN
Browse files

[gen/wiki/site_hardware] Remove "1 x" in storage infos

parent b9e6f4e4
No related branches found
No related tags found
1 merge request!376Amélioration des tableaux pour la partie CPU
Pipeline #526698 passed
......@@ -380,7 +380,7 @@ def get_hardware(sites)
if e[1] == 1
"<b>#{size}&nbsp;#{e[0]['tech']}</b>"
else
"<b>1&nbsp;x&nbsp;#{size}&nbsp;#{e[0]['tech']}</b>" + ' +&nbsp;' + (e[1] - 1).to_s + "&nbsp;x&nbsp;#{size}&nbsp;#{e[0]['tech']}" + (e[0]['reservation'] ? '[[Disk_reservation|*]]' : '')
"<b>#{size}&nbsp;#{e[0]['tech']}</b>" + ' +&nbsp;' + ((remainder = e[1] - 1) == 1 ? '' : "#{remainder}&nbsp;x&nbsp;") + "#{size}&nbsp;#{e[0]['tech']}" + (e[0]['reservation'] ? '[[Disk_reservation|*]]' : '')
end
else
if e[1] == 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment