|
@@ 24-33 (lines=10) @@
|
| 21 |
|
render "greenlight_error", status: 404, formats: :html |
| 22 |
|
end |
| 23 |
|
|
| 24 |
|
def internal_error |
| 25 |
|
render "errors/greenlight_error", status: 500, formats: :html, |
| 26 |
|
locals: { |
| 27 |
|
status_code: 500, |
| 28 |
|
message: I18n.t("errors.internal.message"), |
| 29 |
|
help: I18n.t("errors.internal.help"), |
| 30 |
|
display_back: true, |
| 31 |
|
report_issue: true |
| 32 |
|
} |
| 33 |
|
end |
| 34 |
|
|
| 35 |
|
def unauthorized |
| 36 |
|
render "errors/greenlight_error", status: 401, formats: :html, locals: { status_code: 401, |
|
@@ 35-38 (lines=4) @@
|
| 32 |
|
} |
| 33 |
|
end |
| 34 |
|
|
| 35 |
|
def unauthorized |
| 36 |
|
render "errors/greenlight_error", status: 401, formats: :html, locals: { status_code: 401, |
| 37 |
|
message: I18n.t("errors.unauthorized.message"), help: I18n.t("errors.unauthorized.help"), display_back: true } |
| 38 |
|
end |
| 39 |
|
end |
| 40 |
|
|