Re: [viewvc-users] Revision numbers as links on dir view
Francisco Javier Herrera Cuadra <[email protected]>
| Newsgroups | gmane.comp.version-control.cvs.viewcvs.user |
|---|---|
| Message-ID | <[email protected]> |
hello,
here are my findings so far:
>> - Adding "co" to the allowed_views.
done ... and revision numbers still not as links for .js files
>> - Overriding the mime-type of .js files in the mimetypes.conf
>> file provided with ViewVC.
version 1.1.0 doesn´t have anything on that file, so I set it up to use
apache´s mimetypes file.
i also found that some files like .php, .inc, .ppt have "markup" view in
their filename links and "log" view in their revision link, while others
like .xul have it exactly the other way around (markup on revision and
log on filename).
i´ll explore the directory.ezt file and see if I can tweak anything
there. i´ll share any findings.
regards,
francisco
On 5/26/09 10:24 AM, C. Michael Pilato wrote:
> 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.
>
------------------------------------------------------
http://viewvc.tigris.org/ds/viewMessage.do?dsForumId=4255&dsMessageId=2353882
To unsubscribe from this discussion, e-mail: [[email protected]].