author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | |
Tue, 2 Sep 2008 19:47:05 +0000 (21:47 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 3 Sep 2008 00:10:37 +0000 (17:10 -0700) | ||
commit | 4afbaefffa9095fe1391b4b61289a7dc954e9f7b | |
tree | dee1c5ddad91deee1d331d3bc52112ec9b320870 | tree | snapshot |
parent | 106db883b791efb7f39f3b2f8553236ba792a89e | commit | diff |
gitweb: ref markers link to named shortlogs
This patch turns ref markers for tags and heads into links to
appropriate views for the ref name, depending on current context.
For annotated tags, we link to the tag view, unless that's the current
view, in which case we switch to shortlog. For other refs, we prefer the
current view if it's history or (short)log, and default to shortlog
otherwise.
Appropriate changes are made in the CSS to prevent ref markers from
being annoyingly blue and underlined, unless hovered. A visual
indication of the target view difference is also implemented by making
annotated tags show up in italic.
Signed-off-by: Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
Acked-by: Petr Baudis <pasky@suse.cz>
Acked-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This patch turns ref markers for tags and heads into links to
appropriate views for the ref name, depending on current context.
For annotated tags, we link to the tag view, unless that's the current
view, in which case we switch to shortlog. For other refs, we prefer the
current view if it's history or (short)log, and default to shortlog
otherwise.
Appropriate changes are made in the CSS to prevent ref markers from
being annoyingly blue and underlined, unless hovered. A visual
indication of the target view difference is also implemented by making
annotated tags show up in italic.
Signed-off-by: Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
Acked-by: Petr Baudis <pasky@suse.cz>
Acked-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
gitweb/gitweb.css | diff | blob | history | |
gitweb/gitweb.perl | diff | blob | history |