git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Stefan Naewe <stefan.naewe@atlas-elektronik.com>
To: Shivdas Gujare <shivdas.tech@gmail.com>
Cc: "git@vger.kernel.org" <git@vger.kernel.org>
Subject: Re: html page display via cgit
Date: Wed, 01 Sep 2010 12:23:29 +0200	[thread overview]
Message-ID: <4C7E29A1.8020304@atlas-elektronik.com> (raw)
In-Reply-To: <AANLkTinJx0ZKjCtpq9k6nwigodnu42EvqchpgQtwGp5S@mail.gmail.com>

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

HTH

Stefan
-- 
----------------------------------------------------------------
/dev/random says: Don't stop posting, a good laugh breaks up my day nicely

  parent reply	other threads:[~2010-09-01 10:23 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-01  9:32 html page display via cgit Shivdas Gujare
2010-09-01  9:46 ` Ævar Arnfjörð Bjarmason
2010-09-01 10:00   ` Joshua Juran
2010-09-01 10:06     ` Ævar Arnfjörð Bjarmason
2010-09-01 10:25       ` Joshua Juran
2010-09-01 10:23 ` Stefan Naewe [this message]
2010-09-01 12:19   ` Shivdas Gujare
2010-09-01 12:45     ` Lars Hjemli
2010-09-02  7:09     ` Stefan Naewe

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4C7E29A1.8020304@atlas-elektronik.com \
    --to=stefan.naewe@atlas-elektronik.com \
    --cc=git@vger.kernel.org \
    --cc=shivdas.tech@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).