Commit 76e5ced1 authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 324990: The "Bug Activity" page does not display the bug summary in the…

Bug 324990: The "Bug Activity" page does not display the bug summary in the title of the page - Patch by Fré©ric Buclin <LpSolit@gmail.com> r=bkor a=LpSolit
parent 6ccf771c
...@@ -53,7 +53,7 @@ ValidateBugID($bug_id); ...@@ -53,7 +53,7 @@ ValidateBugID($bug_id);
($vars->{'operations'}, $vars->{'incomplete_data'}) = ($vars->{'operations'}, $vars->{'incomplete_data'}) =
Bugzilla::Bug::GetBugActivity($bug_id); Bugzilla::Bug::GetBugActivity($bug_id);
$vars->{'bug_id'} = $bug_id; $vars->{'bug'} = new Bugzilla::Bug($bug_id);
print $cgi->header(); print $cgi->header();
......
...@@ -19,27 +19,31 @@ ...@@ -19,27 +19,31 @@
#%] #%]
[%# INTERFACE: [%# INTERFACE:
# bug_id: integer. The bug ID. # bug: object. The bug whose activity is being displayed.
# operations: array of hashes, see activity/table.html.tmpl.
# #
# This template also needs to be called with the interface to the # This template also needs to be called with the interface to the
# activity.html.tmpl template fulfilled. # activity/table.html.tmpl template fulfilled.
#%] #%]
[% PROCESS global/variables.none.tmpl %] [% PROCESS global/variables.none.tmpl %]
[% filtered_desc = bug.short_desc FILTER html %]
[% PROCESS global/header.html.tmpl [% PROCESS global/header.html.tmpl
title = "Changes made to $terms.bug $bug_id" title = "Changes made to $terms.bug $bug.bug_id"
header = "Activity log" header = "Activity log for $terms.bug $bug.bug_id: $filtered_desc"
subheader = "$terms.Bug <a href=\"show_bug.cgi?id=$bug_id\">$bug_id</a>"
%] %]
<br> <p>
[% "Back to $terms.bug $bug.bug_id" FILTER bug_link(bug.bug_id) FILTER none %]
</p>
[% PROCESS bug/activity/table.html.tmpl %] [% PROCESS bug/activity/table.html.tmpl %]
<p> [% IF operations.size > 0 %]
<a href="show_bug.cgi?id=[% bug_id %]">Back to [% terms.bug %] <p>
[%+ bug_id %]</a> [% "Back to $terms.bug $bug.bug_id" FILTER bug_link(bug.bug_id) FILTER none %]
</p> </p>
[% END %]
[% PROCESS global/footer.html.tmpl %] [% PROCESS global/footer.html.tmpl %]
...@@ -389,10 +389,6 @@ ...@@ -389,10 +389,6 @@
'productstring', 'productstring',
], ],
'bug/activity/show.html.tmpl' => [
'bug_id',
],
'bug/activity/table.html.tmpl' => [ 'bug/activity/table.html.tmpl' => [
'change.attachid', 'change.attachid',
'change.field', 'change.field',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment