Date: Thu, 16 Feb 2006 09:20:34 -0700 From: Jerry Nairn <jpnairn@gmail.com> To: freebsd-cvsweb@freebsd.org, noackjr@alumni.rice.edu Cc: owner-freebsd-cvsweb@freebsd.org Subject: Re: File descriptions Message-ID: <3bccd73d0602160820n3452a963m9ba96e664bd7a330@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Not sure if anyone got this when I sent it earlier. Sorry if this is a repeat. > Jonathan Noack said the following: > > Another complementary idea is to set the file link <a> tag title > > attribute to the file description. That would make the description > > appear in many browsers as tool tip when the mouse passes over the link= . [snip] > These are all great ideas. Thanks! In my copy of cvsweb, I have modified the "link" subroutine to accept a description with each link. sub link($$$) { my ($name, $url, $desc) =3D @_; if ( $desc ) { $desc =3D sprintf('alt=3D"%s" title=3D"%s"', $desc, $desc); } return sprintf('<a href=3D"%s" %s>%s</a>', htmlquote($url), $desc, $name); } The 'alt' attribute probably isn't necessary. I think it works to create a tool tip in some ancient version of IE. This isn't all of the changes. I'm not trying to send a patch, just suggesting something. So, for example, the links at the tops of columns in the folder view can change from: sprintf('./%s#dirlist', toggleQuery('sortby', 'file'))); to: sprintf('./%s#dirlist', toggleQuery('sortby', 'file')), 'Sort by file name'); Jerry Nairn Microchip Technology Language Tools
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3bccd73d0602160820n3452a963m9ba96e664bd7a330>