mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
[enh] Don't display if empty
This commit is contained in:
parent
2ab6711364
commit
f4487c6c8f
1 changed files with 2 additions and 4 deletions
|
@ -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 class="list-group"><span class="list-group-item">{{t 'logs_no_logs_registered'}}</span></div>
|
|
||||||
{{/if}}
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
{{/if}}
|
||||||
{{/data}}
|
{{/data}}
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
Loading…
Reference in a new issue