Bug 969881: All "Help" links in the header and footer of pages point to inexistent files

r=gerv a=justdave
trunk
Frédéric Buclin 2014-02-12 15:11:36 +01:00
parent 1305816b84
commit dfede3c3a4
47 changed files with 61 additions and 58 deletions

View File

@ -65,7 +65,7 @@ if (grep(/^cmd-/, $cgi->param())) {
my $action = $cgi->param('action');
my $series_id = $cgi->param('series_id');
$vars->{'doc_section'} = 'reporting.html#charts';
$vars->{'doc_section'} = 'using.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

View File

@ -21,7 +21,7 @@ use Bugzilla::Token;
my $user = Bugzilla->login(LOGIN_OPTIONAL);
my $cgi = Bugzilla->cgi;
my $template = Bugzilla->template;
my $vars = { doc_section => 'myaccount.html' };
my $vars = { doc_section => 'using.html#create-a-bugzilla-account' };
print $cgi->header();

View File

@ -993,8 +993,8 @@ the Search show up in the footer of the group's direct members by default.
.. _accountpreferences:
Name and Password
=================
Account Information
===================
On this tab, you can change your basic account information,
including your password, email address and real name. For security

View File

@ -32,7 +32,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'} = 'classifications.html';
$vars->{'doc_section'} = 'administration.html#classifications';
$action =~ /(\w+)/;
$action = $1;

View File

@ -23,7 +23,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'} = 'components.html';
$vars->{'doc_section'} = 'administration.html#components';
#
# Preliminary checks:

View File

@ -23,7 +23,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'} = 'milestones.html';
$vars->{'doc_section'} = 'administration.html#milestones';
#
# Preliminary checks:

View File

@ -33,7 +33,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'} = 'products.html';
$vars->{'doc_section'} = 'administration.html#products';
print $cgi->header();

View File

@ -49,7 +49,7 @@ my $vars = {};
# Replace this entry by separate entries in templates when
# the documentation about legal values becomes bigger.
$vars->{'doc_section'} = 'edit-values.html';
$vars->{'doc_section'} = 'administration.html#legal-values';
print $cgi->header();

View File

@ -23,7 +23,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'} = 'versions.html';
$vars->{'doc_section'} = 'administration.html#versions';
#
# Preliminary checks:

View File

@ -45,7 +45,7 @@ my $template = Bugzilla->template;
my $vars = {};
# All pages point to the same part of the documentation.
$vars->{'doc_section'} = 'bugreports.html';
$vars->{'doc_section'} = 'using.html#filing-bugs';
my $product_name = trim($cgi->param('product') || '');
# Will contain the product object the bug is created in.

View File

@ -373,7 +373,7 @@ if ($cgi->param('debug')) {
}
# All formats point to the same section of the documentation.
$vars->{'doc_section'} = 'reporting.html#reports';
$vars->{'doc_section'} = 'using.html#reports-and-charts';
disable_utf8() if ($format->{'ctype'} =~ /^image\//);

View File

@ -25,15 +25,20 @@
[% filtered_login = user.login FILTER html %]
[% tabs = [{ name => "settings", label => "General Preferences",
link => "userprefs.cgi?tab=settings", saveable => "1" },
{ name => "email", label => "Email Preferences",
link => "userprefs.cgi?tab=email", saveable => "1" },
{ name => "saved-searches", label => "Saved Searches",
link => "userprefs.cgi?tab=saved-searches", saveable => "1" },
link => "userprefs.cgi?tab=settings", saveable => "1",
doc_section => "using.html#general-preferences" },
{ name => "email", label => "Email Preferences",
link => "userprefs.cgi?tab=email", saveable => "1",
doc_section => "using.html#email-preferences" },
{ name => "saved-searches", label => "Saved Searches",
link => "userprefs.cgi?tab=saved-searches", saveable => "1",
doc_section => "using.html#saved-searches" },
{ name => "account", label => "Account Information",
link => "userprefs.cgi?tab=account", saveable => "1" },
{ name => "permissions", label => "Permissions",
link => "userprefs.cgi?tab=permissions", saveable => "0" } ] %]
link => "userprefs.cgi?tab=account", saveable => "1",
doc_section => "using.html#account-information" },
{ name => "permissions", label => "Permissions",
link => "userprefs.cgi?tab=permissions", saveable => "0",
doc_section => "using.html#permissions" } ] %]
[% Hook.process('tabs') %]
@ -49,7 +54,7 @@
subheader = filtered_login
style_urls = ['skins/standard/admin.css']
javascript_urls = ['js/util.js', 'js/field.js']
doc_section = "userpreferences.html"
doc_section = current_tab.doc_section
yui = ['autocomplete']
%]

