Skip to content
This repository has been archived by the owner on Mar 13, 2021. It is now read-only.

Commit

Permalink
Update 5xx page
Browse files Browse the repository at this point in the history
  • Loading branch information
ed-asriyan committed Dec 2, 2018
1 parent b77cd85 commit b20f222
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
9 changes: 9 additions & 0 deletions app/controllers/application-error.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import Controller from '@ember/controller';
import {action} from '@ember-decorators/object';

export default class extends Controller {
@action
onRefreshButtonClickAction() {
location.reload();
}
}
8 changes: 6 additions & 2 deletions app/templates/application-error.hbs
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
<div class="layout v-center h-center vp-height text-muted">
<img src="https://dailynous.com/wp-content/uploads/2016/10/poop-emoji-frown-300x300.png">
<div>Случилось что-то непоправимое, прости...</div>
{{core/icon-component name="5xx-error" class="height-9x margin-bottom-2x"}}
<div class="text-caption text-center">Случилось что-то плохое...</div>
<div>Скоро всё починим.</div>

<button class="btn btnStyle btnStyle_сolorless margin-top-3x" onclick={{action "onRefreshButtonClickAction"}}>
Обновить
</button>
</div>
3 changes: 3 additions & 0 deletions public/icons/5xx-error.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b20f222

Please sign in to comment.