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]> |
C. Michael Pilato wrote:
> 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.
>
Oops! Forgot one:
- Tweaking your directory.ezt template so that it always tries to use
the markup view for files instead of trying to choose between the
markup and checkout views.
--
C. Michael Pilato <[email protected]>
CollabNet <> www.collab.net <> Distributed Development On Demand
------------------------------------------------------
http://viewvc.tigris.org/ds/viewMessage.do?dsForumId=4255&dsMessageId=2353840
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) iEYEARECAAYFAkocCcgACgkQokEGqRcG/W60lACfUiQsHGb4jG8hILRx9GpyFa7O n6MAoJHeRtGAStBhQVg272l9MXfoHz8m =HuFp -----END PGP SIGNATURE-----