View File

@ -20,7 +20,7 @@
[% PROCESS global/header.html.tmpl
title = title
style_urls = ['skins/standard/admin.css']
doc_section = "custom-fields.html#delete-custom-fields"
doc_section = "administration.html#deleting-custom-fields"
%]
<table id="admin_table">

View File

@ -18,7 +18,7 @@
title = "Add a new Custom Field"
onload = "document.getElementById('new_bugmail').disabled = true;"
javascript_urls = [ 'js/util.js' ]
doc_section = "custom-fields.html#add-custom-fields"
doc_section = "administration.html#adding-custom-fields"
style_urls = ['skins/standard/admin.css']
%]

View File

@ -22,7 +22,7 @@
title = title
onload = "toggleCheckbox(document.getElementById('enter_bug'), 'new_bugmail');"
javascript_urls = [ 'js/util.js' ]
doc_section = "custom-fields.html#edit-custom-fields"
doc_section = "administration.html#editing-custom-fields"
style_urls = ['skins/standard/admin.css']
%]

View File

@ -15,7 +15,7 @@
[% PROCESS global/header.html.tmpl
title = "Custom Fields"
style_urls = ['skins/standard/admin.css']
doc_section = "custom-fields.html"
doc_section = "administration.html#custom-fields"
%]
[% delete_contentlink = BLOCK %]editfields.cgi?action=del&amp;name=%%name%%[% END %]

View File

@ -11,7 +11,7 @@
[% PROCESS global/header.html.tmpl
title = title
style_urls = ['skins/standard/admin.css']
doc_section = "flags-overview.html#flags-delete"
doc_section = "administration.html#deleting-a-flag"
%]
<p>

View File

@ -15,10 +15,8 @@
Based on [% type.name FILTER html %]
[% END %]
[% END %]
[% doc_section = "flags-overview.html#flags-create" %]
[% ELSE %]
[% title = BLOCK %]Edit Flag Type [% type.name FILTER html %][% END %]
[% doc_section = "flags-overview.html#flags-edit" %]
[% END %]
[% PROCESS global/header.html.tmpl
@ -27,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 = doc_section
doc_section = "administration.html#administering-flags"
%]
<form id="flagtype_properties" method="post" action="editflagtypes.cgi">

View File

@ -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 = "flags-overview.html#flag-types"
doc_section = "administration.html#two-types-of-flags"
%]
<p>

View File

@ -19,7 +19,7 @@
[% PROCESS global/header.html.tmpl
title = title
doc_section = "groups.html"
doc_section = "administration.html#groups-and-group-security"
%]
[% IF regexp %]

View File

@ -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 = "groups.html#create-groups"
doc_section = "administration.html#creating-groups"
%]
<form method="post" action="editgroups.cgi">

View File

@ -17,7 +17,7 @@
[% PROCESS global/header.html.tmpl
title = title
style_urls = ['skins/standard/admin.css']
doc_section = "groups.html"
doc_section = "administration.html#groups-and-group-security"
%]
<table id="admin_table">

View File

