mod/standard/set/all/rich_html/error.rb in card-1.98.0 vs mod/standard/set/all/rich_html/error.rb in card-1.98.1
- old
+ new
@@ -21,11 +21,11 @@
card.ok?(:create) ? yield : ""
end
def missing_link text
path_opts = voo.type ? { card: { type: voo.type } } : {}
- link_to_view :new, text, path: path_opts, class: classy("missing-link")
+ link_to_view :new_in_modal, text, path: path_opts, class: classy("missing-link")
end
view :closed_missing, perms: :none do
wrap_with :span, h(title_in_context), class: "faint"
end
@@ -114,11 +114,11 @@
end
def standard_errors heading=nil
alert "warning", true do
[
- (wrap_with(:h4, heading, class: "alert-heading") if heading),
+ (wrap_with(:h4, heading, class: "alert-heading error") if heading),
error_messages.join("<hr>")
]
end
end
@@ -127,10 +127,10 @@
attrib == :abort ? h(msg) : standard_error_message(attrib, msg)
end
end
def standard_error_message attribute, message
- "<div><strong>#{h attribute.to_s.upcase}:</strong> #{h message}</div>"
+ "<p><strong>#{h attribute.to_s.upcase}:</strong> #{h message}</p>"
end
def not_found_errors
if card.errors.any?
standard_errors