Annotate and View links in Repository
Added by Nils Adermann over 16 years ago
Why do I only see the Annotate and View links on html files, but not on PHP files? See http://code.phpbb.com/repositories/changes/5/trunk/phpBB/common.php and http://code.phpbb.com/repositories/changes/5/trunk/phpBB/styles/prosilver/template/attachment.html
Replies (4)
RE: Annotate and View links in Repository - Added by Brian Palmer over 16 years ago
Maybe upgrade Redmine? You'll only see Annotate and View links for text files, and Redmine didn't consider php files to be text until r1070, from the looks of it. Check trunk/lib/redmine/mime_type.rb
for details.
RE: Annotate and View links in Repository - Added by Brian Palmer over 16 years ago
Ah, I should mention that the latest stable version (0.6.3) would have this patch in it, you'd have to 'upgrade' to trunk.
RE: Annotate and View links in Repository - Added by Jean-Philippe Lang over 16 years ago
Annotate and View links are proposed for extensions that are associated to a mimetype like text/*
Extensions/mimetype mapping is defined in the file: /lib/redmine/mime_type.rb
You can add some more extensions in this file if you want.
RE: Annotate and View links in Repository - Added by Nils Adermann over 16 years ago
Thanks to both of you. I'm on 0.6.3 (looking forward to a new stable release with all the changes in trunk ;-))
Editing the file solved my problem :) Btw. if you try to open annotate on an open file it says "Entry and/or revision doesn't exist in the repository." but that's probably not a real bug but the message could be a different one saying the file is empty ;-)