@ -19,7 +19,7 @@
[% PROCESS global/header.html.tmpl
title = title
style_urls = ['skins/standard/admin.css']
doc_section = "groups.html#edit-groups"
doc_section = "administration.html#editing-groups-and-assigning-group-permissions"
%]
<form method="post" action="editgroups.cgi">

View File

@ -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 = "groups.html"
doc_section = "administration.html#groups-and-group-security"
%]
[% edit_contentlink = "editgroups.cgi?action=changeform&amp;group=%%id%%" %]

View File

@ -37,7 +37,7 @@
message = message
style_urls = ['skins/standard/params.css']
javascript_urls = ['js/params.js', 'js/util.js']
doc_section = "parameters.html"
doc_section = "administration.html#bugzilla-configuration"
%]
<div class="table">

View File

@ -9,7 +9,7 @@
[% PROCESS global/header.html.tmpl
title = "Begin sudo session"
style_urls = ['skins/standard/admin.css']
doc_section = "useradmin.html#impersonatingusers"
doc_section = "administration.html#impersonating-users"
%]
[% DEFAULT target_login = "" %]

View File

@ -40,7 +40,7 @@
title = title
style_urls = ['skins/standard/admin.css',
'skins/standard/editusers.css']
doc_section = "useradmin.html#user-account-deletion"
doc_section = "administration.html#deleting-users"
%]
[% PROCESS admin/users/listselectvars.html.tmpl

View File

@ -15,7 +15,7 @@
[% PROCESS global/header.html.tmpl
title = "Add user"
style_urls = ['skins/standard/editusers.css']
doc_section = "useradmin.html#createnewusers"
doc_section = "administration.html#creating-new-users"
%]
[% PROCESS admin/users/listselectvars.html.tmpl

View File

@ -23,7 +23,7 @@
title = title
message = message
style_urls = ['skins/standard/admin.css', 'skins/standard/editusers.css']
doc_section = "useradmin.html#modifyusers"
doc_section = "administration.html#modifying-users"
javascript_urls = [ 'js/field.js' ]
%]

View File

@ -17,7 +17,7 @@
[% PROCESS global/header.html.tmpl
title = "Select user"
style_urls = ['skins/standard/admin.css', 'skins/standard/editusers.css']
doc_section = "useradmin.html"
doc_section = "administration.html#user-administration"
%]
[% PROCESS admin/users/listselectvars.html.tmpl

View File

@ -18,7 +18,7 @@
[% PROCESS global/header.html.tmpl
title = "Search users"
style_urls = ['skins/standard/editusers.css']
doc_section = "useradmin.html#user-account-search"
doc_section = "administration.html#managing-other-users"
%]
[% PROCESS admin/users/listselectvars.html.tmpl

View File

@ -18,7 +18,7 @@
[% PROCESS global/header.html.tmpl
title = title
style_urls = ['skins/standard/admin.css']
doc_section = "attachments.html"
doc_section = "using.html#attachments"
%]
<table id="admin_table">

View File

@ -19,7 +19,7 @@
style_urls = [ 'skins/standard/attachment.css' ]
yui = [ 'autocomplete' ]
javascript_urls = [ "js/attachment.js", 'js/field.js', "js/util.js", "js/TUI.js" ]
doc_section = "attachments.html"
doc_section = "using.html#attachments"
%]
<script type="text/javascript">

View File

@ -37,7 +37,7 @@ Interdiff of #[% oldid %] and #[% newid %] for [% terms.bug %] #[% bugid %]
[% subheader = BLOCK %]
[% bugsummary FILTER html %]
[% END %]
[% PROCESS global/header.html.tmpl doc_section = "attachments.html#patchviewer"
[% PROCESS global/header.html.tmpl doc_section = "using.html#patch-viewer"
javascript_urls = "js/attachment.js"
style_urls = ['skins/standard/attachment.css'] %]
[% ELSE %]

View File

@ -20,7 +20,7 @@
title = title
header = header
subheader = subheader
doc_section = "attachments.html"
doc_section = "using.html#attachments"
javascript_urls = ['js/attachment.js', 'js/field.js']
style_urls = ['skins/standard/attachment.css']
yui = [ 'autocomplete' ]

View File

@ -14,7 +14,7 @@
javascript_urls = ["js/expanding-tree.js"]
style_urls = ["skins/standard/dependency-tree.css"]
subheader = filtered_desc
doc_section = "hintsandtips.html#dependencytree"
doc_section = "using.html#dependency-tree"
%]
[% PROCESS depthControlToolbar %]

View File

@ -57,7 +57,7 @@
[% END %]
[% END %]
[% style_urls = [ "skins/standard/show_bug.css" ] %]
[% doc_section = "bug_page.html" %]
[% doc_section = "using.html#anatomy-of-a-bug" %]
[% bodyclasses = ['bz_bug',
"bz_status_$bug.bug_status",
"bz_product_$bug.product",

View File

@ -11,7 +11,7 @@
h1 = ""
style_urls = ["skins/standard/show_multiple.css",
"skins/standard/buglist.css"]
doc_section = "bug_page.html"
doc_section = "using.html#anatomy-of-a-bug"
%]
[% PROCESS bug/time.html.tmpl %]
[% IF bugs.first %]

View File

@ -21,7 +21,7 @@
title = title
header = header
style_urls = ["skins/standard/summarize-time.css"]
doc_section = "timetracking.html"
doc_section = "using.html#time-tracking-information"
yui = ['calendar']
javascript_urls = [ "js/util.js", "js/field.js" ]
%]

View File

@ -61,7 +61,7 @@
yui = [ 'autocomplete', 'calendar' ]
javascript_urls = [ "js/util.js", "js/field.js", "js/TUI.js" ]
style_urls = [ "skins/standard/buglist.css" ]
doc_section = "query.html#list"
doc_section = "using.html#bug-lists"
%]
<div class="bz_query_head">

View File

@ -13,7 +13,7 @@
[% PROCESS global/header.html.tmpl
title = "Reporting and Charting Kitchen"
doc_section = "reporting.html"
doc_section = "using.html#reports-and-charts"
style_urls = ['skins/standard/reports.css']
%]

View File

@ -16,7 +16,7 @@
title = "$terms.Bug Charts"
h1 = "Welcome to the $terms.Bugzilla Charting Kitchen"
style_urls = ['skins/standard/reports.css']
doc_section = "reporting.html#charts"
doc_section = "using.html#charts"
%]
[% IF url_image %]

