Browse Source

link channel header in search results

Byron Jones 6 years ago
parent
commit
54b1f39336
3 changed files with 6 additions and 3 deletions
  1. 3 0
      web/logbot.sass
  2. 0 0
      web/public/static/logbot.min.css
  3. 3 3
      web/templates/search.html.ep

+ 3 - 0
web/logbot.sass

@@ -783,6 +783,9 @@ body
 
   ul
     li.channel
+      a
+        color: #000
+
       background: #eee
       color: #000
       margin: 2px 0

File diff suppressed because it is too large
+ 0 - 0
web/public/static/logbot.min.css


+ 3 - 3
web/templates/search.html.ep

@@ -133,11 +133,11 @@
   <div class="date"><%= time_to_datestr($date_block->{date}) %></div>
   <ul>
     % foreach my $channel (sort keys %$channels) {
-      <li class="channel"><%= $channel %></li>
+      <li class="channel"><a href="<%= url_for_channel( channel => $channel, date => $date ) %>"><%= $channel %></a></li>
       % foreach my $event (@{ $channels->{$channel} }) {
-      %= include 'shared/event', event => $event, search => 1, search => 1, channel => $channel, date => $date
+        %= include 'shared/event', event => $event, search => 1, search => 1, channel => $channel, date => $date
+      % }
     % }
-  % }
   </ul>
 % }
 

Some files were not shown because too many files changed in this diff