Unified · Split
| @@ -3,7 +3,7 @@ error = (title, text = '', links = '') -> · 2 unmodified lines | |||
| 3 | links = """<p class="_error-links">#{_ links}</p>""" if links | 3 | links = """<p class="_error-links">#{_ links}</p>""" if links |
| 4 | """<div class="_error"><h1 class="_error-title">#{_ title}</h1>#{text}#{links}</div>""" | 4 | """<div class="_error"><h1 class="_error-title">#{_ title}</h1>#{text}#{links}</div>""" |
| 5 | 5 | ||
| 6 | back = -> "<a href='#' data-behavior='back' class='_error-link'>#{_ en: 'Go back', ja: '戻る'}</a>" | 6 | back = -> "<a href='#' data-behavior='back' class='_error-link'>#{_ en: "Go back", ja: "戻る"}</a>" |
| 7 | 7 | ||
| 8 | app.templates.notFoundPage = -> | 8 | app.templates.notFoundPage = -> |
| 9 | error( | 9 | error( |
| @@ -26,13 +26,15 @@ app.templates.pageLoadError = -> · 16 unmodified lines | |||
| 26 | ja: """ サーバーを誤っています。(アプリを再度読み込んでください)または、オフラインです。<br> | 26 | ja: """ サーバーを誤っています。(アプリを再度読み込んでください)または、オフラインです。<br> |
| 27 | この表示が続くようであれば、プロキシの制限やファイヤーウォールでクロスドメインリクエストがブロックされています。 """ | 27 | この表示が続くようであれば、プロキシの制限やファイヤーウォールでクロスドメインリクエストがブロックされています。 """ |
| 28 | , | 28 | , |
| 29 | """ #{back()} | 29 | """ |
| 30 | · | 30 | #{back()} |
| 31 | <a href="/##{location.pathname}" target="_top" class="_error-link"> | 31 | · |
| 32 | #{_ en: 'Reload', ja: '再読み込み'} | 32 | <a href="/##{location.pathname}" target="_top" class="_error-link"> |
| 33 | </a> | 33 | #{_ en: "Reload", ja: "再読み込み"} |
| 34 | · | 34 | </a> |
| 35 | <a href="#" class="_error-link" data-retry>Retry</a> """ | 35 | · |
| 36 | <a href="#" class="_error-link" data-retry>Retry</a> | ||
| 37 | """ | ||
| 36 | ) | 38 | ) |
| 37 | 39 | ||
| 38 | 40 | ||
| @@ -91,7 +93,7 @@ app.templates.offlineError = (reason, exception) -> · 52 unmodified lines | |||
| 91 | en: """ The IndexedDB database appears to be corrupted. Try <a href="#" data-behavior="reset">resetting the app</a>. """ | 93 | en: """ The IndexedDB database appears to be corrupted. Try <a href="#" data-behavior="reset">resetting the app</a>. """ |
| 92 | ja: """IndexedDBデータベースに誤りがあります。 <a href="#" data-behavior="reset">アプリをリセット</a>してみてください。 """ | 94 | ja: """IndexedDBデータベースに誤りがあります。 <a href="#" data-behavior="reset">アプリをリセット</a>してみてください。 """ |
| 93 | 95 | ||
| 94 | error 'Offline mode is unavailable.', reason | 96 | error "Offline mode is unavailable.", reason |
| 95 | 97 | ||
| 96 | app.templates.unsupportedBrowser = | 98 | app.templates.unsupportedBrowser = |
| 97 | en: """ | 99 | en: """ |