• R/O
  • HTTP
  • SSH
  • HTTPS

website: Commit

HTML source code, style-sheets, scripts, and images for deployment on mingw.osdn.io


Commit MetaInfo

Revision98be686d2e65698f502c6ab4521bc0535216d7e1 (tree)
Time2020-11-03 20:11:52
AuthorKeith Marshall <keith@user...>
CommiterKeith Marshall

Log Message

Improve http status 404 notifications.

* missing.html (page-subtitle): Add <dt> entry.
(page-content): Wording enhancements; suggest filing of feature
request for missing page, as identified by dynamic content of...
(e404-missing-page): ...this named <span> element.

* site.js (load_content) [e404-missing-page]: Assign URL.

Change Summary

Incremental Difference

--- a/missing.html
+++ b/missing.html
@@ -44,7 +44,8 @@
4444 * HTML entity codes:
4545 *
4646 * &#8209; non-breaking hyphen
47- * &#8217; typographic apostrophe
47+ * &#8220; left (opening) typographic double quote
48+ * &#8221; right (closing) typographic double quote
4849 *
4950 -->
5051 <dl class="masthead"><!-- hidden for masthead class -->
@@ -55,17 +56,24 @@
5556 their content into the corresponding visible place-holders.
5657 -->
5758 <dt id="page-title">MinGW.org Server Error</dt>
59+ <dt id="page-subtitle">HTTP Status 404 &mdash; Requested Page Not Found</dt>
5860 </dl><!-- masthead -->
59-<h2>Page Not Found</h2>
61+<p>The requested URL,
62+&#8220;<span id="e404-missing-page"></span>&#8221;,
63+cannot be resolved.
64+</p>
6065 <p>The MinGW.org web&#8209;site is undergoing an overhaul,
6166 whilst in the process of transferring to a new hosting provider.
6267 During this transitional phase,
6368 some pages may be temporarily unavailable.
6469 </p>
65-<p>If you see this page,
70+<p>If you see this notification page,
6671 it is likely that the content you are trying to access
6772 has not yet been transferred;
68-please check back later.
73+please check back later,
74+or file a feature request for a priority review,
75+(but please leave the actual priority assignment to
76+the discretion of the project administrators).
6977 </p>
7078
7179 <!-- $RCSfile$: end of file -->
--- a/site.js
+++ b/site.js
@@ -72,6 +72,7 @@ function load_content( container, src )
7272 set_content( container, this.responseText );
7373 update_page_content_header( "title" );
7474 update_page_content_header( "subtitle" );
75+ set_content( "e404-missing-page", document.URL );
7576 break;
7677 case 404:
7778 load_content( container, "missing.html" );
Show on old repository browser