Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Cronlog-viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IML Open Source
Cronlog-viewer
Commits
9b881c6e
Commit
9b881c6e
authored
2 years ago
by
Hahn Axel (hahn)
Browse files
Options
Downloads
Patches
Plain Diff
fast access to errors
parent
151dae1d
No related branches found
Branches containing commit
No related tags found
1 merge request
!9
fast access to errors
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
classes/cronlog-renderer.class.php
+19
-3
19 additions, 3 deletions
classes/cronlog-renderer.class.php
index.php
+1
-1
1 addition, 1 deletion
index.php
with
20 additions
and
4 deletions
classes/cronlog-renderer.class.php
+
19
−
3
View file @
9b881c6e
...
...
@@ -57,6 +57,22 @@ class cronlogrenderer extends cronlog{
;
}
/**
* get onclick value to filter a datatable
* @param string $sDatatable id of table
* @param string $sFiltertext text to filter
* @return string
*
*/
protected
function
_filterDatatable
(
$sDatatable
,
$sFiltertext
){
/*
<a href="#" title="Filtere nach VHost «crawler.ascii.iml.unibe.ch:443»"
onclick="$('#tableRenderedallrequestsphp1_filter>INPUT').val('crawler.ascii.iml.unibe.ch:443');
$('#tableRenderedallrequestsphp1').dataTable().fnFilter('crawler.ascii.iml.unibe.ch:443'); return false;">crawler.ascii.iml.unibe.ch:443</a>
*/
return
'$(\'#'
.
$sDatatable
.
'\').dataTable().fnFilter(\''
.
$sFiltertext
.
'\'); return false;'
;
}
/**
* get html code for a table with events of executed cronjobs
*
...
...
@@ -198,9 +214,9 @@ class cronlogrenderer extends cronlog{
.
'</p>'
.
'<div>'
.
$this
->
_renderAccessAndAge
(
$iLast
)
.
(
$iErrors
?
'<
span
class="btn bg-danger">'
.
$iErrors
.
'</
span
> '
:
''
)
.
(
$iOK
?
'<
span
class="btn bg-success">'
.
$iOK
.
'</
span
>'
:
''
)
.
(
$iErrors
&&
$iOK
?
' ... gesamt: <
span
class="btn bg-gray">'
.
count
(
$aData
)
.
'</
span
>'
:
''
)
.
(
$iErrors
?
'<
a href="#"
class="btn bg-danger"
onclick="'
.
$this
->
_filterDatatable
(
$sIdTable
,
"FEHLER"
)
.
'"
>'
.
$iErrors
.
'</
a
> '
:
''
)
.
(
$iOK
?
'<
a href="#"
class="btn bg-success"
onclick="'
.
$this
->
_filterDatatable
(
$sIdTable
,
"OK"
)
.
'"
>'
.
$iOK
.
'</
a
>'
:
''
)
.
(
$iErrors
&&
$iOK
?
' ... gesamt: <
a href="#"
class="btn bg-gray"
onclick="'
.
$this
->
_filterDatatable
(
$sIdTable
,
""
)
.
'"
>'
.
count
(
$aData
)
.
'</
a
>'
:
''
)
.
'<br>'
.
'</div>'
.
'<table id="'
.
$sIdTable
.
'" class="table-striped">'
...
...
This diff is collapsed.
Click to expand it.
index.php
+
1
−
1
View file @
9b881c6e
<?php
define
(
"APP_VERSION"
,
'2.0.
2
'
);
define
(
"APP_VERSION"
,
'2.0.
3
'
);
require_once
(
'classes/render-adminlte.class.php'
);
$renderAdminLTE
=
new
renderadminlte
();
...
...
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