SEBWIN-362: Added retry option for load error page.

This commit is contained in:
Damian Büchel 2020-03-16 14:20:53 +01:00
parent 6163c98e08
commit 63152a0335
5 changed files with 9 additions and 0 deletions

View file

@ -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;

View file

@ -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">&#x21BB; %%RETRY_BUTTON%%</button>
</div>
</body>
</html>

View file

@ -21,6 +21,7 @@ namespace SafeExamBrowser.I18n.Contracts
Browser_BlockedPageMessage,
Browser_BlockedPageTitle,
Browser_LoadErrorPageMessage,
Browser_LoadErrorPageButton,
Browser_LoadErrorPageTitle,
Browser_Name,
Browser_Tooltip,

View file

@ -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>

View file

@ -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>