{"thread":{"id":"43615","subject":"[PATCH] gitweb: Add title attribute to ref marker with full ref name","startedAt":"2006-12-15T22:49:12Z","lastAt":"2006-12-15T22:49:12Z","messageCount":1,"participants":["Jakub Narebski"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"295995","messageId":"1166222952562-git-send-email-jnareb@gmail.com","threadId":"43615","inReplyTo":null,"subject":"[PATCH] gitweb: Add title attribute to ref marker with full ref name","fromName":"Jakub Narebski","fromEmail":"jnareb@gmail.com","sentAt":"2006-12-15T22:49:12Z","receivedAt":"2006-12-15T22:49:12Z","isPatch":true,"sender":{"key":"jnareb@gmail.com","avatar":"https://avatars.githubusercontent.com/u/2706?v=4"},"body":"Add title attribute, which will be shown as popup on mouseover in\ngraphical web browsers, with full name of ref, including part (type)\nremoved from the name of ref itself. This is useful to see that this\nstrange ref is StGIT ref, or it is remote branch, or it is lightweigh\ntag (with branch-like name).\n\nSigned-off-by: Jakub Narebski <jnareb@gmail.com>\n---\n gitweb/gitweb.perl |    3 ++-\n 1 files changed, 2 insertions(+), 1 deletions(-)\n\ndiff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl\nindex 5ea3fda..5eaab05 100755\n--- a/gitweb/gitweb.perl\n+++ b/gitweb/gitweb.perl\n@@ -856,7 +856,8 @@ sub format_ref_marker {\n \t\t\t\t$name = $ref;\n \t\t\t}\n \n-\t\t\t$markers .= \" <span class=\\\"$type\\\">\" . esc_html($name) . \"</span>\";\n+\t\t\t$markers .= \" <span class=\\\"$type\\\" title=\\\"$ref\\\">\" .\n+\t\t\t            esc_html($name) . \"</span>\";\n \t\t}\n \t}\n \n-- \n1.4.4.1\n"}]}