Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

make continuation lines and summary mode play nicely together

  • Loading branch information...
commit f1617ff79a334b91821641f01d6228e7e3342046 1 parent 7e7af4e
Moritz Lenz authored
4  cgi/style.css
@@ -220,3 +220,7 @@ abbr { cursor: help; }
220 220
 	clear: both;
221 221
 	text-align: left;
222 222
 }
  223
+
  224
+tr.cont td.nick {
  225
+    visibility: hidden;
  226
+}
2  cgi/summary.js
@@ -38,9 +38,11 @@ function save_summary_changes() {
38 38
 function hide_non_summary() {
39 39
     $('.summary_checkbox:not(:checked)').parents('tr').hide();
40 40
     $('#toggle_summary').html('<a href="javascript:show_all_rows()">show all lines</a>');
  41
+    $('tr.cont td.nick').css('visibility', 'visible');
41 42
 }
42 43
 
43 44
 function show_all_rows() {
44 45
     $('.summary_checkbox').parents('tr').show();
45 46
     $('#toggle_summary').html(summary_filter_link);
  47
+    $('tr.cont td.nick').css('visibility', 'hidden');
46 48
 }
8  lib/IrcLog/WWW.pm
@@ -504,17 +504,15 @@ sub message_line {
504 504
 
505 505
     my @classes;
506 506
     my @msg_classes;
507  
-
  507
+    my $display_nick = $nick;
  508
+    $display_nick =~ s/\A\*\ /'*' . NBSP/exms;
  509
+    $h{NICK} = encode_entities($display_nick, ENTITIES);
508 510
     if ($nick ne $args_ref->{prev_nick}){
509 511
         # $c++ is used to alternate the background color
510 512
         $$c++;
511  
-        my $display_nick = $nick;
512  
-        $display_nick =~ s/\A\*\ /'*' . NBSP/exms;
513  
-        $h{NICK} = encode_entities($display_nick, ENTITIES);
514 513
         push @classes, 'new';
515 514
     } else {
516 515
         # omit nick in successive lines from the same nick
517  
-        $h{NICK} = "";
518 516
         push @classes, 'cont';
519 517
     }
520 518
     # determine nick color:

0 notes on commit f1617ff

Please sign in to comment.
Something went wrong with that request. Please try again.