[enh] Use of accordion on application debug page.

This commit is contained in:
opi 2015-10-11 09:48:35 +02:00
parent f296b92587
commit 0bb8fe6e4d

View file

@ -5,24 +5,26 @@
<a href="#/apps/{{name}}/debug">{{t 'debug'}}</a>
</div>
<div class="separator"></div>
<h1>Debug page for {{name}}</h1>
<hr>
<div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">
{{#services}}
<div class="panel panel-default">
<div class="panel-heading">
<h2 class="panel-title"><span class="fa-fw fa-info-circle"></span> Logs for the service {{name}}</h2>
<div class="panel panel-default">
<div class="panel-heading" role="tab" id="heading-{{ @index }}">
<h2 class="panel-title">
<a role="button" data-toggle="collapse" data-parent="#accordion" href="#collapse-{{ @index }}" aria-expanded="true" aria-controls="collapse-{{ @index }}">
<span class="fa-fw fa-info-circle"></span> {{t 'service_log' name }}
</a>
</h2>
</div>
<div id="collapse-{{ @index }}" class="panel-collapse collapse" role="tabpanel" aria-labelledby="heading-{{ @index }}">
<div class="panel-body">
{{#logs}}
<h3>{{file_name}}</h3>
<pre class="service-log">{{file_content}}</pre>
{{/logs}}
</div>
</div>
</div>
<div class="panel-body">
{{#logs}}
<h3>{{file_name}}</h3>
<pre class="service-log">{{file_content}}
</pre>
{{/logs}}
</div>
</div>
{{/services}}
</div>