Re: html page display via cgit
- From
Stefan Naewe <stefan.naewe@atlas-elektronik.com>
- Date
- Sep 2, 2010, 07:09 UTC
- Message-ID
- <4C7F4D9A.1050103@atlas-elektronik.com>
- In-Reply-To
- <AANLkTimucGi-7QdxbP5iLs0h5=VWW55GCxug51V584UA@mail.gmail.com>
On 9/1/2010 2:19 PM, Shivdas Gujare wrote:
Show 30 quoted lines
> Hi Stefan & All, > > Thanks for your replies. > > On Wed, Sep 1, 2010 at 3:53 PM, Stefan Naewe > <stefan.naewe@atlas-elektronik.com> wrote: >> On 9/1/2010 11:32 AM, Shivdas Gujare wrote: >>> Hi All, >>> >>> I hope, this is the right mailing list for cgit as well. >>> I am trying to add some "html logs" inside cgit, but I can't open >>> these logs via cgit inside firefox, i.e. cgit open every files in >>> "plain" format, >>> would like to know if it is possible to open "html" pages inside cgit >>> so that if I click on html page added into git, it opens in html and >>> not in plain format. >> >> Set this in /etc/cgitrc >> >> mimetype.gif=image/gif >> mimetype.html=text/html >> mimetype.jpg=image/jpeg >> mimetype.jpeg=image/jpeg >> mimetype.pdf=application/pdf >> mimetype.png=image/png >> mimetype.svg=image/svg+xml >> > > I did tried this, but it didn't made any difference on showing html > pages.
I use cgit v0.8.3.3-82-gaec9 and it works for me. You still have to use the 'plain' link in the blob view, i.e. the URL looks like
http://host/cgit/repo/plain/file.html?h=branch
> Does this work like adding a line " > mimetype.pdf=application/pdf" to /etc/cgitrc allows me > to open a pdf via cgit interface in browser?
Works for me, too!
Stefan
-- ---------------------------------------------------------------- /dev/random says: Nobody's ugly after 2 a.m.