SEBWIN-362: Added retry option for load error page.
This commit is contained in:
parent
6163c98e08
commit
63152a0335
5 changed files with 9 additions and 0 deletions
|
@ -66,6 +66,7 @@ namespace SafeExamBrowser.Browser.Pages
|
|||
var html = reader.ReadToEnd();
|
||||
|
||||
html = html.Replace("%%MESSAGE%%", text.Get(TextKey.Browser_LoadErrorPageMessage));
|
||||
html = html.Replace("%%RETRY_BUTTON%%", text.Get(TextKey.Browser_LoadErrorPageButton));
|
||||
html = html.Replace("%%TITLE%%", text.Get(TextKey.Browser_LoadErrorPageTitle));
|
||||
|
||||
return html;
|
||||
|
|
|
@ -9,6 +9,7 @@
|
|||
<h1 style="color: red">%%TITLE%%</h1>
|
||||
<p>%%MESSAGE%%</p>
|
||||
<p style="font-weight: bold">%%STATUS%%</p>
|
||||
<button onclick="window.location.replace('%%URL%%')" style="cursor: pointer">↻ %%RETRY_BUTTON%%</button>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
|
@ -21,6 +21,7 @@ namespace SafeExamBrowser.I18n.Contracts
|
|||
Browser_BlockedPageMessage,
|
||||
Browser_BlockedPageTitle,
|
||||
Browser_LoadErrorPageMessage,
|
||||
Browser_LoadErrorPageButton,
|
||||
Browser_LoadErrorPageTitle,
|
||||
Browser_Name,
|
||||
Browser_Tooltip,
|
||||
|
|
|
@ -21,6 +21,9 @@
|
|||
<Entry key="Browser_LoadErrorPageMessage">
|
||||
Beim Laden der Seite "%%URL%%" ist folgender Fehler aufgetreten:
|
||||
</Entry>
|
||||
<Entry key="Browser_LoadErrorPageButton">
|
||||
Erneut versuchen
|
||||
</Entry>
|
||||
<Entry key="Browser_LoadErrorPageTitle">
|
||||
Seiten-Ladefehler
|
||||
</Entry>
|
||||
|
|
|
@ -21,6 +21,9 @@
|
|||
<Entry key="Browser_LoadErrorPageMessage">
|
||||
An error occurred while loading page "%%URL%%":
|
||||
</Entry>
|
||||
<Entry key="Browser_LoadErrorPageButton">
|
||||
Retry
|
||||
</Entry>
|
||||
<Entry key="Browser_LoadErrorPageTitle">
|
||||
Page Load Error
|
||||
</Entry>
|
||||
|
|
Loading…
Reference in a new issue