On 5/10/18, Will Parsons <varro@nodomain.invalid> wrote:
> I've just added a plain-text LICENCE file to one of my projects that uses
> Fossil, and I'd like to add a link to it from the project homepage that will
> display the file's contents when the link is followed.  I thought the
> obvious
> way to do that would be add something like this to the home page:
>
>     <a href="doc/trunk/LICENCE">Licence</a>
>
> This results in a dialog box when the link is followed (using Firefox)
> asking
> what to do with the file (whether to open or download), which is not what I
> want - I want to simply display the file contents.
>
> Thinking I could fool it into thinking the file is HTML, I tried:
>
>     <a href="doc/trunk/LICENCE" type="text/html">Licence</a>
>
> This makes no difference.

Did you try:

     <a href="doc/trunk/LICENSE?mimetype=text/html">License</a>

-- 
D. Richard Hipp
d...@sqlite.org
_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to