Commit 63b76161 authored by mkanat%bugzilla.org's avatar mkanat%bugzilla.org

Bug 527387: Make Parameter section sortkeys numeric and leave space between the numbers

Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit
parent 72cb2bc7
...@@ -35,7 +35,7 @@ use strict; ...@@ -35,7 +35,7 @@ use strict;
use Bugzilla::Config::Common; use Bugzilla::Config::Common;
$Bugzilla::Config::Admin::sortkey = "01"; our $sortkey = 200;
sub get_param_list { sub get_param_list {
my $class = shift; my $class = shift;
......
...@@ -35,7 +35,7 @@ use strict; ...@@ -35,7 +35,7 @@ use strict;
use Bugzilla::Config::Common; use Bugzilla::Config::Common;
$Bugzilla::Config::Attachment::sortkey = "025"; our $sortkey = 400;
sub get_param_list { sub get_param_list {
my $class = shift; my $class = shift;
......
...@@ -35,7 +35,7 @@ use strict; ...@@ -35,7 +35,7 @@ use strict;
use Bugzilla::Config::Common; use Bugzilla::Config::Common;
$Bugzilla::Config::Auth::sortkey = "02"; our $sortkey = 300;
sub get_param_list { sub get_param_list {
my $class = shift; my $class = shift;
......
...@@ -36,7 +36,7 @@ use strict; ...@@ -36,7 +36,7 @@ use strict;
use Bugzilla::Config::Common; use Bugzilla::Config::Common;
use Bugzilla::Status; use Bugzilla::Status;
$Bugzilla::Config::BugChange::sortkey = "03"; our $sortkey = 500;
sub get_param_list { sub get_param_list {
my $class = shift; my $class = shift;
......
...@@ -36,7 +36,7 @@ use strict; ...@@ -36,7 +36,7 @@ use strict;
use Bugzilla::Config::Common; use Bugzilla::Config::Common;
use Bugzilla::Field; use Bugzilla::Field;
$Bugzilla::Config::BugFields::sortkey = "04"; our $sortkey = 600;
sub get_param_list { sub get_param_list {
my $class = shift; my $class = shift;
......
...@@ -35,7 +35,7 @@ use strict; ...@@ -35,7 +35,7 @@ use strict;
use Bugzilla::Config::Common; use Bugzilla::Config::Common;
$Bugzilla::Config::BugMove::sortkey = "05"; our $sortkey = 700;
sub get_param_list { sub get_param_list {
my $class = shift; my $class = shift;
......
...@@ -35,7 +35,7 @@ use strict; ...@@ -35,7 +35,7 @@ use strict;
use Bugzilla::Config::Common; use Bugzilla::Config::Common;
$Bugzilla::Config::Core::sortkey = "00"; our $sortkey = 100;
sub get_param_list { sub get_param_list {
my $class = shift; my $class = shift;
......
...@@ -35,7 +35,7 @@ use strict; ...@@ -35,7 +35,7 @@ use strict;
use Bugzilla::Config::Common; use Bugzilla::Config::Common;
$Bugzilla::Config::DependencyGraph::sortkey = "06"; our $sortkey = 800;
sub get_param_list { sub get_param_list {
my $class = shift; my $class = shift;
......
...@@ -36,7 +36,7 @@ use strict; ...@@ -36,7 +36,7 @@ use strict;
use Bugzilla::Config::Common; use Bugzilla::Config::Common;
use Bugzilla::Group; use Bugzilla::Group;
$Bugzilla::Config::GroupSecurity::sortkey = "07"; our $sortkey = 900;
sub get_param_list { sub get_param_list {
my $class = shift; my $class = shift;
......
...@@ -35,7 +35,7 @@ use strict; ...@@ -35,7 +35,7 @@ use strict;
use Bugzilla::Config::Common; use Bugzilla::Config::Common;
$Bugzilla::Config::LDAP::sortkey = "09"; our $sortkey = 1000;
sub get_param_list { sub get_param_list {
my $class = shift; my $class = shift;
......
...@@ -36,7 +36,7 @@ use strict; ...@@ -36,7 +36,7 @@ use strict;
use Bugzilla::Config::Common; use Bugzilla::Config::Common;
use Email::Send; use Email::Send;
$Bugzilla::Config::MTA::sortkey = "10"; our $sortkey = 1200;
sub get_param_list { sub get_param_list {
my $class = shift; my $class = shift;
......
...@@ -35,7 +35,7 @@ use strict; ...@@ -35,7 +35,7 @@ use strict;
use Bugzilla::Config::Common; use Bugzilla::Config::Common;
$Bugzilla::Config::PatchViewer::sortkey = "11"; our $sortkey = 1300;
sub get_param_list { sub get_param_list {
my $class = shift; my $class = shift;
......
...@@ -35,7 +35,7 @@ use strict; ...@@ -35,7 +35,7 @@ use strict;
use Bugzilla::Config::Common; use Bugzilla::Config::Common;
$Bugzilla::Config::Query::sortkey = "12"; our $sortkey = 1400;
sub get_param_list { sub get_param_list {
my $class = shift; my $class = shift;
......
...@@ -25,7 +25,7 @@ use strict; ...@@ -25,7 +25,7 @@ use strict;
use Bugzilla::Config::Common; use Bugzilla::Config::Common;
$Bugzilla::Config::RADIUS::sortkey = "09"; our $sortkey = 1100;
sub get_param_list { sub get_param_list {
my $class = shift; my $class = shift;
......
...@@ -35,7 +35,7 @@ use strict; ...@@ -35,7 +35,7 @@ use strict;
use Bugzilla::Config::Common; use Bugzilla::Config::Common;
$Bugzilla::Config::ShadowDB::sortkey = "13"; our $sortkey = 1500;
sub get_param_list { sub get_param_list {
my $class = shift; my $class = shift;
......
...@@ -35,7 +35,7 @@ use strict; ...@@ -35,7 +35,7 @@ use strict;
use Bugzilla::Config::Common; use Bugzilla::Config::Common;
$Bugzilla::Config::UserMatch::sortkey = "14"; our $sortkey = 1600;
sub get_param_list { sub get_param_list {
my $class = shift; my $class = shift;
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
[% PROCESS global/variables.none.tmpl %] [% PROCESS global/variables.none.tmpl %]
[% curpanel = -1 %] [% curpanel = -1 %]
[% panels = panels.sort('sortkey') %] [% panels = panels.nsort('sortkey') %]
[% FOREACH panel = panels %] [% FOREACH panel = panels %]
[% PROCESS "admin/params/${panel.name}.html.tmpl" [% PROCESS "admin/params/${panel.name}.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