View File

@ -30,7 +30,7 @@ function remove_token() {
javascript = javascript
javascript_urls = [ "js/util.js", "js/TUI.js", "js/field.js"]
style_urls = [ "skins/standard/search_form.css" ]
doc_section = "query.html"
doc_section = "using.html#searching-for-bugs"
%]
[% WRAPPER search/tabs.html.tmpl %]

View File

@ -23,7 +23,7 @@
javascript = js_data
javascript_urls = [ "js/util.js", "js/TUI.js", "js/field.js" ]
style_urls = [ "skins/standard/reports.css", "skins/standard/search_form.css" ]
doc_section = "reporting.html#charts-new-series"
doc_section = "using.html#creating-new-data-sets"
%]
<form method="get" action="chart.cgi" name="chartform">

View File

@ -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/search_form.css" ]
doc_section = "reporting.html#reports"
doc_section = "using.html#reports"
%]
[% PROCESS "search/search-report-select.html.tmpl" %]

View File

@ -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/search_form.css" ]
doc_section = "reporting.html#reports"
doc_section = "using.html#reports"
%]
[% PROCESS "search/search-report-select.html.tmpl" %]

View File

@ -23,7 +23,7 @@
[% PROCESS global/header.html.tmpl
title = title
style_urls = ['skins/standard/admin.css']
doc_section = "whining.html"
doc_section = "using.html#whining"
%]
<p>