Permalink
Browse files

make continuation lines and summary mode play nicely together

  • Loading branch information...
moritz committed Sep 15, 2012
1 parent 7e7af4e commit f1617ff79a334b91821641f01d6228e7e3342046
Showing with 9 additions and 5 deletions.
  1. +4 −0 cgi/style.css
  2. +2 −0 cgi/summary.js
  3. +3 −5 lib/IrcLog/WWW.pm
View
@@ -220,3 +220,7 @@ abbr { cursor: help; }
clear: both;
text-align: left;
}
+
+tr.cont td.nick {
+ visibility: hidden;
+}
View
@@ -38,9 +38,11 @@ function save_summary_changes() {
function hide_non_summary() {
$('.summary_checkbox:not(:checked)').parents('tr').hide();
$('#toggle_summary').html('<a href="javascript:show_all_rows()">show all lines</a>');
+ $('tr.cont td.nick').css('visibility', 'visible');
}
function show_all_rows() {
$('.summary_checkbox').parents('tr').show();
$('#toggle_summary').html(summary_filter_link);
+ $('tr.cont td.nick').css('visibility', 'hidden');
}
View
@@ -504,17 +504,15 @@ sub message_line {
my @classes;
my @msg_classes;
-
+ my $display_nick = $nick;
+ $display_nick =~ s/\A\*\ /'*' . NBSP/exms;
+ $h{NICK} = encode_entities($display_nick, ENTITIES);
if ($nick ne $args_ref->{prev_nick}){
# $c++ is used to alternate the background color
$$c++;
- my $display_nick = $nick;
- $display_nick =~ s/\A\*\ /'*' . NBSP/exms;
- $h{NICK} = encode_entities($display_nick, ENTITIES);
push @classes, 'new';
} else {
# omit nick in successive lines from the same nick
- $h{NICK} = "";
push @classes, 'cont';
}
# determine nick color:

0 comments on commit f1617ff

Please sign in to comment.