Matthew Good wrote:
On Wed, 2006-07-26 at 12:18 +0200, Christian Boos wrote:
Thomas Sturm wrote:
Christian Boos wrote:
I also had a need for this, so I wrote it :)

How to apply the patch:
$ cd trunk
$ patch -p1 < raw-browser-r3570.patch

Use it as explained above (only difference, the URL will be raw_browser).
Will this feature be part of the offical trac in the future?
Which version?
Well, I should refrain myself from adding new features to 0.10,
but as it's already written now and quite useful (I think),
if nobody speaks against it, I'll add it for 0.10.

Can't this just be a plugin?

I think it would be nice to have that part of the base repository subsystem, as I'm sure a majority of repositories have at least a few HTML documents in the repository.
Being able to access the latest version of those documents in full
(with their pictures, css and everything) without much hassle would be cool.

It may be good at some point to switch from "file.ext" and
"file.ext?format=raw" for preview and raw respectively to
"file.ext?format=preview" and "file.ext" for preview and raw.

Hm, I'd prefer to keep clean URLs when browsing the repo, rather than
seeing ?format=preview everywhere. And there's no "raw" mode for directories, so I think it's better if the "preview" mode (browsing mode actually) stays the default.

Other possibility: use /browser URLs for the browser mode, and /source URLs
for the raw mode.

  It would
help in this case, but also prevent apps like wget from appending
"?format=raw" to the filename, and things like the IE PDF problems when
the URL doesn't actually end in ".pdf".

Same thing with /raw-browser/file.ext or /source/file.ext URLs.

However, I don't think it'd be appropriate to make the switch before
0.10.

Sure, we defer that to some point after 0.10.

-- Christian

_______________________________________________
Trac mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac

Reply via email to