Skip to content

Commit

Permalink
Merge pull request vaibhavpandeyvpz#4 from felixble/display-custom-data
Browse files Browse the repository at this point in the history
Display custom data in reports view
  • Loading branch information
vaibhavpandeyvpz authored Jan 19, 2017
2 parents 2294367 + 389932b commit e7514c6
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
1 change: 1 addition & 0 deletions assets/locales/en.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
'brand' => 'Brand',
'build' => 'Build',
'build_config' => 'Build Config',
'custom_data' => 'Custom Data',
'crash_configuration' => 'Crash Configuration',
'crash_datetime' => 'Crash Date/Time',
'device_features' => 'Device Features',
Expand Down
24 changes: 24 additions & 0 deletions assets/twig/report.twig
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,30 @@
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading" role="tab" id="report-custom-data-heading">
<h4 class="panel-title">
<a role="button" data-toggle="collapse" data-parent="#report-accordion" href="#report-custom-data-collapse" aria-expanded="false" aria-controls="report-custom-data-collapse">
<i class="fa fa-fw fa-bars"></i> {{ 'report.custom_data'|trans }}
</a>
</h4>
</div>
<div id="report-custom-data-collapse" class="panel-collapse collapse" role="tabpanel" aria-labelledby="report-custom-data-heading">
{% set tmp = nvp(report.custom_data) %}
<div class="table-responsive">
<table class="table table-bordered table-hover">
<tbody>
{% for pair in tmp %}
<tr>
<th>{{ pair[0] }}</th>
<td>{{ pair[1] }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading" role="tab" id="report-build-heading">
<h4 class="panel-title">
Expand Down

0 comments on commit e7514c6

Please sign in to comment.