]> Lady’s Gitweb - Gitweb/commit
gitweb: Separate generating 'sort by' table header
authorJakub Narebski <redacted>
Tue, 10 Jun 2008 17:21:44 +0000 (19:21 +0200)
committerLady <redacted>
Mon, 6 Apr 2026 04:07:33 +0000 (00:07 -0400)
commit769c3a4080e062f7ec922ea524f69995e0e0f95b97eb1650ea8207e703edbd4d
tree78713cc7d732c48630da45a9594a65cba1753b6a2dda7054c8fc27b5dbbb79b9
parent3a0fd6fc9083800f134ed4d5173d767f8954a96510ec311fcbc58facfcbc0d25
gitweb: Separate generating 'sort by' table header

Extract generating table header cell, for tables which can be sorted
by its columns, into print_sort_th_str() and print_sort_th_num()
subroutines, and print_sort_th() driver subroutine.

This avoids repetition, and should make further improvements (like
JavaScript sorting) easier.  The subroutine uses now "replay" link,
so it is generic enough to be able to use it for other tables which
can be sorted by column, like for example 'heads' and 'tags' view
(sort by name, or sort by age).

Signed-off-by: Jakub Narebski <redacted>
Signed-off-by: Junio C Hamano <redacted>
gitweb.perl
This page took 0.191498 seconds and 4 git commands to generate.