Re: [viewvc-users] Unable to view files in markup only co
"C. Michael Pilato" <[email protected]> Wed, 24 Feb 2016 09:36:38 -0500
| Newsgroups | gmane.comp.version-control.cvs.viewcvs.user |
|---|---|
| Message-ID | <CAFVDjdyteWDPC0ubU0+foD6OU_xmvrz-YJWEJqQv-EK8KQ8v1w__12966.9677037329$1456324610$gmane$org@mail.gmail.com> |
------=_Part_9764_162326600.1456324602805 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit On Tue, Feb 23, 2016 at 11:57 AM, Logan Kuhn <[email protected]> wrote: > By default the two links are set to co. How can we change that to > markup? The installation is essentially stock with only the database > portion being modified > Logan, You haven't provided a whole lot of context for the issue you're seeing, so my apologies if I make some assumptions that don't hold true. It appears you've sent a closely cropped screenshot of the headers in the diff view. The URLs used for the revision links there come from the diff.ezt template: [define left_view_href][if-any left.prefer_markup][left.view_href][else][if-any left.download_href][left.download_href][end][end][end] [define right_view_href][if-any right.prefer_markup][right.view_href][else][if-any right.download_href][right.download_href][end][end][end] Essentially, this logic says that if the file type is one for which the markup view is preferred (that is, appears to be a human-readable file), then use that view URL for the revision number link; otherwise, use the download URL. So, some questions: Does this "only gives me a 'co' link" thing happen for every file in your repository? If not, for which types of file do you see the problem? What would a MIME type system guess the MIME types of those files to be (based on the file's name)? Have you disabled the 'markup' view altogether using the 'allowed_views' configuration option? -- Mike ------------------------------------------------------ http://viewvc.tigris.org/ds/viewMessage.do?dsForumId=4255&dsMessageId=3162689 To unsubscribe from this discussion, e-mail: [[email protected]]. ------=_Part_9764_162326600.1456324602805 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div><div>On Tue, Feb 23, 2016 at 11:57 AM, Logan Kuhn <sp= an dir=3D"ltr"><<a href=3D"mailto:[email protected]" target=3D"_blank">= [email protected]</a>></span> wrote:<br></div></div><div class=3D"gmail= _extra"><div class=3D"gmail_quote"><blockquote class=3D"gmail_quote" style= =3D"margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(20= 4,204,204);border-left-style:solid;padding-left:1ex"><div><div style=3D"fon= t-family:Arial;font-size:12pt;color:rgb(0,0,0)"><div>By default the two lin= ks are set to co.=C2=A0 How can we change that to markup?=C2=A0 The install= ation is essentially stock with only the database portion being modified</d= iv></div></div></blockquote><div><br></div>Logan,<div><br></div><div>You ha= ven't provided a whole lot of context for the issue you're seeing, = so my apologies if I make some assumptions that don't hold true.<div><b= r></div><div>It appears you've sent a closely cropped screenshot of the= headers in the diff view.=C2=A0 The URLs used for the revision links there= come from the diff.ezt template:</div><div><br></div><div><div>=C2=A0 =C2= =A0[define left_view_href][if-any left.prefer_markup][left.view_href][else]= [if-any left.download_href][left.download_href][end][end][end]</div><div>= =C2=A0 =C2=A0[define right_view_href][if-any right.prefer_markup][right.vie= w_href][else][if-any right.download_href][right.download_href][end][end][en= d]</div></div><div><br></div><div>Essentially, this logic says that if the = file type is one for which the markup view is preferred (that is, appears t= o be a human-readable file), then use that view URL for the revision number= link; otherwise, use the download URL.</div><div><br></div><div>So, some q= uestions: =C2=A0Does this "only gives me a 'co' link" thi= ng happen for every file in your repository? If not, for which types of fil= e do you see the problem?=C2=A0 What would a MIME type system guess the MIM= E types of those files to be (based on the file's name)?=C2=A0 Have you= disabled the 'markup' view altogether using the 'allowed_views= ' configuration option?</div><div><br></div></div><div>-- Mike</div></d= iv></div></div> ------=_Part_9764_162326600.1456324602805--