]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/View.pm
www: always show subject for root of thread skeleton
[public-inbox.git] / lib / PublicInbox / View.pm
index 354cdd93ef14939b567eef1538a54a76996af8e2..2e5228e1c9609df75e8d3bba7f8c61c2035db5c3 100644 (file)
@@ -248,7 +248,7 @@ sub eml_entry {
 
        # scan through all parts, looking for displayable text
        $ctx->{mhref} = $mhref;
-       $ctx->{end_id} = "e$id";
+       $ctx->{changed_href} = "#e$id"; # for diffstat "files? changed,"
        $ctx->{obuf} = \$rv;
        $eml->each_part(\&add_text_body, $ctx, 1);
        delete $ctx->{obuf};
@@ -777,7 +777,6 @@ sub thread_skel ($$$) {
        # when multiple Subject: headers are present, so we follow suit:
        my $subj = $hdr->header('Subject') // '';
        $subj = '(no subject)' if $subj eq '';
-       $ctx->{prev_subj} = [ split(/ /, subject_normalized($subj)) ];
        $ctx->{cur} = $mid;
        $ctx->{prev_attr} = '';
        $ctx->{prev_level} = 0;
@@ -849,7 +848,7 @@ action=$upfx
 href=#t>this message</a>:
 <textarea name=q cols=${\COLS} rows=$rows>$q</textarea>
 <input type=submit value=search
-/>\t(<a href=${upfx}_/text/help/>help</a>)</pre></form>
+/>\t(<a href=${upfx}_/text/help/#search>help</a>)</pre></form>
 EOM
        }
        if ($ctx->{ibx}->over) {