]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/View.pm
www: fix top nav bar for unindexed v1 inboxes
[public-inbox.git] / lib / PublicInbox / View.pm
index 354cdd93ef14939b567eef1538a54a76996af8e2..11a94ba938636ce28bd8d5373d5e2b3d50c811c6 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};
@@ -678,7 +678,7 @@ sub _msg_page_prepare_obuf {
                $ctx->{chash} = content_hash($eml) if $ctx->{smsg}; # reused MID
                $rv .= "<pre\nid=b>"; # anchor for body start
        }
-       $ctx->{-upfx} = '../' if $have_over;
+       $ctx->{-upfx} = '../';
        my @title; # (Subject[0], From[0])
        for my $v ($eml->header('From')) {
                my @n = PublicInbox::Address::names($v);
@@ -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) {