Commit 707773ab authored by Gervase Markham's avatar Gervase Markham

Bug 1107874 - make Help links point to new documentation. r=dkl, a=justdave.

parent 89b7de13
......@@ -67,7 +67,7 @@ if (grep(/^cmd-/, $cgi->param())) {
my $action = $cgi->param('action');
my $series_id = $cgi->param('series_id');
$vars->{'doc_section'} = 'using.html#charts';
$vars->{'doc_section'} = 'using/reports-and-charts.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
......
......@@ -23,7 +23,7 @@ use Bugzilla::Token;
my $user = Bugzilla->login(LOGIN_OPTIONAL);
my $cgi = Bugzilla->cgi;
my $template = Bugzilla->template;
my $vars = { doc_section => 'using.html#create-a-bugzilla-account' };
my $vars = { doc_section => 'using/creating-an-account.html' };
print $cgi->header();
......
......@@ -34,7 +34,7 @@ sub LoadTemplate {
if ($action eq 'select');
# There is currently only one section about classifications,
# so all pages point to it. Let's define it here.
$vars->{'doc_section'} = 'administration.html#classifications';
$vars->{'doc_section'} = 'administering/categorization.html#classifications';
$action =~ /(\w+)/;
$action = $1;
......
......@@ -25,7 +25,7 @@ my $template = Bugzilla->template;
my $vars = {};
# There is only one section about components in the documentation,
# so all actions point to the same page.
$vars->{'doc_section'} = 'administration.html#components';
$vars->{'doc_section'} = 'administering/categorization.html#components';
#
# Preliminary checks:
......
......@@ -25,7 +25,7 @@ my $template = Bugzilla->template;
my $vars = {};
# There is only one section about milestones in the documentation,
# so all actions point to the same page.
$vars->{'doc_section'} = 'administration.html#milestones';
$vars->{'doc_section'} = 'administering/categorization.html#milestones';
#
# Preliminary checks:
......
......@@ -35,7 +35,7 @@ my $template = Bugzilla->template;
my $vars = {};
# Remove this as soon as the documentation about products has been
# improved and each action has its own section.
$vars->{'doc_section'} = 'administration.html#products';
$vars->{'doc_section'} = 'administering/categorization.html#products';
print $cgi->header();
......
......@@ -47,7 +47,7 @@ my $vars = {};
# Replace this entry by separate entries in templates when
# the documentation about legal values becomes bigger.
$vars->{'doc_section'} = 'administration.html#legal-values';
$vars->{'doc_section'} = 'administering/field-values.html';
print $cgi->header();
......
......@@ -25,7 +25,7 @@ my $template = Bugzilla->template;
my $vars = {};
# There is only one section about versions in the documentation,
# so all actions point to the same page.
$vars->{'doc_section'} = 'administration.html#versions';
$vars->{'doc_section'} = 'administering/categorization.html#versions';
#
# Preliminary checks:
......
......@@ -47,7 +47,7 @@ my $template = Bugzilla->template;
my $vars = {};
# All pages point to the same part of the documentation.
$vars->{'doc_section'} = 'using.html#filing-bugs';
$vars->{'doc_section'} = 'using/filing.html';
my $product_name = trim($cgi->param('product') || '');
# Will contain the product object the bug is created in.
......
......@@ -375,7 +375,7 @@ if ($cgi->param('debug')) {
}
# All formats point to the same section of the documentation.
$vars->{'doc_section'} = 'using.html#reports-and-charts';
$vars->{'doc_section'} = 'using/reports-and-charts.html#reports';
disable_utf8() if ($format->{'ctype'} =~ /^image\//);
......
......@@ -26,22 +26,22 @@
[% tabs = [{ name => "settings", label => "General Preferences",
link => "userprefs.cgi?tab=settings", saveable => "1",
doc_section => "using.html#general-preferences" },
doc_section => "using/preferences.html#general-preferences" },
{ name => "email", label => "Email Preferences",
link => "userprefs.cgi?tab=email", saveable => "1",
doc_section => "using.html#email-preferences" },
doc_section => "using/preferences.html#email-preferences" },
{ name => "saved-searches", label => "Saved Searches",
link => "userprefs.cgi?tab=saved-searches", saveable => "1",
doc_section => "using.html#saved-searches" },
doc_section => "using/preferences.html#saved-searches" },
{ name => "account", label => "Account Information",
link => "userprefs.cgi?tab=account", saveable => "1",
doc_section => "using.html#account-information" },
doc_section => "using/preferences.html#account-information" },
{ name => "apikey", label => "API Keys",
link => "userprefs.cgi?tab=apikey", saveable => "1",
doc_section => "using.html#apikey" },
doc_section => "using/preferences.html#api-keys" },
{ name => "permissions", label => "Permissions",
link => "userprefs.cgi?tab=permissions", saveable => "0",
doc_section => "using.html#permissions" } ] %]
doc_section => "using/preferences.html#permissions" } ] %]
[% Hook.process('tabs') %]
......
......@@ -13,7 +13,7 @@
[% PROCESS global/header.html.tmpl title = title
style_urls = ['skins/standard/admin.css']
doc_section = "administration.html"
doc_section = "administering/index.html"
%]
<div>
......
......@@ -20,7 +20,7 @@
[% PROCESS global/header.html.tmpl
title = title
style_urls = ['skins/standard/admin.css']
doc_section = "administration.html#deleting-custom-fields"
doc_section = "administering/custom-fields.html#deleting-custom-fields"
%]
<table id="admin_table">
......
......@@ -18,7 +18,7 @@
title = "Add a new Custom Field"
onload = "document.getElementById('new_bugmail').disabled = true;"
javascript_urls = [ 'js/util.js' ]
doc_section = "administration.html#adding-custom-fields"
doc_section = "administering/custom-fields.html#adding-custom-fields"
style_urls = ['skins/standard/admin.css']
%]
......
......@@ -22,7 +22,7 @@
title = title
onload = "toggleCheckbox(document.getElementById('enter_bug'), 'new_bugmail');"
javascript_urls = [ 'js/util.js' ]
doc_section = "administration.html#editing-custom-fields"
doc_section = "administering/custom-fields.html#editing-custom-fields"
style_urls = ['skins/standard/admin.css']
%]
......
......@@ -15,7 +15,7 @@
[% PROCESS global/header.html.tmpl
title = "Custom Fields"
style_urls = ['skins/standard/admin.css']
doc_section = "administration.html#custom-fields"
doc_section = "administering/custom-fields.html"
%]
[% delete_contentlink = BLOCK %]editfields.cgi?action=del&amp;name=%%name%%[% END %]
......
......@@ -11,7 +11,7 @@
[% PROCESS global/header.html.tmpl
title = title
style_urls = ['skins/standard/admin.css']
doc_section = "administration.html#deleting-a-flag"
doc_section = "administering/flags.html#deleting-a-flag"
%]
<p>
......
......@@ -25,7 +25,7 @@
onload="var f = document.forms['flagtype_properties'];
selectProduct(f.product, f.component, null, null, '__Any__');"
javascript_urls=["js/productform.js"]
doc_section = "administration.html#administering-flags"
doc_section = "administering/flags.html"
%]
<form id="flagtype_properties" method="post" action="editflagtypes.cgi">
......
......@@ -13,7 +13,7 @@
style_urls = ['skins/standard/admin.css']
onload="var f = document.flagtype_form; selectProduct(f.product, f.component, null, null, '__All__');"
javascript_urls=["js/productform.js"]
doc_section = "administration.html#two-types-of-flags"
doc_section = "administering/flags.html"
%]
<p>
......
......@@ -19,7 +19,7 @@
[% PROCESS global/header.html.tmpl
title = title
doc_section = "administration.html#groups-and-group-security"
doc_section = "administering/groups.html"
%]
[% IF regexp %]
......
......@@ -14,7 +14,7 @@
title = "Add group"
subheader = "This page allows you to define a new user group."
style_urls = ['skins/standard/admin.css']
doc_section = "administration.html#creating-groups"
doc_section = "administering/groups.html#creating-groups"
%]
<form method="post" action="editgroups.cgi">
......
......@@ -17,7 +17,7 @@
[% PROCESS global/header.html.tmpl
title = title
style_urls = ['skins/standard/admin.css']
doc_section = "administration.html#groups-and-group-security"
doc_section = "administering/groups.html"
%]
<table id="admin_table">
......
......@@ -19,7 +19,7 @@
[% PROCESS global/header.html.tmpl
title = title
style_urls = ['skins/standard/admin.css']
doc_section = "administration.html#editing-groups-and-assigning-group-permissions"
doc_section = "administering/groups.html#editing-groups-and-assigning-group-permissions"
%]
<form method="post" action="editgroups.cgi">
......
......@@ -20,7 +20,7 @@
title = "Edit Groups"
subheader = "This lets you edit the groups available to put users in."
style_urls = ['skins/standard/admin.css']
doc_section = "administration.html#groups-and-group-security"
doc_section = "administering/groups.html"
%]
[% edit_contentlink = "editgroups.cgi?action=changeform&amp;group=%%id%%" %]
......
......@@ -37,7 +37,7 @@
message = message
style_urls = ['skins/standard/admin.css']
javascript_urls = ['js/params.js', 'js/util.js']
doc_section = "administration.html#bugzilla-configuration"
doc_section = "administering/parameters.html"
%]
<div class="table">
......
......@@ -9,7 +9,7 @@
[% PROCESS global/header.html.tmpl
title = "Begin sudo session"
style_urls = ['skins/standard/admin.css']
doc_section = "administration.html#impersonating-users"
doc_section = "administering/users.html#impersonating-users"
%]
[% DEFAULT target_login = "" %]
......
......@@ -39,7 +39,7 @@
[% PROCESS global/header.html.tmpl
title = title
style_urls = ['skins/standard/admin.css']
doc_section = "administration.html#deleting-users"
doc_section = "administering/users.html#deleting-users"
%]
[% PROCESS admin/users/listselectvars.html.tmpl
......
......@@ -15,7 +15,7 @@
[% PROCESS global/header.html.tmpl
title = "Add user"
style_urls = ['skins/standard/admin.css']
doc_section = "administration.html#creating-new-users"
doc_section = "administering/users.html#creating-new-users"
%]
[% PROCESS admin/users/listselectvars.html.tmpl
......
......@@ -23,7 +23,7 @@
title = title
message = message
style_urls = ['skins/standard/admin.css']
doc_section = "administration.html#modifying-users"
doc_section = "administering/users.html#modifying-users"
javascript_urls = [ 'js/field.js' ]
%]
......
......@@ -17,7 +17,7 @@
[% PROCESS global/header.html.tmpl
title = "Select user"
style_urls = ['skins/standard/admin.css']
doc_section = "administration.html#user-administration"
doc_section = "administering/users.html"
%]
[% PROCESS admin/users/listselectvars.html.tmpl
......
......@@ -18,7 +18,7 @@
[% PROCESS global/header.html.tmpl
title = "Search users"
style_urls = ['skins/standard/admin.css']
doc_section = "administration.html#managing-other-users"
doc_section = "administering/users.html"
%]
[% PROCESS admin/users/listselectvars.html.tmpl
......
......@@ -18,7 +18,7 @@
[% PROCESS global/header.html.tmpl
title = title
style_urls = ['skins/standard/admin.css']
doc_section = "using.html#attachments"
doc_section = "using/editing.html#attachments"
%]
<table id="admin_table">
......
......@@ -19,7 +19,7 @@
style_urls = ['skins/standard/bug.css']
yui = [ 'autocomplete' ]
javascript_urls = [ "js/attachment.js", 'js/field.js', "js/util.js", "js/TUI.js" ]
doc_section = "using.html#attachments"
doc_section = "using/editing.html#attachments"
%]
<script type="text/javascript">
......
......@@ -37,8 +37,7 @@ Interdiff of #[% oldid %] and #[% newid %] for [% terms.bug %] #[% bugid %]
[% subheader = BLOCK %]
[% bugsummary FILTER html %]
[% END %]
[% PROCESS global/header.html.tmpl doc_section = "using.html#patch-viewer"
javascript_urls = [ "js/attachment.js" ]
[% PROCESS global/header.html.tmpl javascript_urls = [ "js/attachment.js" ]
style_urls = ['skins/standard/bug.css'] %]
[% ELSE %]
<!DOCTYPE html>
......
......@@ -21,7 +21,7 @@
title = title
header = header
subheader = subheader
doc_section = "using.html#attachments"
doc_section = "using/editing.html#attachments"
javascript_urls = ['js/attachment.js', 'js/field.js']
style_urls = ['skins/standard/bug.css']
yui = [ 'autocomplete' ]
......
......@@ -14,7 +14,7 @@
javascript_urls = ["js/expanding-tree.js"]
style_urls = ['skins/standard/bug.css']
subheader = filtered_desc
doc_section = "using.html#dependency-tree"
doc_section = "using/understanding.html"
%]
[% PROCESS depthControlToolbar %]
......
......@@ -62,7 +62,7 @@
[% END %]
[% END %]
[% style_urls = ['skins/standard/bug.css'] %]
[% doc_section = "using.html#anatomy-of-a-bug" %]
[% doc_section = "using/understanding.html" %]
[% bodyclasses = ['bz_bug',
"bz_status_$bug.bug_status",
"bz_product_$bug.product",
......
......@@ -10,7 +10,7 @@
title = "Full Text $terms.Bug Listing"
h1 = ""
style_urls = ['skins/standard/buglist.css']
doc_section = "using.html#anatomy-of-a-bug"
doc_section = "using/understanding.html"
%]
[% USE Bugzilla %]
......
......@@ -21,7 +21,7 @@
title = title
header = header
style_urls = ['skins/standard/buglist.css']
doc_section = "using.html#time-tracking-information"
doc_section = "using/editing.html#time-tracking"
yui = ['calendar']
javascript_urls = [ "js/util.js", "js/field.js" ]
%]
......
......@@ -63,7 +63,7 @@
yui = [ 'autocomplete', 'calendar' ]
javascript_urls = [ "js/util.js", "js/field.js", "js/TUI.js" ]
style_urls = [ "skins/standard/buglist.css" ]
doc_section = "using.html#bug-lists"
doc_section = "using/finding.html"
%]
<div class="bz_query_head">
......
......@@ -13,7 +13,7 @@
[% PROCESS global/header.html.tmpl
title = "Reporting and Charting Kitchen"
doc_section = "using.html#reports-and-charts"
doc_section = "using/reports-and-charts.html"
style_urls = ['skins/standard/buglist.css']
%]
......
......@@ -15,7 +15,7 @@
title = "$terms.Bug Charts"
h1 = "Welcome to the $terms.Bugzilla Charting Kitchen"
style_urls = ['skins/standard/buglist.css']
doc_section = "using.html#charts"
doc_section = "using/reports-and-charts.html#charts"
%]
[% IF url_image %]
......
......@@ -30,7 +30,7 @@ function remove_token() {
javascript = javascript
javascript_urls = [ "js/util.js", "js/TUI.js", "js/field.js"]
style_urls = ['skins/standard/buglist.css']
doc_section = "using.html#searching-for-bugs"
doc_section = "using/finding.html"
%]
[% WRAPPER search/tabs.html.tmpl %]
......
......@@ -23,7 +23,7 @@
javascript = js_data
javascript_urls = [ "js/util.js", "js/TUI.js", "js/field.js" ]
style_urls = ['skins/standard/buglist.css']
doc_section = "using.html#creating-new-data-sets"
doc_section = "using/reports-and-charts.html#creating-charts"
%]
<form method="get" action="chart.cgi" name="chartform">
......
......@@ -22,7 +22,7 @@ var queryform = "reportform"
javascript = js_data
javascript_urls = [ "js/util.js", "js/TUI.js", "js/field.js" ]
style_urls = ['skins/standard/buglist.css']
doc_section = "using.html#reports"
doc_section = "using/reports-and-charts.html#reports"
%]
[% PROCESS "search/search-report-select.html.tmpl" %]
......
......@@ -22,7 +22,7 @@ var queryform = "reportform"
javascript = js_data
javascript_urls = [ "js/util.js", "js/TUI.js", "js/field.js" ]
style_urls = ['skins/standard/buglist.css']
doc_section = "using.html#reports"
doc_section = "using/reports-and-charts.html#reports"
%]
[% PROCESS "search/search-report-select.html.tmpl" %]
......
......@@ -9,6 +9,7 @@
[% PROCESS global/header.html.tmpl
title = "Simple Search"
style_urls = ['skins/standard/buglist.css']
doc_section = "using/finding.html"
%]
[% WRAPPER search/tabs.html.tmpl %]
......
......@@ -23,7 +23,7 @@
[% PROCESS global/header.html.tmpl
title = title
style_urls = ['skins/standard/admin.css']
doc_section = "using.html#whining"
doc_section = "using/index.html"
%]
<p>
......
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