This is one of several tickets I am creating to log what I feel are shortcomings in the new (Allura) code viewer relative to the old (ViewVC) code viewer. In all of these cases, simply providing a way for users to continue using ViewVC would be an acceptable workaround.
Several of my projects rely on the ability to view static HTML and text documents directly in the repository so that different versions of these documents can easily be linked from our wiki. For instance:
The new code viewer provides no way of doing that. The closest I can get with the new viewer is to provide a link for viewing the text files with line numbers and other decorations:
or for downloading the file (not displaying it in the browser):
But nothing can be done for HTML pages.
Add a separate "view" mode for the file, perhaps implemented similarly to how you are implementing the History view. For instance:
Unless I miss my guess, this should allow static HTML pages and text documents in the repository to be displayed directly in the browser.