moving <<prev & next>> links into template, to enable translation.
This commit is contained in:
parent
a76b07ba01
commit
b684955c2f
|
|
@ -78,7 +78,6 @@ if ($op) {
|
|||
else => 1); # we show only the TMPL_VAR names $op
|
||||
}
|
||||
$template->param(action => $script_name);
|
||||
|
||||
if ($op eq 'add') {
|
||||
# If the user has pressed the "add new branch" button.
|
||||
heading("Branches: Add Branch");
|
||||
|
|
|
|||
|
|
@ -257,10 +257,10 @@ if ($op eq 'add_form') {
|
|||
branch => $branch,
|
||||
father => $father);
|
||||
if ($offset>0) {
|
||||
$template->param(previous => "<a href=$script_name?branch=$branch&search_category=$search_category&searchstring=$searchstring&offset=$prevpage><< Prev</a>");
|
||||
$template->param(previous => "$script_name?branch=$branch&search_category=$search_category&searchstring=$searchstring&offset=$prevpage");
|
||||
}
|
||||
if ($pagesize<$count) {
|
||||
$template->param(next => "<a href=$script_name?branch=$branch&search_category=$search_category&searchstring=$searchstring&offset=$nextpage>Next >></a>");
|
||||
$template->param(next => "$script_name?branch=$branch&search_category=$search_category&searchstring=$searchstring&offset=$nextpage");
|
||||
}
|
||||
} #---- END $OP eq DEFAULT
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue