8000 minor #30130 [WebProfilerBundle] Add ajax request number (Antoine Lam… · symfony/symfony@33145da · GitHub
[go: up one dir, main page]

Skip to content

Commit 33145da

Browse files
committed
minor #30130 [WebProfilerBundle] Add ajax request number (Antoine Lamirault)
This PR was merged into the 4.3-dev branch. Discussion ---------- [WebProfilerBundle] Add ajax request number | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #30121 | License | MIT Add request number foreach ajax call in profiler. ![screenshot_2019-02-10_18-54-02](https://user-images.githubusercontent.com/9253091/52537598-c830c980-2d68-11e9-815e-90345b6bbd88.png) Commits ------- 70a38cf [WebProfilerBundle] Add ajax request number
2 parents 5ed68ee + 70a38cf commit 33145da

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/ajax.html.twig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
<table class="sf-toolbar-ajax-requests">
1515
<thead>
1616
<tr>
17+
<th>#</th>
1718
<th>Profile</th>
1819
<th>Method</th>
1920
<th>Type</th>

src/Symfony/Bundle/WebProfilerBundle/Resources/views/Profiler/base_js.html.twig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,10 @@
136136
var row = document.createElement('tr');
137137
request.DOMNode = row;
138138
139+
var requestNumberCell = document.createElement('td');
140+
requestNumberCell.textContent = index + 1;
141+
row.appendChild(requestNumberCell);
142+
139143
var profilerCell = document.createElement('td');
140144
profilerCell.textContent = 'n/a';
141145
row.appendChild(profilerCell);

0 commit comments

Comments
 (0)
0