Re: [viewvc-users] Revision numbers as links on dir view

"C. Michael Pilato" <[email protected]>
Newsgroups gmane.comp.version-control.cvs.viewcvs.user
Organization CollabNet, Inc.
Message-ID <[email protected]>
Francisco Javier Herrera Cuadra wrote:
> Hello,
> 
> I recently installed ViewVC 1.1.0. When looking at the directory view, 
> the revision column (second column) doesn´t become a link for any file 
> with extension (.js). I set up parameter "mime_types_files" to point to 
> apache´s mimetypes.conf file, which does have .js files in it. I wonder 
> if this behavior might have anything to do with mime types or it´s some 
> parameter I need to set up or it´s something else. I´d appreciate any help.

How is "allowed_views" configured?  If you have the default value, then it
lacks the "co" (checkout) token which allows folks to see the checkout (or
download) views of files.

My guess is that ViewVC is determining (through mime-type lookup) that your
.js files are of some type that isn't obvious-by-inspection human-readable
("application/javascript", rather than "text/something"), and that ViewVC
has decided that such files prefer the checkout view (also called the
download view) instead of the markup (syntax-highlighted) view.  Of course,
if you've told ViewVC that the checkout view isn't allowed (which is the
default case), you'll get no link.

Solutions include:

  - Adding "co" to the allowed_views.

  - Overriding the mime-type of .js files in the mimetypes.conf
    file provided with ViewVC.

  - Waiting until ViewVC adds support for a human_readable_mime_types
    configuration option.

-- 
C. Michael Pilato <[email protected]>
CollabNet   <>   www.collab.net   <>   Distributed Development On Demand

------------------------------------------------------
http://viewvc.tigris.org/ds/viewMessage.do?dsForumId=4255&dsMessageId=2353835

To unsubscribe from this discussion, e-mail: [[email protected]].
signature.asc (application/pgp-signature, 197 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkocCVMACgkQokEGqRcG/W69MACfWO6M+QUngGi03S2gDEmycAmB
yEsAnj9o5ixKITiDgT71pV4hUfAFSvT3
=rC4T
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.