diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-10-25 08:01:20 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-10-25 08:01:20 +0900 |
| commit | 27f98578c527a1a73c45be228eb979436d2e5ec3 (patch) | |
| tree | 096d425bdd24c58fad254a96be4db4821480e9cb /src/web/app/common | |
| parent | v2735 (diff) | |
| download | misskey-27f98578c527a1a73c45be228eb979436d2e5ec3.tar.gz misskey-27f98578c527a1a73c45be228eb979436d2e5ec3.tar.bz2 misskey-27f98578c527a1a73c45be228eb979436d2e5ec3.zip | |
:v:
Diffstat (limited to 'src/web/app/common')
| -rw-r--r-- | src/web/app/common/tags/error.tag | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/web/app/common/tags/error.tag b/src/web/app/common/tags/error.tag index a06f17cd1c..7a2976541d 100644 --- a/src/web/app/common/tags/error.tag +++ b/src/web/app/common/tags/error.tag @@ -1,7 +1,13 @@ <mk-error> <img src="data:image/jpeg;base64,%base64:/assets/error.jpg%" alt=""/> <h1>%i18n:common.tags.mk-error.title%</h1> - <p class="text">%i18n:common.tags.mk-error.description%</p> + <p class="text">{ + '%i18n:common.tags.mk-error.description%'.substr(0, '%i18n:common.tags.mk-error.description%'.indexOf('{')) + }<a onclick={ reload }>{ + '%i18n:common.tags.mk-error.description%'.match(/\{(.+?)\}/)[1] + }</a>{ + '%i18n:common.tags.mk-error.description%'.substr('%i18n:common.tags.mk-error.description%'.indexOf('}') + 1) + }</p> <p class="thanks">%i18n:common.tags.mk-error.thanks%</p> <style> :scope @@ -53,5 +59,9 @@ document.title = 'Oops!'; document.documentElement.style.background = '#f8f8f8'; }); + + this.reload = () => { + location.reload(); + }; </script> </mk-error> |