Display new form with turbo frame

This commit is contained in:
2024-01-03 01:02:29 +01:00
parent 18089c316e
commit 92350ac3f2
5 changed files with 41 additions and 48 deletions

View File

@@ -88,7 +88,6 @@ module ApplicationHelper
image_element_to(:link, name, image, options, html_options)
end
private
def image_element_to(type, name, image = nil, options = nil, html_options = {})
@@ -126,7 +125,7 @@ module ApplicationHelper
end
end
if exponent != 1
result += "10<sup>#{exponent-1}</sup>"
result += "10<sup>% d</sup>" % [exponent-1]
end
result.html_safe
end