You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When content from the attic is looked at, it should be immediately clear that the content is archived, ideally with a reference to the non-archived equivalent.
This could, for example, be achieved by including a disclaimer.
The text was updated successfully, but these errors were encountered:
As a basic approach, I would suggest to use the webserver's capability to rewrite content on the fly, to replace the <body> tag with content that adds a simple HTML banner (and restores the body tag), like this:
<body><divstyle="padding: 2em; text-align: center; background: #ffeb3b; color: black; font-size: 1.5em;"><h1>This is an older version of this file!</h1><p>Beware: the content that is displayed here is an archived version, that has been updated. The updated document
<ahref="#" onclick="window.location=window.location.protocol + '//' + window.location.host + '/extensions/xep-' + window.location.pathname.split('/').pop().match(/\d{4}/)[0] + '.html'; return false">can be found here</a>.</p></div>
Here's the solution above, modified to use the same style:
<body><divstyle="position: fixed;top: 0;background-color: #ff8f2c;width: 100%;height: 3.5rem; padding: 1rem;margin-bottom: 9em;opacity: 0.9;margin: 0;left: 0;"><strong>Beware: the content that is displayed here is an archived version of the document, that has been updated.</strong><br>
The updated document <ahref="#" onclick="window.location=window.location.protocol + '//' + window.location.host + '/extensions/xep-' + window.location.pathname.split('/').pop().match(/\d{4}/)[0] + '.html'; return false">can be found here</a>.
</div>
When content from the attic is looked at, it should be immediately clear that the content is archived, ideally with a reference to the non-archived equivalent.
This could, for example, be achieved by including a disclaimer.
The text was updated successfully, but these errors were encountered: