-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e08fcb7
commit 081a801
Showing
6 changed files
with
153 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,84 @@ | ||
{block title}Debug{/block} | ||
|
||
{block content} | ||
{block content} | ||
|
||
<div class="container text-center " style="margin-top:80px"> | ||
<h1>Debug - <small>{$time}</small></h1> | ||
</div> | ||
<div class="container"> | ||
<h2>All events</h2> | ||
{foreach $allEvents as $event} | ||
{if $iterator->first} | ||
<table class="table table-striped"> | ||
<thead> | ||
<tr> | ||
<th>ID</th> | ||
<th>State</th> | ||
<th>Time</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{/if} | ||
<tr id="row-{$iterator->counter}"> | ||
<td>{$event->id}</td> | ||
{if $event->state == "FINISHED"} | ||
<td class="text-success"> | ||
{$event->state} | ||
</td> | ||
{elseif $event->state == "STOP"} | ||
<td class="text-danger"> | ||
{$event->state} | ||
</td> | ||
{elseif $event->state == "REWORK"} | ||
<td class="text-info"> | ||
{$event->state} | ||
</td> | ||
{else} | ||
<td class=""> | ||
{$event->state} | ||
</td> | ||
{/if} | ||
|
||
|
||
|
||
<td>{$event->time}</td> | ||
</tr> | ||
{if $iterator->last} | ||
</tbody> | ||
</table> | ||
{/if} | ||
{/foreach} | ||
<h2>Counts</h2> | ||
<div class="move-right"> | ||
<h4>All events count: {$allEventsCount}</h4> | ||
<h4>All events state count (FINSHED): {$allEventsCountF}</h4> | ||
<h4>All events state count (STOP): {$allEventsCountS}</h4> | ||
<h4>All events state count (REWORK): {$allEventsCountR}</h4> | ||
</div> | ||
|
||
<h2>Times</h2> | ||
<div class="move-right"> | ||
<h4>All time: {$allTime[0]|date:'%s'}s -> {$allTime[1]|date:'i:s'} Minute:Second</h4> | ||
<h4>Stop time: {$stopTime[0]|date:'%s'}s -> {$stopTime[1]|date:'i:s'} Minute:Second</h4> | ||
<h4>Work time: {$workTime[0]|date:'%s'}s -> {$workTime[1]|date:'i:s'} Minute:Second</h4> | ||
</div> | ||
|
||
<h2>Aprox</h2> | ||
<div class="move-right"> | ||
<h4>Stop aprox time: {$stopAproxTime[0]|date:'%s'}s -> {$stopAproxTime[1]|date:'i:s'} Minute:Second</h4> | ||
<h4>Work aprox time: {$workAproxTime[0]|date:'%s'}s -> {$workAproxTime[1]|date:'i:s'} Minute:Second</h4> | ||
</div> | ||
{* {dump $allEvents} *} | ||
{* <h4>First event state (1): {$firstEvent}</h4> | ||
<h4>Last event state (1): {$lastEvent}</h4> *} | ||
<h4></h4> | ||
<h4></h4> | ||
</div> | ||
|
||
<style> | ||
.move-right | ||
{ | ||
padding-left: 2em; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,6 +53,3 @@ | |
<h3></h3> | ||
</div> | ||
|
||
<script> | ||
{* javascript:location.reload(true) *} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,4 +54,5 @@ div.my-circle { | |
|
||
.my-form{ | ||
padding: 2px; | ||
} | ||
} | ||
|