From b20f222c8cfdc75e7976d62d483d8d361c7b650f Mon Sep 17 00:00:00 2001 From: Ed Asriyan Date: Sat, 1 Dec 2018 15:50:18 +0300 Subject: [PATCH] Update 5xx page --- app/controllers/application-error.js | 9 +++++++++ app/templates/application-error.hbs | 8 ++++++-- public/icons/5xx-error.svg | 3 +++ 3 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 app/controllers/application-error.js create mode 100644 public/icons/5xx-error.svg diff --git a/app/controllers/application-error.js b/app/controllers/application-error.js new file mode 100644 index 0000000..a61e1b8 --- /dev/null +++ b/app/controllers/application-error.js @@ -0,0 +1,9 @@ +import Controller from '@ember/controller'; +import {action} from '@ember-decorators/object'; + +export default class extends Controller { + @action + onRefreshButtonClickAction() { + location.reload(); + } +} diff --git a/app/templates/application-error.hbs b/app/templates/application-error.hbs index b5dc2f5..787ed74 100644 --- a/app/templates/application-error.hbs +++ b/app/templates/application-error.hbs @@ -1,5 +1,9 @@
- -
Случилось что-то непоправимое, прости...
+ {{core/icon-component name="5xx-error" class="height-9x margin-bottom-2x"}} +
Случилось что-то плохое...
Скоро всё починим.
+ +
diff --git a/public/icons/5xx-error.svg b/public/icons/5xx-error.svg new file mode 100644 index 0000000..fae2358 --- /dev/null +++ b/public/icons/5xx-error.svg @@ -0,0 +1,3 @@ + + + \ No newline at end of file