|
|
@ -1,7 +1,7 @@ |
|
|
|
module DetailsTableHelper |
|
|
|
module DetailsTableHelper |
|
|
|
def details_html(attribute) |
|
|
|
def details_html(attribute) |
|
|
|
if attribute[:format] == :bullet |
|
|
|
if attribute[:format] == :bullet |
|
|
|
list = attribute[:value].map { |la| "<li>#{la}</li>" }.join("\n") |
|
|
|
list = attribute[:value].map { |la| "<li>#{la}</li>" }.join |
|
|
|
simple_format(list, { class: "govuk-list govuk-list--bullet" }, wrapper_tag: "ul") |
|
|
|
simple_format(list, { class: "govuk-list govuk-list--bullet" }, wrapper_tag: "ul") |
|
|
|
else |
|
|
|
else |
|
|
|
simple_format(attribute[:value].to_s, {}, wrapper_tag: "div") |
|
|
|
simple_format(attribute[:value].to_s, {}, wrapper_tag: "div") |
|
|
|