{"thread":{"id":"8873","subject":"[PATCH] gitweb: configurable width for the projects list Description column","startedAt":"2007-07-05T00:36:48Z","lastAt":"2007-07-11T18:28:15Z","messageCount":2,"participants":["Michael Hendricks","Jakub Narebski"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"46522","messageId":"11835958082458-git-send-email-michael@ndrix.org","threadId":"8873","inReplyTo":null,"subject":"[PATCH] gitweb: configurable width for the projects list Description column","fromName":"Michael Hendricks","fromEmail":"michael@ndrix.org","sentAt":"2007-07-05T00:36:48Z","receivedAt":"2007-07-05T00:36:48Z","isPatch":true,"sender":{"key":"michael@ndrix.org","avatar":"https://gravatar.com/avatar/315311e6daa79f24e5648f9534420c24ec48eada42efd4110f1d17167ff44fa8?d=mp&s=160"},"body":"This allows gitweb users to set $projects_list_description_width\nin their gitweb.conf to determine how many characters of a project\ndescription are displayed before being truncated with an ellipsis.\n\nSigned-off-by: Michael Hendricks <michael@ndrix.org>\n---\n gitweb/gitweb.perl |    5 ++++-\n 1 files changed, 4 insertions(+), 1 deletions(-)\n\ndiff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl\nindex dbfb044..29d058c 100755\n--- a/gitweb/gitweb.perl\n+++ b/gitweb/gitweb.perl\n@@ -71,6 +71,9 @@ our $logo_label = \"git homepage\";\n # source of projects list\n our $projects_list = \"++GITWEB_LIST++\";\n \n+# the width (in characters) of the projects list \"Description\" column\n+our $projects_list_description_width = 25;\n+\n # default order of projects list\n # valid values are none, project, descr, owner, and age\n our $default_projects_order = \"project\";\n@@ -3163,7 +3166,7 @@ sub git_project_list_body {\n \t\tif (!defined $pr->{'descr'}) {\n \t\t\tmy $descr = git_get_project_description($pr->{'path'}) || \"\";\n \t\t\t$pr->{'descr_long'} = to_utf8($descr);\n-\t\t\t$pr->{'descr'} = chop_str($descr, 25, 5);\n+\t\t\t$pr->{'descr'} = chop_str($descr, $projects_list_description_width, 5);\n \t\t}\n \t\tif (!defined $pr->{'owner'}) {\n \t\t\t$pr->{'owner'} = get_file_owner(\"$projectroot/$pr->{'path'}\") || \"\";\n-- \n1.5.3.rc0.14.gebe8f\n"},{"id":"47054","messageId":"f737fv$nhm$1@sea.gmane.org","threadId":"8873","inReplyTo":"11835958082458-git-send-email-michael@ndrix.org","subject":"Re: [PATCH] gitweb: configurable width for the projects list Description column","fromName":"Jakub Narebski","fromEmail":"jnareb@gmail.com","sentAt":"2007-07-11T18:28:15Z","receivedAt":"2007-07-11T18:28:15Z","isPatch":true,"sender":{"key":"jnareb@gmail.com","avatar":"https://avatars.githubusercontent.com/u/2706?v=4"},"body":"Michael Hendricks wrote:\n\n> This allows gitweb users to set $projects_list_description_width\n> in their gitweb.conf to determine how many characters of a project\n> description are displayed before being truncated with an ellipsis.\n\nAck.\n\n-- \nJakub Narebski\nWarsaw, Poland\nShadeHawk on #git\n"}]}