Commit ac963f29 authored by Lucas Nussbaum's avatar Lucas Nussbaum

wikigen: only display name once when name == device

parent 69c8c47a
...@@ -257,7 +257,11 @@ def get_hardware(sites) ...@@ -257,7 +257,11 @@ def get_hardware(sites)
hard['network_description'] = network_description.map do |e| hard['network_description'] = network_description.map do |e|
s = e['count'] > 1 ? "\n* " : '' s = e['count'] > 1 ? "\n* " : ''
s += e['unavailable_for_experiment'] ? '<span style="color:grey">' : '' s += e['unavailable_for_experiment'] ? '<span style="color:grey">' : ''
s += e['name'].nil? ? e['device'] : e['device'] + "/" + e['name'] if e['name'].nil? or e['name'] == e['device']
s += e['device']
else
s += e['device'] + "/" + e['name']
end
s += ', ' s += ', '
s += e['interface'] s += e['interface']
s += ', ' s += ', '
......
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