Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
sg_jobs
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TYPO3
sg_jobs
Commits
962f3733
Commit
962f3733
authored
7 years ago
by
Torsten Oppermann
Browse files
Options
Downloads
Patches
Plain Diff
[TASk] Started work on page browser
parent
939ad882
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Classes/Controller/JoblistController.php
+5
-3
5 additions, 3 deletions
Classes/Controller/JoblistController.php
with
5 additions
and
3 deletions
Classes/Controller/JoblistController.php
+
5
−
3
View file @
962f3733
...
...
@@ -76,9 +76,12 @@ class JoblistController extends ActionController {
$offset
=
$currentPageBrowserPage
*
$jobLimit
;
}
// get all jobs
// get all jobs
for the current page
$jobs
=
$this
->
jobRepository
->
findJobs
(
$storagePid
,
[],
FALSE
,
$jobLimit
,
$offset
);
$numberOfPages
=
(
$jobLimit
<=
0
?
0
:
ceil
(
\count
(
$jobs
)
/
$jobLimit
));
// get all jobs for the current page
$jobsCount
=
\count
(
$this
->
jobRepository
->
findJobs
(
$storagePid
,
[],
FALSE
,
0
,
$offset
));
$numberOfPages
=
(
$jobLimit
<=
0
?
0
:
ceil
(
$jobsCount
/
$jobLimit
));
$this
->
view
->
assign
(
'jobs'
,
$jobs
);
$this
->
view
->
assign
(
'numberOfPages'
,
$numberOfPages
);
...
...
@@ -132,7 +135,6 @@ class JoblistController extends ActionController {
ConfigurationManagerInterface
::
CONFIGURATION_TYPE_FRAMEWORK
)[
'settings'
][
'redirectPage'
];
$uriBuilder
=
$this
->
uriBuilder
;
$uri
=
$uriBuilder
->
reset
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment