author | Jakub Narebski <jnareb@gmail.com> | |
Tue, 10 Jun 2008 17:21:44 +0000 (19:21 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 11 Jun 2008 06:57:37 +0000 (23:57 -0700) | ||
commit | 7da0f3a46daac50782a71e8a6eb12355d49c419d | |
tree | ff90e918fb2a9b0aadfc92c9aea61051892afa8b | tree | snapshot |
parent | 69913415655839b3add5d930ebbea1be8a5b60a9 | commit | diff |
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 <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
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 <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
gitweb/gitweb.perl | diff | blob | history |