-
Notifications
You must be signed in to change notification settings - Fork 13
/
include-stack.php
41 lines (32 loc) · 1.51 KB
/
include-stack.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<ul class="nav nav-pills stack nav-stacked" style="margin-bottom: 0" data-bind="foreach: children">
<!-- ko if: type == 'HM_Time_Stack_Operation' -->
<li data-bind="css: { active: RequestsController.selectedOperation() == $data }">
<a href="#" data-bind="click: function() { RequestsController.selectedOperation( $data ); ! $data.open() && $data.children().length > 0 ? $data.open(true) : $data.open(false); }">
<span style="width: 100px; color: #999" class="">+ <i data-bind="text: time"></i>ms</span>
<strong style="display: inline-block; overflow: hidden; text-overflow: ellipsis; width: 78%; white-space: nowrap;" data-bind="text: label"></strong>
<!-- ko if: children().length > 0 -->
<strong>↵</strong>
<!-- /ko -->
<span class="right-text">
<span data-bind="text: duration"></span>ms
</span>
</a>
<?php
global $include_time;
$include_time++;
if ( $include_time < 5 ) : ?>
<!-- ko if: open -->
<div class="" style="background: rgba( 0,0,0,0.03 ); margin-top: -3px; box-shadow: inset 0 0 5px 0px rgba(0, 0, 0, .2)">
<?php include( __FILE__ ); ?>
</div>
<?php endif; ?>
<!-- /ko -->
</li>
<!-- /ko -->
<!-- ko if: type == 'HM_Time_Stack_Event' -->
<li class="event">
<span style="width: 100px; color: #999; " class="">+ <i data-bind="text: time"></i>ms</span>
→ <span style="display: inline-block; overflow: hidden; text-overflow: ellipsis; width: 78%; white-space: nowrap;" data-bind="text: label"></span>
</li>
<!-- /ko -->
</ul>