Commit d5adbc10 authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Part 4 of bug 182083: add Help for non-admin pages - Patch by me, r=Colin

parent 50cdda2d
......@@ -71,6 +71,7 @@ if (grep(/^cmd-/, $cgi->param())) {
my $action = $cgi->param('action');
my $series_id = $cgi->param('series_id');
$vars->{'doc_section'} = 'reporting.html#charts';
# Because some actions are chosen by buttons, we can't encode them as the value
# of the action param, because that value is localization-dependent. So, we
......
......@@ -45,6 +45,8 @@ my $cgi = Bugzilla->cgi;
my $template = Bugzilla->template;
my $vars = {};
$vars->{'doc_section'} = 'myaccount.html';
print $cgi->header();
# If we're using LDAP for login, then we can't create a new account here.
......
......@@ -1426,7 +1426,7 @@
</section>
<section>
<section id="charts-new-series">
<title>Creating New Data Sets</title>
<para>
......
......@@ -61,6 +61,9 @@ my $dbh = Bugzilla->dbh;
my $template = Bugzilla->template;
my $vars = {};
# All pages point to the same part of the documentation.
$vars->{'doc_section'} = 'bugreports.html';
my $product_name = trim($cgi->param('product') || '');
# Will contain the product object the bug is created in.
my $product;
......
......@@ -316,6 +316,9 @@ if ($cgi->param('debug')) {
print Data::Dumper::Dumper(@image_data) . "\n\n</pre>";
}
# All formats point to the same section of the documentation.
$vars->{'doc_section'} = 'reporting.html#reports';
$template->process("$format->{'template'}", $vars)
|| ThrowTemplateError($template->error());
......
......@@ -25,7 +25,10 @@
[%+ "$terms.Bug " _ a.bug_id FILTER bug_link(a.bug_id) FILTER none %]
[% END %]
[% PROCESS global/header.html.tmpl title = title %]
[% PROCESS global/header.html.tmpl
title = title
doc_section = "attachments.html"
%]
<table border="1" cellpadding="4" cellspacing="0">
<tr bgcolor="#6666FF">
......
......@@ -36,6 +36,7 @@
onload="setContentTypeDisabledState(document.entryform);"
style_urls = [ 'skins/standard/create_attachment.css' ]
javascript_urls = [ "js/attachment.js" ]
doc_section = "attachments.html"
%]
<form name="entryform" method="post" action="attachment.cgi" enctype="multipart/form-data">
......
......@@ -28,6 +28,7 @@
[% PROCESS global/header.html.tmpl
title = "Attachment $attachment.id added to $terms.Bug $attachment.bug_id"
doc_section = "bug_page.html"
%]
<dl>
......
......@@ -224,7 +224,7 @@ tbody.file pre:empty {
[% subheader = BLOCK %]
[% bugsummary FILTER html %]
[% END %]
[% PROCESS global/header.html.tmpl %]
[% PROCESS global/header.html.tmpl doc_section = "attachments.html#patchviewer" %]
[% ELSE %]
<html>
<head>
......
......@@ -35,6 +35,7 @@
title = title
header = header
subheader = subheader
doc_section = "attachments.html"
style = "
table.attachment_info th { text-align: right; vertical-align: top; }
table.attachment_info td { text-align: left; vertical-align: top; }
......
......@@ -27,6 +27,7 @@
[% PROCESS global/header.html.tmpl
title = "Changes Submitted to Attachment $attachment.id of $terms.Bug $attachment.bug_id"
doc_section = "bug_page.html"
%]
<dl>
......
......@@ -31,6 +31,7 @@
javascript_urls = ["js/expanding-tree.js"]
style_urls = ["skins/standard/dependency-tree.css"]
subheader = filtered_desc
doc_section = "hintsandtips.html#dependencytree"
%]
[% PROCESS depthControlToolbar %]
......
......@@ -29,6 +29,7 @@
h1 = ""
style_urls = ["skins/standard/show_multiple.css",
"skins/standard/buglist.css"]
doc_section = "bug_page.html"
%]
[% PROCESS bug/time.html.tmpl %]
[% IF bugs.first %]
......
......@@ -40,6 +40,7 @@
"bz_bug_$bug.bug_id"
]
javascript_urls = [ "js/util.js", "js/keyword-chooser.js" ]
doc_section = "bug_page.html"
%]
[% END %]
......
......@@ -33,6 +33,7 @@
title = title
header = header
style_urls = ["skins/standard/summarize-time.css"]
doc_section = "timetracking.html"
%]
[% INCLUDE query_form %]
......
......@@ -49,6 +49,7 @@
style = style
atomlink = "buglist.cgi?$urlquerypart&title=$title&ctype=atom"
javascript_urls = [ "js/util.js", "js/keyword-chooser.js" ]
doc_section = "query.html#list"
%]
<div class="bz_query_head" align="center">
......
......@@ -27,6 +27,7 @@
[% PROCESS global/header.html.tmpl
title = "Reporting and Charting Kitchen"
doc_section = "reporting.html"
%]
<p>
......
......@@ -21,8 +21,11 @@
[% PROCESS "global/field-descs.none.tmpl" %]
[% PROCESS global/header.html.tmpl title = "$terms.Bug Charts"
h1 = "Welcome to the $terms.Bugzilla Charting Kitchen" %]
[% PROCESS global/header.html.tmpl
title = "$terms.Bug Charts"
h1 = "Welcome to the $terms.Bugzilla Charting Kitchen"
doc_section = "reporting.html#charts"
%]
<div align="center">
[% IF url_image %]
......
......@@ -40,6 +40,7 @@ var queryform = "queryform"
javascript = js_data
javascript_urls = [ "js/productform.js" "js/util.js" "js/help.js" ]
style_urls = [ "skins/standard/help.css" ]
doc_section = "query.html"
style = "dl.bug_changes dt {
margin-top: 15px;
}"
......
......@@ -35,6 +35,7 @@
onload = "doOnSelectProduct(0);"
javascript = js_data
javascript_urls = [ "js/productform.js" ]
doc_section = "reporting.html#charts-new-series"
%]
<form method="get" action="chart.cgi" name="chartform">
......
......@@ -34,6 +34,7 @@ var queryform = "reportform"
onload = "doOnSelectProduct(0); chartTypeChanged()"
javascript = js_data
javascript_urls = [ "js/productform.js" ]
doc_section = "reporting.html#reports"
%]
[% PROCESS "search/search-report-select.html.tmpl" %]
......
......@@ -34,6 +34,7 @@ var queryform = "reportform"
onload = "doOnSelectProduct(0)"
javascript = js_data
javascript_urls = [ "js/productform.js" ]
doc_section = "reporting.html#reports"
%]
[% PROCESS "search/search-report-select.html.tmpl" %]
......
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