Skip to content

Commit 24672bc

Browse files
authored
Update panel and menu template (#8)
* remove odd call from profiler panel template * pin upper phpunit dependency
1 parent 696ea3a commit 24672bc

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

.travis.yml

+6-5
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ env:
1111
- SYMFONY_VERSION='2.7.*' deps='no'
1212
- SYMFONY_VERSION='2.8.*' deps='no'
1313
- SYMFONY_VERSION='3.0.*' deps='no'
14-
- SYMFONY_VERSION='~3.0@dev' deps='no'
14+
- SYMFONY_VERSION='3.1.*' deps='no'
15+
- SYMFONY_VERSION='~3.2@dev' deps='no'
1516

1617
matrix:
1718
include:
@@ -28,10 +29,10 @@ before_install:
2829
- travis_retry composer self-update
2930

3031
install:
31-
- composer require --no-update symfony/symfony=${SYMFONY_VERSION}
32-
- if [ "$deps" = "no" ]; then composer --prefer-source install; fi;
33-
- if [ "$deps" = "low" ]; then composer --prefer-source --prefer-lowest --prefer-stable update; fi;
32+
- composer require --no-update symfony/symfony=${SYMFONY_VERSION}
33+
- if [ "$deps" = "no" ]; then composer --prefer-source install; fi;
34+
- if [ "$deps" = "low" ]; then composer --prefer-source --prefer-lowest --prefer-stable update; fi;
3435

3536
script:
3637
- mkdir -p build
37-
- phpunit --colors -c phpunit.xml --coverage-text
38+
- phpunit

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
},
1919
"require-dev": {
2020
"scaytrase/symfony-test-utils": "~1.1",
21-
"phpunit/phpunit": "~4.6@stable|~5.0@stable",
21+
"phpunit/phpunit": "~5.0 <5.4 || ~4.6 ",
2222
"symfony/framework-bundle": "~2.3|~3.0"
2323
},
2424
"suggest": {

src/ScayTrase/SmsDeliveryBundle/Resources/views/DataCollector/data_collector.html.twig

+8-9
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{% extends 'WebProfilerBundle:Profiler:layout.html.twig' %}
22

33

4-
54
{% block toolbar %}
65
{% set success = true %}
76
{% set good = 0 %}
@@ -50,12 +49,18 @@
5049
{% endblock %}
5150

5251
{% block menu %}
52+
{% set success = true %}
53+
{% for key,row in collector.data %}
54+
{% if row.status == 'fail' %}
55+
{% set success = false %}
56+
{% endif %}
57+
{% endfor %}
5358
<span class="label">
5459
<span class="icon">
5560
<img alt="Short messages"
5661
src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAeCAYAAABaKIzgAAAABGdBTUEAALGOfPtRkwAAACBjSFJNAAB6JQAAgIMAAPn/AACA6QAAdTAAAOpgAAA6mAAAF2+SX8VGAAAACXBIWXMAAAsSAAALEgHS3X78AAAAGHRFWHRTb2Z0d2FyZQBwYWludC5uZXQgNC4wLjOM5pdQAAABvElEQVRYR+3Xv0sCYRzHcU/vPMU7RAfbbYmmftAQtRRtDa39Ga0t/QENjdF/EEEQBFFruBbU6hYEDVkUZWVq9f5CBw/Hk5X6eBZ+4YXHfTU/Pr/oYv+pPIxjypAROOiosijhDe+GvGIDFtquCZgMGajARdslU6P7w912j0HQ7zTS6fRKMpnc0fTCoh3ReDx+lc1mJ3m90fUVZoMmEolrRkxOhWa4F0ilUmuu667regqzQQm5ncvlpi3LetT1BT/mnFGd57oe7inMBiVgnWm91fUCvKeSz+dHuX4K9xS9W6O2bR96njeLmUwmM0fAstxnRGuFQqHI60P4M4qebqYaZHQDDUjQKlNfbLU80NOgWiyNS4KOcf0c7inMBnUcZ/dzM1V1fcGIHrMclrj+8mSA2aCMVpmdvyWbStfnfpP1uszxtK/rK6Kdekaz5Pv+IoFfdH1FdEFlNBntI1mjun5I9Jvph/5M0Dt0FHQYrY6VbjmDjbYrjlXI1Oi+oBsusICulDzP/IY8rG1CfYyRxw25H35v5JXCHoKwErSj6TVZPg7Q90GlhnCCvg8qJafHKfo+qJT88yynyKD6oGKxD/dgDJY6o7ruAAAAAElFTkSuQmCC"/>
5762
</span>
58-
<strong>Short messages</strong>
63+
<strong>SMS</strong>
5964

6065
<span class="count {% if not success %}sf-toolbar-status-red{% endif %}">
6166
<span>{{ collector.data | length }}</span>
@@ -67,8 +72,6 @@
6772
{% block panel %}
6873
<h2>Short Messages</h2>
6974

70-
<h3>{{ collector.service }}</h3>
71-
7275
{% if not (collector.data | length) %}
7376
<p>
7477
<em>No message sent.</em>
@@ -80,10 +83,8 @@
8083
<th scope="col">#</th>
8184
<th scope="col">Delivery Status</th>
8285
<th scope="col">Delivery Reason</th>
83-
{#<th scope="col">Delivery Transport</th>#}
8486
<th scope="col">Message Recipient</th>
8587
<th scope="col">Message Body</th>
86-
{#<th scope="col">Message Class</th>#}
8788
</tr>
8889
</thead>
8990
<tbody>
@@ -92,10 +93,8 @@
9293
<td>{{ key }}</td>
9394
<td>{{ package.status }}</td>
9495
<td>{{ package.reason }}</td>
95-
{#<td>{{ package.record.transport }}</td>#}
96-
<td>{{ package.record.message.recipient }}</td>
96+
<td>{{ package.message.recipient }}</td>
9797
<td>{{ package.message.body }}</td>
98-
{#<td>{{ package.message_class }}</td>#}
9998
</tr>
10099
{% endfor %}
101100
</tbody>

0 commit comments

Comments
 (0)