From owner-freebsd-cvsweb@FreeBSD.ORG Thu Feb 16 16:50:54 2006 Return-Path: X-Original-To: freebsd-cvsweb@freebsd.org Delivered-To: freebsd-cvsweb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3392A16A422 for ; Thu, 16 Feb 2006 16:50:54 +0000 (GMT) (envelope-from jpnairn@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.198]) by mx1.FreeBSD.org (Postfix) with ESMTP id ACDE543D4C for ; Thu, 16 Feb 2006 16:50:53 +0000 (GMT) (envelope-from jpnairn@gmail.com) Received: by wproxy.gmail.com with SMTP id i24so198874wra for ; Thu, 16 Feb 2006 08:50:52 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:mime-version:content-type; b=KU0dKHMCVhAOoz6EDd4R9K/Cjz7+eBtaF362mvh60Nu7GVeI07AjzpJIgiwPz8W7EzlZOXkhsPtPzYVOHaPuRPu58NvmbEI74/vDnf+I1pQrqbZHkqBZjPimEi1bVFiChJoOvrThcm8ta2N6DGEzkaG0lhMjOv3R2YNxKHqipnk= Received: by 10.54.123.4 with SMTP id v4mr1181000wrc; Thu, 16 Feb 2006 08:20:37 -0800 (PST) Received: by 10.54.76.17 with HTTP; Thu, 16 Feb 2006 08:20:34 -0800 (PST) Message-ID: <3bccd73d0602160820n3452a963m9ba96e664bd7a330@mail.gmail.com> Date: Thu, 16 Feb 2006 09:20:34 -0700 From: Jerry Nairn To: freebsd-cvsweb@freebsd.org, noackjr@alumni.rice.edu MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: owner-freebsd-cvsweb@freebsd.org Subject: Re: File descriptions X-BeenThere: freebsd-cvsweb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS Web maintenance mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Feb 2006 16:50:54 -0000 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 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('%s', 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