[enh] Don't display if empty

This commit is contained in:
ljf 2018-06-04 03:57:24 +02:00
parent 2ab6711364
commit f4487c6c8f

View file

@ -9,6 +9,7 @@
{{#if data}} {{#if data}}
<div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true"> <div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">
{{#data}} {{#data}}
{{#if value}}
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading" role="tab" id="heading-{{key}}"> <div class="panel-heading" role="tab" id="heading-{{key}}">
<h2 class="panel-title"> <h2 class="panel-title">
@ -19,16 +20,13 @@
</div> </div>
<div id="collapse-{{key}}" class="panel-collapse{{#if @first}}{{else}} collapse{{/if}}" role="tabpanel" aria-labelledby="heading-{{key}}"> <div id="collapse-{{key}}" class="panel-collapse{{#if @first}}{{else}} collapse{{/if}}" role="tabpanel" aria-labelledby="heading-{{key}}">
<div class="list-group"> <div class="list-group">
{{#if value}}
{{#value}} {{#value}}
<a href="#/tools/logs/{{ name }}" class="list-group-item"><small>{{ started_at }}</small> {{ description }}</a> <a href="#/tools/logs/{{ name }}" class="list-group-item"><small>{{ started_at }}</small> {{ description }}</a>
{{/value}} {{/value}}
{{else}} </div>
<div class="list-group"><span class="list-group-item">{{t 'logs_no_logs_registered'}}</span></div> </div>
</div>
{{/if}} {{/if}}
</div>
</div>
</div>
{{/data}} {{/data}}
</div> </div>
{{/if}} {{/if}}