Skip to content

Commit 9fb0831

Browse files
committed
[gen/wiki/site_hardware] Remove "1 x" in storage infos
1 parent b9e6f4e commit 9fb0831

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/refrepo/gen/wiki/generators/site_hardware.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ def get_hardware(sites)
380380
if e[1] == 1
381381
"<b>#{size}&nbsp;#{e[0]['tech']}</b>"
382382
else
383-
"<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|*]]' : '')
383+
"<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|*]]' : '')
384384
end
385385
else
386386
if e[1] == 1

0 commit comments

Comments
 (0)