fix view_button working

This commit is contained in:
2023-01-23 15:01:24 +02:00
parent 1570e34d35
commit 6c23cb5780
2 changed files with 14 additions and 19 deletions

View File

@ -33,10 +33,14 @@ module Merged
def view_button(element , extra_classes = "")
return "" unless element.has_option?("button_link")
puts element.header
puts element.option("button_link")
["<button class='button ",
extra_classes,
" >" ,
"<a href='#{element.option("button_link")}'>" ,
"'>" ,
"<a href='" ,
element.option("button_link") ,
"'>" ,
element.option("button_text") ,
"</a>",
" </button>"].join.html_safe