Patchwork [1,of,3] gitweb: wrap table rows of annotate view into a <tbody> element

login
register
mail settings
Submitter Denis Laxalde
Date June 22, 2017, 2:40 p.m.
Message ID <a67c2d37caf130131d7a.1498142410@sh77.tls.logilab.fr>
Download mbox | patch
Permalink /patch/21609/
State Accepted
Headers show

Comments

Denis Laxalde - June 22, 2017, 2:40 p.m.
# HG changeset patch
# User Denis Laxalde <denis.laxalde@logilab.fr>
# Date 1498057341 -7200
#      Wed Jun 21 17:02:21 2017 +0200
# Node ID a67c2d37caf130131d7a5c659c9ec1428ee75451
# Parent  6d79e9109908c2cb468c9eeaf8869aa1926fbea8
# Available At http://hg.logilab.org/users/dlaxalde/hg
#              hg pull http://hg.logilab.org/users/dlaxalde/hg -r a67c2d37caf1
gitweb: wrap table rows of annotate view into a <tbody> element

We will use this element to hook data attribute for the followlines.js script
to be plugged in annotate view. Also this gets symmetrical with paper style
which already has a <tbody> element.

Patch

diff --git a/mercurial/templates/gitweb/fileannotate.tmpl b/mercurial/templates/gitweb/fileannotate.tmpl
--- a/mercurial/templates/gitweb/fileannotate.tmpl
+++ b/mercurial/templates/gitweb/fileannotate.tmpl
@@ -66,7 +66,9 @@  annotate |
 </div>
 <div class="page_body">
 <table>
+<tbody>
 {annotate%annotateline}
+</tbody>
 </table>
 </div>