mod/standard/set/all/rich_html/error.rb in card-1.97.0 vs mod/standard/set/all/rich_html/error.rb in card-1.97.0.1
- old
+ new
@@ -67,12 +67,12 @@
focal? ? loud_denial : quiet_denial
end
def view_for_unknown view
case
- when focal? && ok?(:create) then :new
- when commentable?(view) then view
+ when main? && ok?(:create) then :new
+ when commentable?(view) then view
else super
end
end
def commentable? view
@@ -148,17 +148,18 @@
[tr(:please), links, to_task].join(" ") + "."
end
end
def signin_link
- link_to_card :signin, tr(:sign_in)
+ link_to_card :signin, tr(:sign_in), remote: true, class: "slotter"
end
def signup_link
return unless signup_ok?
- link_to tr(:sign_up), path: { action: :new, mark: :signup }
+ link_to tr(:sign_up), path: { action: :new, mark: :signup },
+ remote: true, class: "slotter"
end
def signup_ok?
Card.new(type_id: Card::SignupID).ok? :create
end
@@ -168,9 +169,10 @@
"<!-- Sorry, you don't have permission (#{@denied_task}) -->"
end
end
def loud_denial
+ voo.hide :menu
frame do
[wrap_with(:h1, tr(:sorry)),
wrap_with(:div, loud_denial_message)]
end
end