About hiding part of the Browse Source

18 views
Skip to first unread message

pon...@gmail.com

unread,
Feb 13, 2022, 12:20:37 AMFeb 13
to Trac Users
I am using Trac 1.0.15.

I want to do the following settings in [Browse Source] only for a specific group.

*Age, Author, and Last Change should be displayed.
*I want to show only the latest revision.
*I don't want to show old revisions.

How can I do this? Please let me know.

browse-source.png

RjOllos

unread,
Feb 14, 2022, 9:05:27 PMFeb 14
to Trac Users
You can modify the template with Genshi, but I would not recommend it since we've dropped Genshi in Trac 1.4.

You can instead use some custom JavaScript to hide the columns. Here is guidance on adding custom JavaScript to your site. It shows how to add custom CSS, but the same approach can be taken for adding custom Javascript.

Ryan
 

pon...@gmail.com

unread,
Feb 15, 2022, 10:04:43 AMFeb 15
to Trac Users
Thanks, Ryan.

I see that changing Permissions is not enough to achieve the settings I want.
I'll look into using Custom JavaScript as you suggested.

2022年2月15日火曜日 11:05:27 UTC+9 RjOllos:
Reply all
Reply to author
Forward
0 new messages