Commit 26051a83 authored by Florent Didier's avatar Florent Didier
Browse files

[dev] mw_utils.rb: add the possibility to use attributes in table headers

This is used in site_hardware.rb.
parent 2d05680c
......@@ -93,7 +93,11 @@ module MW
table_text += MW::LINE_FEED + MW::TABLE_ROW + MW::LINE_FEED
columns.each { |col|
table_text += MW::TABLE_HEADER + MW::TABLE_CELL + col + MW::LINE_FEED
if col.kind_of?(Hash)
table_text += MW::TABLE_HEADER + col[:attributes] + MW::TABLE_CELL + col[:text] + MW::LINE_FEED
else
table_text += MW::TABLE_HEADER + MW::TABLE_CELL + col + MW::LINE_FEED
end
}
rows.each { |row|
......
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