unify section_half left and right and use option to get both

This commit is contained in:
2022-12-04 18:37:11 +02:00
parent 77a7917869
commit d30ce30370
11 changed files with 26 additions and 38 deletions

View File

@ -19,6 +19,13 @@ module Merged
end
end
def order_option(section)
return {} unless section.has_option?("order")
puts "Option #{section.option('order')}"
return {} if section.option("order") == "left"
{class: "order-first"}
end
def button(text , url , color)
link_to(url) do
content_tag(:button , class: color + " " + button_classes ) do